/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Colors - Light Theme (Soft, feminine, calm) */
    --bg-main: #FAFAFC;
    --bg-card: #FFFFFF;
    --bg-sidebar: #F4F3F8;
    
    --text-main: #333333;
    --text-muted: #7A7A8C;
    
    --primary: #9B88ED; /* Soft Purple */
    --primary-hover: #8671DF;
    --primary-light: #EBE6FE;
    
    --accent: #E5B25D; /* Soft Gold */
    --accent-light: #FDF4E6;
    
    --success: #67C5A3;
    --danger: #F07B88;
    
    --border: #E8E8EE;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 20px rgba(155, 136, 237, 0.08);
    
    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Radius */
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    --bg-main: #1A1A1E;
    --bg-card: #24242A;
    --bg-sidebar: #202025;
    
    --text-main: #F4F3F8;
    --text-muted: #A1A1B5;
    
    --primary: #B2A2FC;
    --primary-hover: #9B88ED;
    --primary-light: #352F51;
    
    --accent: #F4CA81;
    --accent-light: #3D3524;
    
    --border: #3A3A45;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color var(--transition), color var(--transition);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* =========================================
   UTILITIES
   ========================================= */
.screen {
    display: none;
    min-height: 100vh;
}
.screen.active {
    display: flex;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.content-section.active {
    display: block;
}

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

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.btn-icon:hover {
    background-color: var(--border);
    color: var(--primary);
}

/* =========================================
   SETUP SCREEN
   ========================================= */
#setup-screen {
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, var(--primary-light), var(--bg-main));
}
.setup-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--border);
}
.setup-card h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.setup-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}
.input-group {
    text-align: left;
    margin-bottom: 24px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.input-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}
.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* =========================================
   APP LAYOUT
   ========================================= */
#app-screen {
    display: none; /* Flex when active */
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    transition: var(--transition);
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 32px;
    color: var(--primary);
}
.sidebar-header .logo-icon {
    width: 28px;
    height: 28px;
}
.sidebar-header .logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
}
.nav-links {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
}
.nav-links li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 4px;
    transition: var(--transition);
    font-weight: 500;
}
.nav-links li:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}
.nav-links li.active {
    background-color: var(--primary);
    color: white;
}
.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
    background: var(--bg-main);
}
.topbar {
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.mobile-only {
    display: none;
}
.search-bar {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    gap: 12px;
}
.search-bar i {
    color: var(--text-muted);
    width: 18px;
}
.search-bar input {
    border: none;
    background: none;
    width: 100%;
    color: var(--text-main);
}

.content-section {
    padding: 0 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =========================================
   DASHBOARD
   ========================================= */
.dashboard-header {
    margin-bottom: 32px;
}
.streak-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.greeting {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 8px;
}
.current-date {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.verse-card {
    background: linear-gradient(135deg, var(--bg-card), var(--primary-light));
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.quote-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.1;
}
.verse-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.verse-ref {
    font-weight: 600;
    color: var(--text-main);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.tasks-icon { background: var(--primary-light); color: var(--primary); }
.habits-icon { background: var(--accent-light); color: var(--accent); }
.stat-info h3 { font-size: 1.8rem; margin-bottom: 4px; }
.stat-info p { color: var(--text-muted); font-size: 0.9rem; }

.quick-actions h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}
.action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}
.action-btn i {
    color: var(--primary);
    width: 28px;
    height: 28px;
}
.action-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    #app-screen { flex-direction: column; }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        padding: 24px 16px;
        border-right: 1px solid var(--border);
        border-top: none;
        z-index: 1000;
        background: var(--bg-sidebar);
        transition: left 0.3s ease;
    }
    .sidebar.mobile-open {
        left: 0;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        align-items: stretch;
        padding: 0;
    }
    .nav-links li {
        flex-direction: row;
        padding: 12px 16px;
        font-size: 1rem;
        min-width: auto;
        justify-content: flex-start;
    }
    .nav-links li span { margin-top: 0; margin-left: 8px; }
    
    .topbar {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: var(--bg-main);
        z-index: 99;
        justify-content: space-between;
        width: 100%;
    }
    .mobile-only { display: flex; align-items: center; justify-content: center; }
    .search-bar { display: none; /* We can add a toggle later */ }
    
    .content-section { padding: 0 20px 100px; }
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   COMMON SECTION STYLES
   ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-header h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary);
}

/* =========================================
   TASKS SECTION
   ========================================= */
.tasks-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.category-select {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
}
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.task-item {
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.task-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}
.task-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: transparent;
    transition: var(--transition);
}
.task-item.completed .task-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.task-content {
    flex-grow: 1;
}
.task-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
}
.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}
.task-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.task-category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.task-actions {
    display: flex;
    gap: 8px;
}

