@font-face {
    font-family: 'SuperFrog';
    src: url('SuperFrog-Yqy1q.ttf') format('truetype');
    font-display: swap;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-main: #f8fafc;
    --bg-card: white;
    --text: #1e293b;
    --text-light: #475569; /* Improved from #64748b for better contrast (WCAG AA compliant) */
    --border: #e2e8f0;
    
    --energy-high: #ef4444;
    --energy-medium: #f59e0b;
    --energy-low: #10b981;
    
    --protected: #9333ea;
}

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

/* Default font */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text);
    transition: font-family 0.3s ease;
}

/* Dyslexia-friendly font - OpenDyslexic has very distinctive letter shapes */
body.dyslexia-font,
body.dyslexia-font * {
    font-family: 'OpenDyslexic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: 0.05em; /* Slightly wider spacing for readability */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-main);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-family: 'SuperFrog', cursive, sans-serif;
}

.tagline {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1em;
}

.current-date {
    color: var(--text);
    font-size: 1.1em;
    margin-top: 10px;
    font-weight: 600;
}

.sync-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

.sync-status.signed-in {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
}

.sync-status.signed-out {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid var(--primary);
}

/* Saving indicator */
.saving-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1500;
    display: none;
    animation: slideInUp 0.3s ease-out;
}

.saving-indicator.visible {
    display: block;
}

.saving-indicator.success {
    background: rgba(16, 185, 129, 0.95);
}

.saving-indicator.error {
    background: rgba(239, 68, 68, 0.95);
}

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

/* Toast notification for sign-in */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.toast.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

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

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

/* Sync indicator in top-right corner */
#syncIndicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600; /* Increased from 500 for better prominence */
    font-size: 1rem; /* Increased from 0.9rem for better visibility */
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    role: status;
    aria-live: polite;
}

/* Pulse animation for syncing state */
#syncIndicator.syncing {
    animation: syncPulse 1.5s ease-in-out infinite;
}

@keyframes syncPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

#syncIndicator:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#syncIndicator:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Button styles for Settings */
.primary-button {
    padding: 0.75rem 1.5rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-button:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.secondary-button {
    padding: 0.5rem 1rem;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-button:hover {
    background: #f8f9fa;
    border-color: #999;
}

.header-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Loading state for buttons */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

/* Disabled state styling */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-light);
    transform: none !important;
    box-shadow: none !important;
}

/* Haptic-style feedback on click */
.btn:active:not(:disabled):not(.loading) {
    transform: scale(0.95);
}

.btn .btn-text {
    display: inline;
}

.btn .btn-icon {
    display: inline;
}

