/* ==================== FROZEN KINGDOM THEME ==================== */
/* Elsa-inspired color palette for Mansi's Study & Diet Scheduler */

:root {
    /* Light Theme - Ice Palace Colors */
    --ice-primary: #4AA3DF;
    --ice-secondary: #87CEEB;
    --ice-accent: #00D4FF;
    --crystal-purple: #9B7ED4;
    --snow-white: #FFFFFF;
    --frost-bg: #F0F8FF;
    --frost-card: #FFFFFF;
    --frost-text: #1A3A5C;
    --frost-text-muted: #6B8FA8;

    /* Legacy mappings for compatibility */
    --primary: var(--ice-primary);
    --primary-light: #E8F4FF;
    --primary-dark: #2E7CB5;
    --secondary: #10b981;
    --secondary-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;

    /* Dynamic Background Colors - Frozen themed */
    --bg-morning: #FFF9F0;
    --bg-day: #F0F8FF;
    --bg-evening: #FFF5EB;
    --bg-night: #E8F4FF;

    --card: var(--frost-card);
    --card-hover: #FAFCFF;
    --text: var(--frost-text);
    --text-light: var(--frost-text-muted);
    --text-muted: #94a3b8;
    --border: #E0E8F0;
    --shadow: 0 2px 8px rgba(74, 163, 223, 0.08);
    --shadow-hover: 0 8px 24px rgba(74, 163, 223, 0.15);
    --shadow-modal: 0 20px 40px rgba(74, 163, 223, 0.2);

    /* Timing */
    --transition-fast: 0.15s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
}

/* Dark Theme - Night in Arendelle */
[data-theme="dark"] {
    --ice-primary: #5BB3EF;
    --ice-secondary: #2E5C8A;
    --ice-accent: #00E5FF;
    --crystal-purple: #B794F6;
    --snow-white: #E8F4FF;
    --frost-bg: #0A1628;
    --frost-card: #152238;
    --frost-text: #B8D4E8;
    --frost-text-muted: #6B8FA8;

    --primary: var(--ice-primary);
    --primary-light: #1A3A5C;
    --primary-dark: #7EC8F5;
    --secondary: #34d399;
    --secondary-light: #064e3b;
    --danger: #f87171;
    --danger-light: #450a0a;
    --success: #4ade80;
    --success-light: #14532d;
    --warning: #fbbf24;
    --warning-light: #78350f;

    --bg-morning: #0F1A2E;
    --bg-day: #0A1628;
    --bg-evening: #1A1A3E;
    --bg-night: #050D1A;

    --card: var(--frost-card);
    --card-hover: #1E2E4A;
    --text: var(--frost-text);
    --text-light: var(--frost-text-muted);
    --text-muted: #64748b;
    --border: #1E3A5C;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Dynamic Background Classes */
.bg-morning { background: var(--bg-morning) !important; }
.bg-day { background: var(--bg-day) !important; }
.bg-evening { background: var(--bg-evening) !important; }
.bg-night { background: var(--bg-night) !important; }

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-day);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition-slow) ease;
}

/* ==================== APP CONTAINER ==================== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem;
    padding-bottom: 2rem;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.live-clock {
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ice-primary);
    letter-spacing: 0.02em;
}

.live-clock::before {
    content: '❄️ ';
}

.top-bar-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: var(--frost-bg);
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--ice-primary);
    color: var(--snow-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 163, 223, 0.3);
}

.icon-btn.active {
    background: var(--ice-primary);
    color: var(--snow-white);
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== HEADER ==================== */
.main-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--card) 0%, var(--frost-bg) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '❄️';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

.main-header::after {
    content: '❄️';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

.main-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--ice-primary);
    font-family: 'Playfair Display', serif;
}

.ice-queen-subtitle {
    font-size: 1rem;
    color: var(--crystal-purple);
    font-style: italic;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.date-range {
    color: var(--text-light);
    font-size: 0.9rem;
}

.date-range::after {
    content: ' | Let It Go! ✨';
    color: var(--ice-accent);
}

/* ==================== SESSION BAR ==================== */
.session-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--ice-primary) 0%, var(--ice-secondary) 100%);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.session-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.session-btn.check-in {
    background: var(--snow-white);
    color: var(--ice-primary);
}

.session-btn.check-in:hover:not(:disabled) {
    background: #E8F4FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.session-btn.check-out {
    background: var(--crystal-purple);
    color: var(--snow-white);
}

.session-btn.check-out:hover:not(:disabled) {
    background: #8B6BC7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 126, 212, 0.3);
}

.session-status {
    color: var(--snow-white);
    font-size: 0.9rem;
    margin-left: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==================== CALENDAR ==================== */
#calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

/* ==================== DAY CARD ==================== */
.day-card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem;
    transition: all var(--transition-medium);
    position: relative;
    border: 1px solid var(--border);
}

.day-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--ice-accent);
}

.day-card.view-only {
    opacity: 0.7;
    pointer-events: none;
}

.day-card.view-only .task-list,
.day-card.view-only .diet-list {
    pointer-events: none;
}

.day-card.today {
    border: 2px solid var(--ice-accent);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2), var(--shadow-hover);
}

.day-card.today::before {
    content: '👑';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 1.5rem;
}

.day-card.light-day {
    border: 2px solid #F5D742;
}

.day-card.normal-day {
    border: 2px solid var(--ice-secondary);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.day-name {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.day-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ice-primary);
}

.day-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: var(--ice-accent);
    color: var(--snow-white);
    font-weight: 600;
}