/* Modal for Tasks */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* =========================================
   DEVOCIONAL SECTION
   ========================================= */
.devotional-editor {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
}
.devotional-editor .input-group input {
    font-size: 1.2rem;
    border: none;
    border-bottom: 2px solid var(--border);
    border-radius: 0;
    padding: 12px 0;
    background: transparent;
}
.devotional-editor .input-group input:focus {
    box-shadow: none;
    border-bottom-color: var(--primary);
}
#devo-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
}
.editor-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.editor-toolbar button {
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: var(--transition);
}
.editor-toolbar button:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.color-picker {
    position: relative;
    display: flex;
    align-items: center;
}
.color-picker input[type="color"] {
    opacity: 0;
    position: absolute;
    width: 100%; height: 100%;
    cursor: pointer;
}
.rich-text-area {
    min-height: 300px;
    outline: none;
    line-height: 1.6;
    padding: 16px 0;
}
.rich-text-area[placeholder]:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    pointer-events: none;
}
.editor-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

/* =========================================
   BIBLE SECTION
   ========================================= */
.bible-tabs {
    display: flex;
    background: var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
}
.tab-btn {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.bible-tab-content {
    display: none;
}
.bible-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
.bible-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.bible-controls select {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    flex-grow: 1;
}
.bible-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    min-height: 500px;
}
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    height: 100%;
    gap: 16px;
}
.empty-state i {
    width: 48px;
    height: 48px;
    color: var(--border);
}
/* =========================================
   PRAYERS SECTION
   ========================================= */
.prayers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.prayer-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.prayer-item.answered {
    opacity: 0.7;
    border-color: var(--success);
}
.prayer-content h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}
.prayer-item.answered .prayer-content h3 {
    text-decoration: line-through;
}
.prayer-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}
.prayer-cat {
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* =========================================
   HABITS SECTION
   ========================================= */
.habits-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 32px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease;
}
.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.habit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.habit-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.habit-card.completed {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.habit-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 8px;
}
.habit-card.completed .habit-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}
.habit-title {
    font-weight: 500;
    font-size: 0.95rem;
}

/* =========================================
   READING PLAN SECTION
   ========================================= */
.plan-tracker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.plan-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =========================================
   GRATITUDE SECTION
   ========================================= */
.gratitude-input-area {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gratitude-input-area input {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-main);
    font-size: 1rem;
    transition: var(--transition);
}
.gratitude-input-area input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.gratitude-card {
    background: var(--accent-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    color: var(--accent);
}
.gratitude-card ul {
    margin-left: 20px;
    margin-top: 12px;
    color: var(--text-main);
}
.gratitude-card li {
    margin-bottom: 8px;
}

/* =========================================
   POMODORO SECTION
   ========================================= */
.pomodoro-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.pomo-timer {
    font-family: var(--font-sans);
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin: 32px 0;
    font-variant-numeric: tabular-nums;
}
.pomo-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.pomo-modes {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* =========================================
   INTERACTIVE ANIMATIONS
   ========================================= */
.task-checkbox, .habit-card {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.task-checkbox:active, .habit-card:active {
    transform: scale(0.9);
}
.habit-card.completed, .task-item.completed .task-checkbox {
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* =========================================
   CATEGORY DOTS & INTERACTIVE HABITS
   ========================================= */
.cat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.cat-estudio { background: #3b82f6; }
.cat-iglesia { background: #8b5cf6; }
.cat-personal { background: #ec4899; }
.cat-casa { background: #10b981; }
.cat-urgente { background: #ef4444; }
.cat-general { background: #9ca3af; }

.water-tracker {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}
.water-glass {
    width: 32px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 0 0 16px 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}
.water-glass.filled {
    background: var(--primary);
}
.finance-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.finance-input input {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.depto-checklist {
    text-align: left;
    margin: 16px 0;
}
.depto-checklist label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* =========================================
   NEW FEATURES (Testimonies, Mood, Fasting)
   ========================================= */

.polaroid {
    background: #fff;
    padding: 16px;
    padding-bottom: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}
.polaroid:nth-child(even) {
    transform: rotate(3deg);
}
.polaroid:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}
.polaroid-caption {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    line-height: 1.4;
    margin-top: 12px;
}

.mood-tracker-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.mood-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    cursor: help;
}

#digital-fast-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-main);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
#digital-fast-overlay.active {
    display: flex;
}
.fast-timer {
    font-size: 6rem;
    font-family: var(--font-serif);
    font-weight: bold;
    color: var(--primary);
    margin: 24px 0;
}