/* Tooltip for mobile */
.btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover:not(:disabled):not(.loading) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active:not(:disabled):not(.loading) {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover:not(:disabled):not(.loading) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary:active:not(:disabled):not(.loading) {
    transform: translateY(-1px) scale(0.98);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled):not(.loading) {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:active:not(:disabled):not(.loading) {
    transform: translateY(-1px) scale(0.98);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* Done for Today Button */
.done-for-today-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.done-for-today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.done-hint {
    font-size: 0.9em;
    margin-top: 8px;
}

/* WHAT NOW - Hero Section */
.what-now-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.what-now-hero h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.location-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.location-btn {
    padding: 15px 25px;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.location-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.location-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Energy Picker Buttons */
.energy-btn {
    padding: 15px 25px;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.energy-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.energy-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

.context-info {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.context-info h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.suggestion-card {
    background: white;
    color: var(--text);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: left;
}

.suggestion-card h3 {
    color: var(--primary);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.suggestion-reason {
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

/* Schedule Section */
.schedule-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

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

.schedule-header h2 {
    color: var(--primary);
    font-size: 1.5em;
}

.current-block {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.current-block h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.time-remaining {
    font-size: 1.1em;
    opacity: 0.9;
}

.schedule-day {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.schedule-day h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.schedule-item {
    padding: 10px 12px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 0.95em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-item.class {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.schedule-item.work {
    background: #fce4ec;
    border-left: 3px solid #e91e63;
}

.schedule-item.personal {
    background: #f3e5f5;
    border-left: 3px solid #9c27b0;
}

.schedule-item.free {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.schedule-item.protected {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    border-left: 3px solid #6b21a8;
}

.schedule-item.current {
    border: 3px solid var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.schedule-item .lock-icon {
    font-size: 1.2em;
}

/* Week Navigation */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.week-navigation button {
    padding: 0.5rem 1rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.week-navigation button:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

#weekLabel {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

/* Day Tabs for Daily Schedule */
.day-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.day-tab {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.day-tab:hover {
    background: #f0f4f8;
    border-color: #4285f4;
}

.day-tab.active {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

/* Task Cards */
.card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 35px; /* Increased from 25px for better breathing room */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 3px solid;
    padding-bottom: 10px;
}

.task-list {
    display: grid;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-main);
    border-radius: 10px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.task-item:hover {
    border-color: var(--primary);
}

.task-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.task-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85em;
}

.task-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    background: var(--border);
    color: var(--text);
    transition: all 0.3s;
}

.task-btn:hover {
    background: var(--primary);
    color: white;
}

.energy-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.energy-high {
    background: var(--energy-high);
    color: white;
}

.energy-medium {
    background: var(--energy-medium);
    color: white;
}

.energy-low {
    background: var(--energy-low);
    color: white;
}

.location-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    background: var(--border);
}

.time-estimate {
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    color: var(--primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
}

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

.quick-add {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-add input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1em;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}

.config-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    color: #856404;
}

/* Visual Time Block Planner Styles */
.planner-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
}

.planner-day-column {
    min-width: 150px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.planner-day-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.time-block {
    position: relative;
    margin: 4px;
    padding: 0.6rem;
    border-radius: 6px;
    border: 2px dashed transparent;
    transition: all 0.2s;
    /* Fixed height for all blocks - better scannability */
    min-height: 80px;
    max-height: 80px;
    height: 80px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

.time-block.type-free {
    background: #f0fdf4;
    border-color: #86efac;
}

.time-block.type-class {
    background: #fef3c7;
    border-color: #fcd34d;
}

.time-block.type-work {
    background: #fee2e2;
    border-color: #fca5a5;
}

.time-block.type-personal {
    background: #f3e5f5;
    border-color: #ce93d8;
}

.time-block.type-protected {
    background: linear-gradient(135deg, #e9d5ff, #ddd6fe);
    border-color: #a78bfa;
    /* Slightly taller for protected blocks to stand out */
    min-height: 95px;
    max-height: 95px;
    height: 95px !important;
    border: 3px solid #a78bfa;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
}

.time-block.type-commute {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.block-time {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-lock {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 1.2em;
}

.block-tasks {
    min-height: 30px;
    margin-top: 8px;
    padding: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
}

.block-tasks.drop-target {
    background: rgba(102, 126, 234, 0.2);
    border: 2px dashed var(--primary);
}

.mini-task-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 6px 8px;
    margin: 4px 0;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
    font-size: 0.85rem;
    cursor: move;
}

.mini-task-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mini-task-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-task-time {
    font-size: 0.75em;
    color: var(--text-light);
    margin: 0 4px;
}

.mini-task-remove {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mini-task-remove:hover {
    background: #dc2626;
}

.task-card.dragging {
    opacity: 0.5;
}

.unscheduled-task-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--border);
    margin: 8px 0;
    cursor: move;
    transition: all 0.2s;
}

.unscheduled-task-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.unscheduled-task-card.dragging {
    opacity: 0.5;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    justify-content: flex-start;
    position: relative; /* Required for absolute positioning of dropdown */
    overflow: visible; /* Allow dropdown to overflow the container */
}

.tab-button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #f0f2f5;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-button:hover {
    background: #e4e6eb;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.menu-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.menu-button:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Make More button a positioning context */
#moreMenuButton {
    position: relative;
}

/* Desktop Dropdown */
.more-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 200px;
    display: block; /* CHANGED from display: none */
}

.more-menu.hidden {
    display: none !important; /* Add this rule */
}

.more-menu-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
    color: var(--text);
}

.more-menu-item:hover {
    background: var(--bg-main);
}

/* Bottom Sheet - Mobile Only */
.bottom-sheet-overlay {
    display: none;
}

.bottom-sheet {
    display: none;
}

@media (max-width: 768px) {
    /* Hide dropdown on mobile */
    .more-menu {
        display: none !important;
    }
    
    /* Bottom sheet overlay */
    .bottom-sheet-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .bottom-sheet-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Bottom sheet */
    .bottom-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        max-height: 60vh;
    }
    
    .bottom-sheet.active {
        transform: translateY(0);
    }
    
    .bottom-sheet-handle {
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 12px auto 8px auto;
    }
    
    .bottom-sheet-header {
        padding: 8px 20px 15px 20px;
        border-bottom: 1px solid var(--border);
    }
    
    .bottom-sheet-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text);
        margin: 0;
    }
    
    .bottom-sheet-menu {
        padding: 10px 0;
    }
    
    .bottom-sheet-item {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 18px 20px;
        border: none;
        background: none;
        text-align: left;
        font-size: 1rem;
        color: var(--text);
        cursor: pointer;
        transition: background 0.15s;
    }
    
    .bottom-sheet-item:active {
        background: var(--bg-main);
    }
    
    .bottom-sheet-item-icon {
        font-size: 1.4em;
    }
    
    .bottom-sheet-item-text {
        flex: 1;
        font-weight: 500;
    }
}

.tab-content {
    padding: 2rem;
    animation: fadeIn 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .planner-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .planner-day-column {
        min-width: 140px;
    }
    
    /* Improved mobile tab navigation */
    .tab-navigation {
        position: sticky;
        top: 0;
        z-index: 100;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 10px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    /* Fix More dropdown positioning on mobile */
    .tab-navigation {
        position: relative; /* Make tab nav a positioning context */
    }
    
    /* Make More button's wrapper a positioning context */
    .tab-navigation > div:last-child {
        position: relative;
    }
    
    /* Position dropdown correctly on mobile */
    .more-menu {
        position: fixed !important; /* Override desktop positioning */
        bottom: 80px; /* Above the bottom nav */
        right: 10px;
        left: auto;
        top: auto;
        z-index: 10000 !important; /* Make sure it's on top */
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3); /* Shadow going UP */
    }
    
    /* Make sure dropdown is visible when shown */
    .more-menu:not(.hidden) {
        display: block !important;
    }
    
    .tab-button {
        padding: 12px 18px; /* Increased for better touch targets (min 44px height) */
        font-size: 13px;
        min-width: 80px;
        min-height: 44px; /* WCAG minimum touch target size */
    }
    
    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn {
        flex: 1 1 45%;
        min-width: 120px;
        min-height: 44px; /* WCAG minimum touch target size */
    }
    
    /* Better touch targets for location and energy buttons */
    .location-btn,
    .energy-btn {
        min-height: 48px;
        padding: 12px 20px;
    }
    
    /* Improve task item touch targets */
    .task-item {
        padding: 18px 15px; /* Increased vertical padding */
    }
    
    .task-checkbox {
        width: 28px; /* Increased from 24px */
        height: 28px;
    }
    
    /* Better spacing for cards on mobile */
    .card {
        margin-bottom: 25px;
        padding: 20px;
    }
    
    /* Fix text overflow in task titles */
    .task-title {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
    
    /* Fix project card text overflow */
    .project-header h3 {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px; /* Reduced from 20px for more screen space */
        padding-top: 60px; /* Space for fixed user badge */
    }

    h1 {
        font-size: 1.8em; /* Slightly smaller for mobile */
    }

    .user-info {
        top: 10px;
        right: 10px;
        font-size: 0.75em;
        padding: 5px 10px;
    }

    .user-info .email {
        max-width: 100px;
    }

    /* Transform buttons to compact icon toolbar on mobile */
    .header-buttons {
        display: flex;
        gap: 10px;
        padding: 15px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-bottom: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        width: 100%;
        height: 50px;
        min-height: 50px;
        padding: 8px;
        justify-content: center;
        font-size: 1.5em;
        border-radius: 8px;
    }

    /* Hide text labels on mobile */
    .btn .btn-text {
        display: none;
    }

    /* Show only icons */
    .btn .btn-icon {
        display: inline;
        margin: 0;
    }

    /* Show tooltip on long press (touch) */
    .btn:active::after {
        opacity: 1;
    }

    .location-selector {
        flex-direction: column;
    }

    .location-btn {
        width: 100%;
    }
    
    /* Improve modal sizing on mobile */
    .modal-content {
        padding: 20px;
        max-height: 85vh;
    }
    
    /* Better form inputs on mobile */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Sync indicator positioning on mobile */
    #syncIndicator {
        top: 10px;
        right: 10px;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Tablet size - keep 6 column grid */
@media (min-width: 481px) and (max-width: 768px) {
    .header-buttons {
        grid-template-columns: repeat(6, 1fr);
        max-width: 450px;
    }
}

/* Small mobile - 3 column grid for very narrow screens */
@media (max-width: 400px) {
    .header-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .btn {
        height: 48px;
        min-height: 48px;
        font-size: 1.3em;
    }
}

/* ===== PROJECT STYLES ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

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

.project-header h3 {
    color: var(--primary);
    font-size: 1.3em;
    margin: 0;
    flex: 1;
}

.project-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-paused {
    background: #fef3c7;
    color: #92400e;
}

.status-planning {
    background: #e0e7ff;
    color: #3730a3;
}

.status-completed {
    background: #f3e8ff;
    color: #6b21a8;
}

.category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    background: var(--border);
    color: var(--text);
}

.project-description {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.project-progress-container {
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative; /* Fix: Constrain absolutely positioned text */
}

.project-progress-container:hover {
    transform: scale(1.02);
}

.project-progress-bar {
    height: 24px;
    background: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border);
}

.project-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.85em;
}

.project-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text);
    pointer-events: none;
}

.project-task-count {
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
}

/* Project Modal Styles */
.project-tasks-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 10px;
    background: var(--bg-main);
    border-radius: 8px;
}

.project-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.project-task-item:hover {
    border-color: var(--primary);
}

.project-task-item.completed {
    opacity: 0.6;
}

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

.project-task-text {
    flex: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    outline: none;
}

.project-task-text:focus {
    background: var(--bg-main);
    border: 1px solid var(--primary);
}

.task-delete-btn {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

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

.task-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.add-task-section {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.project-progress-summary {
    text-align: center;
    padding: 15px;
    background: var(--bg-main);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.1em;
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-badges {
        width: 100%;
    }
}

/* ===== CRISIS MODE STYLES ===== */
#crisisModeContainer {
    margin-bottom: 30px;
}

.crisis-banner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5);
    }
}

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

.crisis-header h2 {
    font-size: 1.8em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.crisis-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5em;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crisis-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.crisis-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.crisis-stat {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.crisis-stat-label {
    display: block;
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.crisis-stat-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
}

.crisis-progress-bar {
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.crisis-progress-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.crisis-progress-text {
    text-align: center;
    font-size: 0.95em;
    font-weight: 600;
}

.crisis-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.crisis-section h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.critical-section {
    border-left: 4px solid var(--danger);
    background: linear-gradient(to right, #fef2f2, white);
}

.critical-section h3 {
    color: var(--danger);
}

.urgent-section {
    border-left: 4px solid var(--warning);
    background: linear-gradient(to right, #fffbeb, white);
}

.urgent-section h3 {
    color: var(--warning);
}

.plan-section {
    border-left: 4px solid var(--primary);
}

.plan-section h3 {
    color: var(--primary);
}

.regular-section {
    border-left: 4px solid var(--text-light);
    opacity: 0.8;
}

.regular-section h3 {
    color: var(--text-light);
}

.crisis-chunk-summary {
    background: var(--bg-main);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--text);
}

.crisis-tasks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crisis-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-main);
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.crisis-task:hover {
    border-color: var(--primary);
    transform: translateX(2px);
}

.crisis-task.critical-task {
    border-color: var(--danger);
    background: #fef2f2;
}

.crisis-task.regular-task {
    opacity: 0.7;
}

.crisis-task-content {
    flex: 1;
}

.crisis-task-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.crisis-task-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85em;
}

.crisis-deadline {
    background: var(--danger);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.crisis-time {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
}

.crisis-block {
    background: var(--bg-main);
    color: var(--text-light);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9em;
}

.crisis-due {
    background: var(--bg-main);
    color: var(--text-light);
    padding: 3px 10px;
    border-radius: 12px;
}

.crisis-complete-btn {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
}

.crisis-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crisis-day {
    background: var(--bg-main);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.crisis-day.completed {
    background: #f0fdf4;
    border-color: var(--success);
    opacity: 0.7;
}

.crisis-day.today {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.crisis-day.past {
    opacity: 0.6;
}

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

.crisis-day-date {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--text);
}

.crisis-day-time {
    font-weight: 600;
    color: var(--primary);
}

.crisis-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.crisis-day-task {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--text);
}

/* Responsive Crisis Mode */
@media (max-width: 768px) {
    .crisis-banner {
        padding: 20px;
    }
    
    .crisis-header h2 {
        font-size: 1.4em;
    }
    
    .crisis-summary {
        grid-template-columns: 1fr;
    }
    
    .crisis-stat-value {
        font-size: 1.3em;
    }
    
    .crisis-section {
        padding: 15px;
    }
    
    .crisis-section h3 {
        font-size: 1.1em;
    }
}

/* ===== DUE SOON BANNER ANIMATION ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

#dueSoonBanner {
    animation: pulse 2s infinite;
}

/* ===== ADMIN PANEL STYLES ===== */
.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.user-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.user-email {
    font-weight: 500;
    flex: 1;
    color: var(--text);
}

.user-badge {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 0 10px;
}

.remove-btn {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-btn:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-light);
}

/* Responsive admin panel */
@media (max-width: 768px) {
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-badge {
        margin: 0;
    }
    
    .remove-btn {
        width: 100%;
    }
}

/* Spinner animation for loading states */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== COLLAPSIBLE SECTIONS ===== */
.collapsible-section {
    margin-bottom: 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-section.expanded {
    border-color: var(--primary);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-main);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.collapsible-header:hover {
    background: #e8eaf0;
}

.collapsible-header:active {
    transform: scale(0.99);
}

.collapsible-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.collapsible-title h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text);
}

.collapsible-icon {
    font-size: 1.5em;
}

.collapsible-description {
    color: var(--text-light);
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

.collapsible-toggle {
    font-size: 1.5em;
    color: var(--text-light);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.collapsible-section.expanded .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 2000px; /* Large enough for content */
}

.collapsible-inner {
    padding: 20px;
    background: white;
}

/* Badge for section status */
.section-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
}

.section-badge.configured {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.section-badge.required {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.section-badge.optional {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

/* Mobile adjustments for collapsible sections */
@media (max-width: 768px) {
    .collapsible-header {
        padding: 15px;
    }
    
    .collapsible-title h3 {
        font-size: 1.1em;
    }
    
    .collapsible-icon {
        font-size: 1.3em;
    }
    
    .collapsible-inner {
        padding: 15px;
    }
}

/* ===== CELEBRATION ANIMATIONS ===== */
@keyframes celebrationPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes celebrationFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}