/* ==================== SECTIONS ==================== */
.section {
    margin-bottom: 1rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.section-tasks .section-title {
    color: var(--ice-primary);
}

.section-diet .section-title {
    color: var(--secondary);
}

.section-icon {
    font-size: 0.95rem;
}

/* ==================== TASKS ==================== */
.task-list {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    border: 1px solid transparent;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--ice-accent);
}

.task-item.draggable {
    cursor: grab;
}

.task-item.draggable:hover {
    cursor: grab;
}

.task-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-item.completed {
    opacity: 0.7;
    background: linear-gradient(135deg, var(--success-light) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-item.missed {
    background: linear-gradient(135deg, var(--danger-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-left: 3px solid var(--danger);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--ice-primary);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.task-checkbox:hover {
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(74, 163, 223, 0.2);
}

.task-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.task-handle {
    color: var(--text-muted);
    cursor: grab;
    font-size: 0.8rem;
    user-select: none;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.task-text {
    font-size: 0.9rem;
    border: none;
    background: transparent;
    color: var(--text);
    padding: 0.2rem;
    width: 100%;
    resize: none;
    overflow: hidden;
}

.task-text:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.task-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.task-delete {
    opacity: 0;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.task-item:hover .task-delete {
    opacity: 1;
}

.task-delete:hover {
    background: var(--danger-light);
}

/* ==================== DIET ==================== */
.diet-list {
    min-height: 30px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.diet-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    background: linear-gradient(135deg, var(--secondary-light) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 10px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.diet-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.meal-type {
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--secondary);
    text-transform: uppercase;
    white-space: nowrap;
}

.diet-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.2rem;
    min-width: 0;
}

.diet-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.diet-delete {
    opacity: 0;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: opacity var(--transition-fast);
}

.diet-item:hover .diet-delete {
    opacity: 1;
}

/* ==================== ADD BUTTONS ==================== */
.add-btn {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 2px dashed var(--border);
    background: transparent;
    color: var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.add-btn:hover:not(:disabled) {
    border-style: solid;
}

.add-task-btn:hover:not(:disabled) {
    border-color: var(--ice-primary);
    color: var(--ice-primary);
    background: var(--primary-light);
}

.add-diet-btn:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--secondary-light);
}

.add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.75rem;
    font-style: italic;
    opacity: 0.6;
}

/* ==================== MODALS ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--frost-bg) 0%, var(--card) 100%);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ice-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

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

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Modal Content */
.summary-section {
    margin-bottom: 1.25rem;
}

.summary-section:last-of-type {
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-list li {
    padding: 0.5rem 0.75rem;
    background: var(--bg-day);
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-list li.completed {
    background: var(--success-light);
    color: var(--success);
}

.summary-list li.missed {
    background: var(--danger-light);
    color: var(--danger);
}

.reflection-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-day);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

.reflection-section textarea:focus {
    outline: none;
    border-color: var(--ice-primary);
    box-shadow: 0 0 0 3px rgba(74, 163, 223, 0.1);
}

/* Buttons */
.primary-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--ice-primary) 0%, var(--ice-secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(74, 163, 223, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 163, 223, 0.4);
}

.secondary-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.secondary-btn:hover {
    background: var(--card-hover);
    border-color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--frost-bg) 0%, var(--card) 100%);
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ice-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.week-visualization {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-day);
    border-radius: 16px;
}

.day-bar {
    flex: 1;
    min-width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.day-bar-label {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.day-bar-fill {
    width: 100%;
    height: 60px;
    background: var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.day-bar-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--ice-primary), var(--ice-accent));
    border-radius: 0 0 4px 4px;
    transition: height var(--transition-medium);
}

/* ==================== TOASTS ==================== */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background: var(--card);
    color: var(--text);
    padding: 0.9rem 1.2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlideIn 0.3s ease;
    pointer-events: auto;
    max-width: 320px;
    border-left: 3px solid var(--ice-primary);
}

.toast.reminder {
    border-left-color: var(--ice-accent);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.error {
    border-left-color: var(--danger);
}

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

.toast-icon {
    font-size: 1.1rem;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

/* ==================== NIGHT OVERLAY ==================== */
.night-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0A1628 0%, #1A1A3E 50%, #0D1B2A 100%);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.night-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.night-message {
    color: #E8F4FF;
    max-width: 400px;
}

.night-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.night-message h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--ice-accent);
}

.night-message p {
    font-size: 1.1rem;
    color: var(--frost-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.night-message .secondary-btn {
    color: #E8F4FF;
    border-color: rgba(255, 255, 255, 0.2);
}

.night-message .secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    .app-container {
        padding: 0.5rem;
    }

    .top-bar {
        padding: 0.6rem 0.75rem;
    }

    .live-clock {
        font-size: 1.1rem;
    }

    .main-header h1 {
        font-size: 1.25rem;
    }

    .ice-queen-subtitle {
        font-size: 0.85rem;
    }

    .session-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .session-status {
        text-align: center;
        margin: 0;
    }

    #calendar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .task-delete,
    .diet-delete {
        opacity: 1;
    }

    .modal {
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-body {
        max-height: 70vh;
    }

    .stats-grid {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        max-width: 100%;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ice-primary);
}

/* ==================== SELECTION ==================== */
::selection {
    background: var(--primary-light);
    color: var(--ice-primary);
}

[data-theme="dark"] ::selection {
    background: var(--ice-primary);
    color: white;
}

/* ==================== FROZEN DECORATIONS ==================== */
.frozen-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Snowflake animation */
@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.snowflake {
    position: fixed;
    top: -50px;
    color: var(--ice-accent);
    font-size: 1rem;
    animation: snowfall 10s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 13s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 14s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 16s; animation-delay: 4s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 10s; animation-delay: 1s; }
