:root {
    --bg-color: #fdfbf7;
    --text-color: #2c3e50;
    --accent-color: #8e44ad;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Login View */
#login-view {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbf7 0%, #f4e4e4 100%);
}

.login-container {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    width: 90%;
}

.brand h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.brand p {
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Google Sans', arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    border-color: #d2e3fc;
}

.btn-google img {
    width: 18px;
    height: 18px;
}

/* Journal View */
#journal-view {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--text-color);
}

.journal-container {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#date-picker {
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

#date-picker:hover {
    background: rgba(0, 0, 0, 0.03);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.status {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.8rem;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s;
}

.status.visible {
    opacity: 1;
}

#journal-editor {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    outline: none;
    padding: 1rem;
}

#journal-editor::placeholder {
    color: #ccc;
}

@media (max-width: 600px) {
    .login-container {
        padding: 2rem;
    }

    .journal-container {
        padding: 1rem;
    }

    .brand h1 {
        font-size: 2.5rem;
    }
}