/* iPhone Diary Style */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

#app {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
}

.page {
    padding: 1.5rem;
}

.form-container {
    max-width: 100%;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background-color: transparent;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom: 1px solid #0A84FF;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #0A84FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
}

button:hover {
    background-color: #0077e6;
}

p {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

a {
    color: #0A84FF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

#logout-btn {
    background: none;
    border: none;
    color: #0A84FF;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

#journal-form .form-container {
    padding: 1rem 0;
}

#journal-entries {
    padding-top: 1rem;
}

#journal-entries h2 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

#journal-entries h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.entry:last-child {
    border-bottom: none;
}

.entry h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.entry p {
    text-align: left;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}