/* Root Variables - Medicinal Root Theme: Warm & Rooted */
:root {
    --bg-primary: #1A1210;
    --bg-secondary: #261C18;
    --bg-tertiary: #322620;
    --accent-primary: #C75D3B;
    --accent-secondary: #D4A574;
    --accent-warm: #E07B4C;
    --accent-deep: #8B4A2B;
    --accent-rose: #C75D3B;
    --accent-mauve: #D4A574;
    --accent-dusty: #A66B4B;
    --text-primary: #F5E6D3;
    --text-secondary: #D4C4B0;
    --text-muted: #A89880;
    --border-soft: rgba(212, 165, 116, 0.2);
    --shadow-glow: rgba(199, 93, 59, 0.25);
    --shadow-warm: rgba(212, 165, 116, 0.15);
    --gradient-warm: linear-gradient(135deg, #C75D3B 0%, #D4A574 50%, #E07B4C 100%);
    --gradient-bg: linear-gradient(180deg, #1A1210 0%, #261C18 50%, #1A1210 100%);
    --gradient-accent: linear-gradient(135deg, #C75D3B 0%, #E07B4C 100%);
    --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
    background: var(--gradient-bg);
    justify-content: center;
    align-items: center;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-soft);
    border-top-color: var(--accent-rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
#login-screen {
    background: var(--gradient-bg);
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

#login-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(199, 93, 59, 0.06) 0%, transparent 50%);
    animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, 5%) rotate(3deg); }
    50% { transform: translate(-3%, 8%) rotate(-2deg); }
    75% { transform: translate(8%, -5%) rotate(4deg); }
}

.login-container {
    width: 100%;
    max-width: 340px;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.constellation {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 70px;
    background: radial-gradient(circle at 20% 30%, #D4A574 2px, transparent 2px),
                radial-gradient(circle at 80% 20%, #C75D3B 2.5px, transparent 2.5px),
                radial-gradient(circle at 50% 70%, #D4A574 1.5px, transparent 1.5px),
                radial-gradient(circle at 30% 80%, #E07B4C 1px, transparent 1px),
                radial-gradient(circle at 70% 60%, #C75D3B 2px, transparent 2px),
                radial-gradient(circle at 15% 60%, #D4A574 1px, transparent 1px),
                radial-gradient(circle at 85% 50%, #E07B4C 1.5px, transparent 1.5px);
    opacity: 0.7;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.login-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 16px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    outline: none;
    transition: var(--transition-smooth);
}

.input-group input::placeholder {
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-warm);
    transition: width 0.4s ease;
}

.input-group input:focus + .input-line {
    width: 100%;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--bg-primary);
    background: var(--gradient-warm);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-glow);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    color: #E07B4C;
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
}

.login-footer {
    margin-top: 32px;
    text-align: center;
}

.security-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   APP SCREEN
   ============================================ */
#app-screen {
    background: var(--bg-primary);
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.header-center {
    text-align: center;
}

.user-greeting {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-greeting span {
    color: var(--accent-rose);
    font-weight: 600;
}

.app-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.sync-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--accent-rose);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.sync-indicator.syncing {
    animation: spin 1s linear infinite;
    opacity: 1;
}

.sync-indicator.error {
    color: #E07B4C;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-rose);
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-soft);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-item svg {
    transition: var(--transition-smooth);
}

.nav-item.active,
.nav-item:hover {
    color: var(--accent-rose);
}

.nav-item.active svg {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    overflow-y: auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.date-display {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   JOURNAL FORM
   ============================================ */
.journal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-mauve);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-rose);
    box-shadow: 0 0 0 3px var(--shadow-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23D4A574' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Song Input */
.song-group .song-input-wrapper {
    display: flex;
    gap: 8px;
}

.song-group .song-input-wrapper input {
    flex: 1;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    background: var(--accent-deep);
    color: var(--text-primary);
}

.album-art-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.album-art-preview.hidden {
    display: none;
}

.album-art-preview img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

#song-found-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* BS Snapshot Section */
.bs-section {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.bs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bs-header label {
    margin-bottom: 0;
}

.toggle-btn, .refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.toggle-btn:hover, .refresh-btn:hover {
    background: var(--accent-deep);
    color: var(--text-primary);
}

.bs-fields {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-fields.hidden {
    display: none;
}

.bs-row {
    display: flex;
    gap: 8px;
}

.bs-row input {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.bs-key {
    flex: 0.6 !important;
}

.bs-value {
    flex: 0.4 !important;
}

.add-field-btn {
    align-self: flex-start;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent-rose);
    background: transparent;
    border: 1px dashed var(--accent-dusty);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.add-field-btn:hover {
    background: var(--bg-tertiary);
}

/* Prompt Response Section */
.prompt-response-section {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prompt-header label {
    margin-bottom: 0;
}

.daily-prompt-display {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--gradient-warm);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-glow);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   PROMPTS SECTION
   ============================================ */

/* Featured Prompt Card */
.featured-prompt-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.featured-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-warm);
}

.featured-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.featured-label svg {
    fill: var(--accent-primary);
}

.featured-label span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-prompt-card > p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.use-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--gradient-warm);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.use-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-glow);
}

/* Category Filter */
.prompts-filter {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chip {
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-chip:hover {
    border-color: var(--accent-secondary);
    color: var(--text-primary);
}

.category-chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.prompts-instruction {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.prompts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-card {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.prompt-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-dusty);
    transform: translateX(4px);
}

.prompt-card.selected {
    border-color: var(--accent-primary);
    background: rgba(199, 93, 59, 0.12);
}

.prompt-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.prompt-card p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    padding-right: 30px;
}

.prompt-card .prompt-category {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    background: var(--bg-primary);
    border-radius: 20px;
}

/* ============================================
   WHITEBOARD SECTION
   ============================================ */
.whiteboard-actions {
    display: flex;
    gap: 8px;
}

.small-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.small-btn:hover {
    background: var(--accent-deep);
    color: var(--text-primary);
}

.canvas-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.color-picker {
    display: flex;
    gap: 8px;
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-primary);
}

.brush-size {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brush-size input[type="range"] {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 2px;
    outline: none;
}

.brush-size input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-rose);
    border-radius: 50%;
    cursor: pointer;
}

#brush-size-display {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 35px;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    touch-action: none;
}

#whiteboard-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.canvas-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   ENTRIES SECTION
   ============================================ */

/* Stats Banner */
.entries-stats-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-soft);
}

/* Filter Tabs */
.entries-filter-bar {
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.filter-tab {
    flex: 1;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.entry-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.entry-card:hover {
    border-color: var(--accent-dusty);
}

.entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-tertiary);
}

.entry-user {
    font-weight: 600;
    color: var(--accent-rose);
    letter-spacing: 0.02em;
}

.entry-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.entry-content {
    padding: 16px;
}

.entry-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

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

.entry-field:first-child {
    padding-top: 0;
}

.field-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-mauve);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.field-value {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.entry-song-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-album-art {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.entry-bs-snapshot {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.bs-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-dusty);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.bs-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bs-stat {
    display: flex;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.8rem;
}

.bs-stat-key {
    color: var(--text-muted);
}

.bs-stat-value {
    color: var(--accent-rose);
    font-weight: 500;
}

.entry-prompt-response {
    margin-top: 12px;
    padding: 12px;
    background: rgba(199, 93, 59, 0.08);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prompt-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.prompt-answer {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.no-entries {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-entries svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.entries-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--accent-dusty);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border-color: var(--accent-primary);
    background: rgba(199, 93, 59, 0.15);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (min-width: 480px) {
    .main-content {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .login-container {
        max-width: 380px;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
        padding: 32px;
    }
    
    .bottom-nav {
        padding: 12px 0;
    }
    
    .nav-item {
        padding: 10px 24px;
        font-size: 0.75rem;
    }
    
    .entry-card {
        border-radius: var(--radius-lg);
    }
}

/* ============================================
   AVATARS SECTION
   ============================================ */
.avatars-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.avatar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.avatar-card:hover {
    border-color: var(--accent-dusty);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.avatar-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
    cursor: pointer;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.avatar-card:hover .avatar-image {
    transform: scale(1.05);
}

.avatar-world-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--accent-rose);
    border-radius: 20px;
}

.avatar-info {
    padding: 12px;
}

.avatar-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.avatar-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.avatar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar-added-by {
    font-size: 0.7rem;
    color: var(--accent-dusty);
}

.delete-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
}

.avatar-card:hover .delete-avatar-btn {
    opacity: 1;
}

.delete-avatar-btn:hover {
    background: rgba(199, 93, 59, 0.15);
    color: var(--accent-primary);
}

.no-avatars {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.no-avatars svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-avatars p {
    font-size: 1rem;
    margin-bottom: 4px;
}

.no-avatars span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Avatar Modal */
.avatar-modal {
    position: fixed;
    inset: 0;
    background: rgba(9, 42, 51, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.avatar-modal.hidden {
    display: none;
}

.avatar-modal-content {
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
}

.modal-header h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.avatar-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-soft);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.file-upload-wrapper:hover .file-upload-btn {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(199, 93, 59, 0.08);
}

.avatar-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-top: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.avatar-upload-preview.hidden {
    display: none;
}

.avatar-upload-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.avatar-upload-preview span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.hidden {
    display: none;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 16, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    max-width: 500px;
}

.lightbox-caption h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lightbox-caption p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Utility */
.hidden {
    display: none !important;
}


/* ===== REDESIGNED JOURNAL STYLES ===== */

/* Redesigned Journal Styles */

.daily-entry-card {
    background: linear-gradient(135deg, rgba(199, 93, 59, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 2px solid rgba(199, 93, 59, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h4 {
    font-size: 1.5rem;
    color: #C75D3B;
    margin: 0;
}

.entry-date-display {
    font-size: 0.9rem;
    color: #8B4A2B;
    opacity: 0.8;
}

/* Dynamic Fields */
.dynamic-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.field-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.field-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #8B4A2B;
    font-size: 0.95rem;
}

.field-card-label .field-icon {
    font-size: 1.2rem;
}

.remove-field-btn {
    background: none;
    border: none;
    color: #C75D3B;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-field-btn:hover {
    background: rgba(199, 93, 59, 0.1);
}

.field-card input,
.field-card textarea,
.field-card select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(199, 93, 59, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #FDFBF7;
}

.field-card input:focus,
.field-card textarea:focus,
.field-card select:focus {
    outline: none;
    border-color: #C75D3B;
    background: white;
}

.field-card textarea {
    resize: vertical;
    min-height: 80px;
}

/* Song Search in Field Card */
.song-input-wrapper-card {
    display: flex;
    gap: 8px;
}

.song-input-wrapper-card input {
    flex: 1;
}

.search-btn-card {
    background: #C75D3B;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn-card:hover {
    background: #D4A574;
}

.album-art-preview-card {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(199, 93, 59, 0.05);
    border-radius: 8px;
}

.album-art-preview-card img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.album-art-preview-card span {
    font-size: 0.9rem;
    color: #8B4A2B;
}

/* Add Field Button and Dropdown */
.add-field-container {
    position: relative;
    margin-bottom: 20px;
}

.add-field-btn-new {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px dashed rgba(199, 93, 59, 0.3);
    border-radius: 12px;
    color: #C75D3B;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-field-btn-new:hover {
    background: rgba(199, 93, 59, 0.05);
    border-color: #C75D3B;
}

.add-field-btn-new svg {
    transition: transform 0.2s;
}

.add-field-btn-new:hover svg {
    transform: rotate(90deg);
}

.field-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 16px;
    font-weight: 600;
    color: #8B4A2B;
    border-bottom: 1px solid rgba(199, 93, 59, 0.1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-option {
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.field-option:hover {
    background: rgba(199, 93, 59, 0.08);
}

.field-option .field-icon {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.field-option .field-name {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.field-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.field-option:disabled:hover {
    background: none;
}

/* Already Posted View */
.already-posted-view {
    text-align: center;
    padding: 40px 20px;
}

.posted-message {
    margin-bottom: 32px;
}

.check-icon {
    color: #4CAF50;
    margin-bottom: 16px;
}

.posted-message h4 {
    font-size: 1.5rem;
    color: #8B4A2B;
    margin: 0 0 8px 0;
}

.posted-message p {
    font-size: 1rem;
    color: #8B4A2B;
    opacity: 0.7;
    margin: 0;
}

/* Countdown Timer */
.countdown-timer {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timer-label {
    font-size: 0.9rem;
    color: #8B4A2B;
    opacity: 0.8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #C75D3B;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.time-label {
    font-size: 0.75rem;
    color: #8B4A2B;
    opacity: 0.6;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #C75D3B;
    opacity: 0.5;
    margin: 0 4px;
}

/* Filter Section */
.entries-filter-section {
    margin-bottom: 24px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter-header h4 {
    font-size: 1.3rem;
    color: #8B4A2B;
    margin: 0;
}

.entries-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    background: rgba(199, 93, 59, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #8B4A2B;
    font-weight: 600;
}

.stat-badge .stat-number {
    color: #C75D3B;
    font-weight: 700;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: rgba(199, 93, 59, 0.05);
    padding: 6px;
    border-radius: 12px;
}

.filter-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #8B4A2B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.filter-tab:hover {
    background: rgba(199, 93, 59, 0.1);
}

.filter-tab.active {
    background: white;
    color: #C75D3B;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab-count {
    background: rgba(199, 93, 59, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-tab.active .tab-count {
    background: rgba(199, 93, 59, 0.2);
    color: #C75D3B;
}

/* Responsive */
@media (max-width: 768px) {
    .daily-entry-card {
        padding: 16px;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .time-separator {
        font-size: 1.5rem;
    }
}
/* ===== BRANDING UPDATE: CARROT LOGO & COLOR SCHEME ===== */

/* New Color Palette inspired by the carrot logo */
:root {
    /* Primary colors from carrot */
    --carrot-orange: #FF6B35;
    --carrot-orange-light: #FF8C61;
    --carrot-orange-dark: #E85A2A;
    --carrot-red: #D94A2A;
    
    /* Green from leaves */
    --leaf-green: #7CB342;
    --leaf-green-light: #9CCC65;
    --leaf-green-dark: #558B2F;
    
    /* Accent colors */
    --warm-cream: #FFF8F0;
    --soft-brown: #8B6F47;
    --dark-brown: #5D4E37;
}

/* Login Logo */
.login-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    animation: floatLogo 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.2));
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Header Logo */
.header-logo {
    width: 24px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1));
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update primary orange color throughout the site */
.login-btn,
.submit-btn,
.add-field-btn-new:hover {
    background: var(--carrot-orange) !important;
}

.login-btn:hover,
.submit-btn:hover {
    background: var(--carrot-orange-dark) !important;
}

/* Update accent colors */
.card-header h4,
.filter-tab.active,
.time-value {
    color: var(--carrot-orange) !important;
}

/* Update borders and highlights */
.daily-entry-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(124, 179, 66, 0.08) 100%);
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.field-card input:focus,
.field-card textarea:focus,
.field-card select:focus {
    border-color: var(--carrot-orange);
}

.search-btn-card {
    background: var(--carrot-orange);
}

.search-btn-card:hover {
    background: var(--leaf-green);
}

.add-field-btn-new {
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--carrot-orange);
}

.add-field-btn-new:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: var(--carrot-orange);
}

.remove-field-btn {
    color: var(--carrot-orange);
}

.remove-field-btn:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Update navigation active state */
.nav-item.active {
    background: rgba(255, 107, 53, 0.1);
    color: var(--carrot-orange);
}

.nav-item:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* Update stat badges */
.stat-badge {
    background: rgba(255, 107, 53, 0.1);
}

.stat-badge .stat-number {
    color: var(--carrot-orange);
}

/* Update filter tabs */
.filter-tabs {
    background: rgba(255, 107, 53, 0.05);
}

.filter-tab:hover {
    background: rgba(255, 107, 53, 0.1);
}

.filter-tab.active {
    background: white;
    color: var(--carrot-orange);
}

.tab-count {
    background: rgba(255, 107, 53, 0.15);
}

.filter-tab.active .tab-count {
    background: rgba(255, 107, 53, 0.2);
    color: var(--carrot-orange);
}

/* Update entry cards */
.entry-card {
    border-left: 4px solid var(--carrot-orange);
}

/* Update prompts section */
.featured-prompt-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(124, 179, 66, 0.1) 100%);
    border-left: 4px solid var(--carrot-orange);
}

.category-chip.active {
    background: var(--carrot-orange);
}

.category-chip:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Update whiteboard colors */
.color-btn:first-child {
    background: var(--carrot-orange) !important;
}

/* Update login screen */
.login-container {
    background: transparent;
}

.input-line {
    background: var(--carrot-orange);
}

/* Update countdown timer */
.check-icon {
    color: var(--leaf-green);
}

/* Update album art preview */
.album-art-preview-card {
    background: rgba(255, 107, 53, 0.05);
}

/* Update field dropdown */
.field-option:hover {
    background: rgba(255, 107, 53, 0.08);
}

/* Update toast notifications */
.toast.success {
    background: var(--leaf-green);
}

.toast.error {
    background: var(--carrot-red);
}

/* Update loading spinner */
.loading-spinner {
    border-top-color: var(--carrot-orange);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-logo {
        width: 100px;
    }
    
    .header-logo {
        width: 28px;
    }
}


/* ============================================
   STICKY NOTES SECTION
   ============================================ */
.notes-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

.notes-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-reset-timer {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* Add Note Form */
.add-note-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.add-note-form textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: none;
    transition: var(--transition-smooth);
}

.add-note-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.add-note-form textarea::placeholder {
    color: var(--text-muted);
}

.note-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.note-colors {
    display: flex;
    gap: 8px;
}

.note-color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.note-color-btn:hover {
    transform: scale(1.1);
}

.note-color-btn.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-primary);
}

.post-note-btn {
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.post-note-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.post-note-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notes Board */
.notes-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

/* Individual Sticky Note */
.sticky-note {
    position: relative;
    padding: 16px;
    border-radius: 4px;
    min-height: 120px;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.3);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 30px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 3px 3px;
}

.sticky-note-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sticky-note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.sticky-note-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
}

.sticky-note-time {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.4);
}

.sticky-note-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.sticky-note:hover .sticky-note-delete {
    opacity: 1;
}

.sticky-note-delete:hover {
    background: rgba(200, 0, 0, 0.2);
    color: rgba(200, 0, 0, 0.8);
}

/* No Notes Message */
.no-notes-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-notes-message svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.no-notes-message p {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.no-notes-message span {
    font-size: 0.9rem;
}

.no-notes-message.hidden {
    display: none;
}

/* Responsive for notes */
@media (max-width: 480px) {
    .notes-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sticky-note {
        min-height: 100px;
        padding: 12px;
    }
    
    .sticky-note-content {
        font-size: 0.85rem;
    }
}
/* ============================================
   NEW COLLAPSIBLE ENTRY CARDS
   Mobile-optimized with color coding
   ============================================ */

/* Date Group Container */
.date-group {
    margin-bottom: 2rem;
}

.date-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-soft);
}

.date-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 0.25rem;
}

.date-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.date-entries {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Collapsible Entry Card */
.entry-card-collapsible {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-card-collapsible:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Card Header (Always Visible) */
.entry-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    border-left: 4px solid var(--accent-primary);
    transition: background-color var(--transition-smooth);
}

.entry-card-header:hover {
    background: var(--bg-tertiary);
}

.entry-card-header:active {
    background: rgba(199, 93, 59, 0.1);
}

/* User Badge (Circle with Initial) */
.entry-card-user-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header Content */
.entry-card-header-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.entry-card-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.entry-card-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Toggle Button */
.entry-card-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-card-toggle:hover {
    background: rgba(199, 93, 59, 0.1);
    color: var(--accent-rose);
}

.chevron-icon {
    transition: transform var(--transition-smooth);
}

.entry-card-collapsible.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Card Content (Collapsible) */
.entry-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-card-collapsible.expanded .entry-card-content {
    border-top: 1px solid var(--border-soft);
}

/* Entry Fields Container */
.entry-fields {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual Field */
.entry-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-mauve);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

/* Song Row with Album Art */
.entry-song-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.entry-album-art {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Prompt Response */
.entry-prompt-response {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-rose);
    margin-top: 0.5rem;
}

.prompt-text {
    font-size: 0.85rem;
    color: var(--accent-mauve);
    font-style: italic;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.prompt-answer {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

/* BS Snapshot */
.entry-bs-snapshot {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.bs-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-mauve);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.bs-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bs-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.bs-stat-key {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.bs-stat-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .date-title {
        font-size: 1.1rem;
    }
    
    .date-subtitle {
        font-size: 0.8rem;
    }
    
    .entry-card-header {
        padding: 0.875rem;
        gap: 0.625rem;
    }
    
    .entry-card-user-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .entry-card-user-name {
        font-size: 0.9rem;
    }
    
    .entry-card-preview {
        font-size: 0.8rem;
    }
    
    .entry-fields {
        padding: 0.875rem;
        gap: 0.625rem;
    }
    
    .field-label {
        font-size: 0.7rem;
    }
    
    .field-value {
        font-size: 0.9rem;
    }
    
    .entry-album-art {
        width: 40px;
        height: 40px;
    }
    
    .bs-stats {
        gap: 0.5rem;
    }
    
    .bs-stat {
        padding: 0.4rem 0.6rem;
    }
}

/* Tablet and larger */
@media (min-width: 768px) {
    .date-entries {
        gap: 1rem;
    }
    
    .entry-card-header {
        padding: 1.25rem;
    }
    
    .entry-card-user-badge {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .entry-fields {
        padding: 1.25rem;
    }
}

/* Loading and Empty States */
.entries-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-entries {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    min-height: 300px;
}

.no-entries svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-entries p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Indicators for Keyboard Navigation */
.entry-card-header:focus-visible {
    outline: 2px solid var(--accent-rose);
    outline-offset: 2px;
}

.entry-card-toggle:focus-visible {
    outline: 2px solid var(--accent-rose);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Print Styles */
@media print {
    .entry-card-toggle {
        display: none;
    }
    
    .entry-card-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .entry-card-collapsible {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
