/* ============================================
   DARK MODE - Cyriaque
   ============================================ */

/* Variables Dark Mode */
[data-theme="dark"] {
    --cloud: #1a1025;
    --cloud-light: #1f1530;
    --pure: #261832;
    --glass: rgba(38, 24, 50, 0.85);
    --glass-border: rgba(80, 50, 100, 0.5);
    --text: #f0eaf5;
    --text-soft: #e0d5eb;
    --text-muted: #b8a8c8;
    --accent: #f0eaf5;
    --success: #e8a0e8;
    --success-light: #f0b8f0;
    --success-dark: #c77dff;
    --success-soft: rgba(200, 125, 255, 0.2);
    --gold-gradient: linear-gradient(135deg, #f0b8f0 0%, #e8a0e8 50%, #c77dff 100%);
    --warning: #e8a0e8;
    --danger: #ff6b9d;
}

/* Body background dark */
[data-theme="dark"] body {
    background: linear-gradient(160deg, #1a1025 0%, #2d1b3d 50%, #1a1025 100%);
    background-attachment: fixed;
}

/* FORCE ALL TEXT TO BE VISIBLE */
[data-theme="dark"] * {
    color: inherit;
}

[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] li,
[data-theme="dark"] label,
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f0eaf5;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-soft,
[data-theme="dark"] small,
[data-theme="dark"] .small {
    color: #b8a8c8 !important;
}

/* Section titles */
[data-theme="dark"] .section-title,
[data-theme="dark"] .card-title,
[data-theme="dark"] .routine-name,
[data-theme="dark"] .task-name,
[data-theme="dark"] .event-title,
[data-theme="dark"] .journal-content,
[data-theme="dark"] .gratitude-text {
    color: #f0eaf5 !important;
}

/* Muted text */
[data-theme="dark"] .routine-detail,
[data-theme="dark"] .task-date,
[data-theme="dark"] .event-time,
[data-theme="dark"] .fasting-detail,
[data-theme="dark"] .macro-label,
[data-theme="dark"] .kcal-label,
[data-theme="dark"] .journal-date,
[data-theme="dark"] .entry-date {
    color: #b8a8c8 !important;
}

/* Values and numbers */
[data-theme="dark"] .macro-value,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .kcal-value,
[data-theme="dark"] .progress-value,
[data-theme="dark"] .measurement-value {
    color: #f0eaf5 !important;
}

/* ============================================
   HEADER, NAV & FAVORITES - DARK MODE
   ============================================ */

/* Navigation menu dark - Desktop */
[data-theme="dark"] nav,
[data-theme="dark"] .nav,
[data-theme="dark"] .nav-container,
[data-theme="dark"] .header-nav {
    background: rgba(38, 24, 50, 0.9) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* All nav links same color */
[data-theme="dark"] nav a,
[data-theme="dark"] .nav a,
[data-theme="dark"] .nav-link {
    color: #b8a8c8 !important;
    background: transparent !important;
}

[data-theme="dark"] nav a:hover,
[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav-link:hover {
    color: #f0eaf5 !important;
    background: rgba(200, 125, 255, 0.15) !important;
}

/* Active link and Cyriaque button - WHITE text */
[data-theme="dark"] nav a.active,
[data-theme="dark"] .nav a.active,
[data-theme="dark"] .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
}

/* Cyriaque logo button - just white text, no background */
[data-theme="dark"] nav button.logo-btn {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 700 !important;
}

[data-theme="dark"] nav button.logo-btn:hover {
    background: rgba(200, 125, 255, 0.15) !important;
}

/* HEADER FAVORITES - EXACTLY SAME STYLE AS NAV */
[data-theme="dark"] .header-favorites {
    background: rgba(38, 24, 50, 0.9) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .header-favorites .favorite-item {
    background: transparent !important;
    border: none !important;
}

[data-theme="dark"] .header-favorites .favorite-item:hover {
    background: rgba(200, 125, 255, 0.2) !important;
    transform: scale(1.1);
}

/* ============================================
   MOBILE - DARK MODE
   ============================================ */

/* Mobile logo button (Cyriaque) - WHITE text */
[data-theme="dark"] .mobile-logo-btn {
    background: rgba(38, 24, 50, 0.9) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

/* Mobile burger menu button */
[data-theme="dark"] .burger-menu-btn {
    background: rgba(38, 24, 50, 0.9) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .burger-icon span {
    background: #e8a0e8 !important;
}

/* Mobile nav fullscreen menu */
[data-theme="dark"] .mobile-nav {
    background: linear-gradient(160deg, #1a1025 0%, #2d1b3d 50%, #1a1025 100%) !important;
}

[data-theme="dark"] .mobile-nav-header {
    background: transparent !important;
}

[data-theme="dark"] .close-mobile-nav {
    background: rgba(38, 24, 50, 0.9) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
    color: #e8a0e8 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .close-mobile-nav:hover {
    background: rgba(200, 125, 255, 0.2) !important;
    color: #f0eaf5 !important;
}

/* Mobile nav links */
[data-theme="dark"] .mobile-nav-links a,
[data-theme="dark"] .mobile-nav-links button {
    color: #b8a8c8 !important;
    background: transparent !important;
}

[data-theme="dark"] .mobile-nav-links a:hover,
[data-theme="dark"] .mobile-nav-links button:hover {
    background: rgba(200, 125, 255, 0.15) !important;
    color: #f0eaf5 !important;
}

[data-theme="dark"] .mobile-nav-links a.active-link {
    background: linear-gradient(145deg, rgba(232, 160, 232, 0.3), rgba(200, 125, 255, 0.2)) !important;
    color: #e8a0e8 !important;
}

/* Mobile nav favorites */
[data-theme="dark"] .mobile-nav-favorites {
    background: rgba(38, 24, 50, 0.5) !important;
    border-top: 1px solid rgba(100, 60, 130, 0.3) !important;
}

[data-theme="dark"] .mobile-nav-favorites-title {
    color: #9080a5 !important;
}

[data-theme="dark"] .mobile-nav-favorites-grid a {
    background: rgba(30, 20, 45, 0.6) !important;
    border: 1px solid rgba(100, 60, 130, 0.3) !important;
}

[data-theme="dark"] .mobile-nav-favorites-grid a:hover {
    background: rgba(200, 125, 255, 0.2) !important;
    border-color: rgba(200, 125, 255, 0.5) !important;
}

[data-theme="dark"] .mobile-nav-favorites-grid .fav-name {
    color: #b8a8c8 !important;
}

/* Mobile nav overlay */
[data-theme="dark"] .mobile-nav-overlay {
    background: rgba(10, 5, 15, 0.8) !important;
}

/* Cards & Glass effect dark */
[data-theme="dark"] .glass,
[data-theme="dark"] .section-card {
    background: linear-gradient(145deg, rgba(50, 30, 65, 0.8), rgba(30, 18, 40, 0.9)) !important;
    border-color: rgba(80, 50, 100, 0.5) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Card icons dark */
[data-theme="dark"] .card-icon {
    background: linear-gradient(145deg, rgba(232, 160, 232, 0.2), rgba(200, 125, 255, 0.15)) !important;
}

/* Inputs dark */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: rgba(20, 10, 30, 0.6) !important;
    border-color: rgba(80, 50, 100, 0.5) !important;
    color: #f0eaf5 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: #c77dff !important;
    box-shadow: 0 0 15px rgba(200, 125, 255, 0.2) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #9080a5 !important;
}

/* Buttons dark */
[data-theme="dark"] .btn-add,
[data-theme="dark"] .add-btn,
[data-theme="dark"] button[type="submit"],
[data-theme="dark"] .publish-btn {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
    color: #1a1025 !important;
    box-shadow: 0 4px 15px rgba(200, 125, 255, 0.3) !important;
}

[data-theme="dark"] .btn-add:hover,
[data-theme="dark"] .add-btn:hover {
    box-shadow: 0 6px 20px rgba(200, 125, 255, 0.5) !important;
}

/* Task items dark */
[data-theme="dark"] .task-item,
[data-theme="dark"] .routine-item,
[data-theme="dark"] .macro-box,
[data-theme="dark"] .fasting-item,
[data-theme="dark"] .journal-entry-display,
[data-theme="dark"] .gratitude-item,
[data-theme="dark"] .event-item,
[data-theme="dark"] .measurement-card {
    background: rgba(20, 10, 30, 0.5) !important;
    border-color: rgba(80, 50, 100, 0.4) !important;
}

/* EVE AND CO board dark */
[data-theme="dark"] .task-card {
    background: rgba(24, 12, 34, 0.9) !important;
    border-color: rgba(120, 80, 160, 0.5) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .board-column {
    background: linear-gradient(160deg, rgba(38, 24, 50, 0.95), rgba(26, 16, 37, 0.9)) !important;
    border-color: rgba(120, 80, 160, 0.45) !important;
}

[data-theme="dark"] .task-title,
[data-theme="dark"] .column-title,
[data-theme="dark"] .control-title {
    color: #f0eaf5 !important;
}

[data-theme="dark"] .page-subtitle,
[data-theme="dark"] .inline-message {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
    color: #1a1025 !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(200, 125, 255, 0.35) !important;
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(200, 125, 255, 0.5) !important;
}

[data-theme="dark"] .btn-danger {
    color: #ff8db3 !important;
}

[data-theme="dark"] .member-remove {
    background: rgba(30, 18, 45, 0.9) !important;
    border: 1px solid rgba(200, 125, 255, 0.35) !important;
    color: #e8a0e8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .member-remove:hover {
    background: rgba(60, 35, 90, 0.95) !important;
    color: #ff8db3 !important;
    border-color: rgba(255, 140, 179, 0.6) !important;
}

[data-theme="dark"] .history-item {
    background: rgba(30, 18, 45, 0.7) !important;
    border-color: rgba(120, 80, 160, 0.35) !important;
}

[data-theme="dark"] .history-item .task-name,
[data-theme="dark"] .history-item .task-date {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .history-toggle {
    background: rgba(38, 24, 50, 0.8) !important;
    border-color: rgba(120, 80, 160, 0.4) !important;
    color: #e8a0e8 !important;
}

[data-theme="dark"] .history-delete {
    color: #ff8db3 !important;
}

[data-theme="dark"] #taskAssigneeSelect {
    background-image:
        linear-gradient(45deg, transparent 50%, #f0eaf5 50%),
        linear-gradient(135deg, #f0eaf5 50%, transparent 50%);
    --select-arrow: #f0eaf5;
}

/* Memory page dark */
[data-theme="dark"] .memory-card {
    background: rgba(30, 18, 45, 0.75) !important;
    border-color: rgba(120, 80, 160, 0.35) !important;
}

[data-theme="dark"] .memory-text,
[data-theme="dark"] .tweet-head {
    color: #f0eaf5 !important;
}

[data-theme="dark"] .memory-tag,
[data-theme="dark"] .input-hint {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .memory-site-preview,
[data-theme="dark"] .memory-tweet {
    background: rgba(20, 10, 30, 0.6) !important;
    border-color: rgba(120, 80, 160, 0.35) !important;
}

[data-theme="dark"] .tweet-media {
    border-color: rgba(120, 80, 160, 0.35) !important;
}

[data-theme="dark"] .memory-image-wrap {
    background: rgba(20, 10, 30, 0.45) !important;
    border-color: rgba(120, 80, 160, 0.35) !important;
}

[data-theme="dark"] .memory-open-btn {
    background: rgba(20, 10, 30, 0.55) !important;
    border-color: rgba(120, 80, 160, 0.35) !important;
    color: #f0eaf5 !important;
}

[data-theme="dark"] .memory-lightbox-close {
    background: #f0eaf5 !important;
    color: #241433 !important;
}

[data-theme="dark"] .column-count,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .empty-board {
    background: rgba(200, 125, 255, 0.15) !important;
    border-color: rgba(200, 125, 255, 0.3) !important;
    color: #b8a8c8 !important;
}

[data-theme="dark"] .event-item-link {
    color: inherit !important;
    text-decoration: none !important;
}

[data-theme="dark"] .task-item:hover,
[data-theme="dark"] .routine-item:hover {
    border-color: rgba(200, 125, 255, 0.5) !important;
    box-shadow: 0 0 15px rgba(200, 125, 255, 0.15) !important;
}

/* Checkboxes dark */
[data-theme="dark"] .task-checkbox,
[data-theme="dark"] .routine-checkbox,
[data-theme="dark"] input[type="checkbox"] {
    border-color: rgba(200, 125, 255, 0.4) !important;
    background: rgba(20, 10, 30, 0.5) !important;
}

[data-theme="dark"] .task-checkbox:hover,
[data-theme="dark"] .routine-checkbox:hover {
    border-color: #c77dff !important;
}

/* Pending task checkbox dark */
[data-theme="dark"] .task-card.pending .task-checkbox {
    background: transparent !important;
    border: 2px solid rgba(200, 125, 255, 0.5) !important;
}

[data-theme="dark"] .task-checkbox.checked,
[data-theme="dark"] .routine-checkbox.completed,
[data-theme="dark"] input[type="checkbox"]:checked {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
    border-color: #c77dff !important;
}

/* Archived tasks dark - same as pending */
[data-theme="dark"] .task-card.archived .task-checkbox {
    background: transparent !important;
    border: 2px solid rgba(200, 125, 255, 0.5) !important;
}

[data-theme="dark"] .task-card.archived .task-checkbox .archived-icon {
    filter: brightness(0) saturate(100%) invert(70%) sepia(20%) saturate(1000%) hue-rotate(230deg) !important;
}

/* Stat change good - same as card icons in dark mode */
[data-theme="dark"] .stat-change.good {
    background: linear-gradient(145deg, rgba(232, 160, 232, 0.25), rgba(200, 125, 255, 0.2)) !important;
    color: #e8a0e8 !important;
}

/* Mode switch labels dark */
[data-theme="dark"] .mode-switch-label {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .mode-switch-label.active {
    color: #f0eaf5 !important;
}

/* Badges dark */
[data-theme="dark"] .kcal-badge,
[data-theme="dark"] .section-badge,
[data-theme="dark"] .card-badge,
[data-theme="dark"] .event-status,
[data-theme="dark"] .time-badge {
    background: linear-gradient(145deg, rgba(232, 160, 232, 0.25), rgba(200, 125, 255, 0.2)) !important;
    color: #e8a0e8 !important;
}

[data-theme="dark"] .edit-measures-btn {
    border: 1px solid rgba(200, 125, 255, 0.3) !important;
}

/* Header dark */
[data-theme="dark"] .challenge-header {
    background: rgba(38, 24, 50, 0.8) !important;
    border-color: rgba(80, 50, 100, 0.5) !important;
}

[data-theme="dark"] .challenge-header span {
    color: #f0eaf5 !important;
}

/* Progress bars dark */
[data-theme="dark"] .progress-bar,
[data-theme="dark"] .kcal-progress {
    background: rgba(20, 10, 30, 0.5) !important;
}

[data-theme="dark"] .progress-fill,
[data-theme="dark"] .kcal-progress-fill {
    background: linear-gradient(90deg, #c77dff, #e8a0e8) !important;
}

/* Links dark */
[data-theme="dark"] a:not(.footer-logout):not(nav a):not(.nav-link):not(.favorites a):not(.favorite-item) {
    color: #c77dff;
}

/* Footer dark */
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-logout {
    color: #9080a5 !important;
}

[data-theme="dark"] .footer-logout:hover {
    color: #ff6b9d !important;
    text-shadow: 2px 0 #ff6b9d, -2px 0 #c77dff, 0 0 8px #ff6b9d !important;
}

/* Greeting text */
[data-theme="dark"] .greeting-text,
[data-theme="dark"] .date-display,
[data-theme="dark"] .welcome-text {
    color: #f0eaf5 !important;
}

/* Stat cards and measurements */
[data-theme="dark"] .stat-label,
[data-theme="dark"] .measurement-label {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .stat-change,
[data-theme="dark"] .measurement-change {
    color: #e8a0e8 !important;
}

/* ============================================
   SPECIFIC FIXES - DARK MODE
   ============================================ */

/* Kcal numbers - make them visible */
[data-theme="dark"] #currentCal,
[data-theme="dark"] #remainingCal,
[data-theme="dark"] .kcal-stats strong,
[data-theme="dark"] .kcal-stats span strong {
    color: #f0eaf5 !important;
}

/* Sport exercise checkboxes - purple instead of blue */
[data-theme="dark"] .exercise-num {
    background: rgba(200, 125, 255, 0.2) !important;
    color: #c77dff !important;
}

[data-theme="dark"] .exercise-item.done .exercise-num {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .exercise-item {
    background: rgba(20, 10, 30, 0.3) !important;
}

[data-theme="dark"] .exercise-item:hover {
    background: rgba(200, 125, 255, 0.1) !important;
}

/* Esprit mind icons - same style as exercise */
[data-theme="dark"] .mind-icon {
    background: rgba(200, 125, 255, 0.2) !important;
}

[data-theme="dark"] .mind-item.done .mind-icon {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
}

[data-theme="dark"] .mind-item {
    background: rgba(20, 10, 30, 0.3) !important;
}

[data-theme="dark"] .mind-item:hover {
    background: rgba(200, 125, 255, 0.1) !important;
}

/* Nav buttons - Mesures same as others */
[data-theme="dark"] nav button:not(.logo-btn) {
    color: #b8a8c8 !important;
    background: transparent !important;
}

[data-theme="dark"] nav button:not(.logo-btn):hover {
    color: #f0eaf5 !important;
    background: rgba(200, 125, 255, 0.15) !important;
    border-radius: 12px !important;
}

/* Fix nav hover corners - keep rounded */
[data-theme="dark"] nav a:hover,
[data-theme="dark"] nav button:hover {
    border-radius: 12px !important;
}

/* ============================================
   MODAL / POPUP - DARK MODE
   ============================================ */

[data-theme="dark"] .modal-overlay {
    background: rgba(10, 5, 20, 0.8) !important;
}

[data-theme="dark"] .modal {
    background: linear-gradient(145deg, #2d1b3d, #1a1025) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .modal h2 {
    color: #e8a0e8 !important;
}

[data-theme="dark"] .form-group label {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .modal input {
    background: rgba(20, 10, 30, 0.8) !important;
    border-color: rgba(100, 60, 130, 0.5) !important;
    color: #f0eaf5 !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .modal input:focus {
    border-color: #c77dff !important;
    box-shadow: 0 0 15px rgba(200, 125, 255, 0.2) !important;
}

[data-theme="dark"] .date-display {
    background: rgba(20, 10, 30, 0.8) !important;
    border-color: rgba(100, 60, 130, 0.5) !important;
    color: #f0eaf5 !important;
}

[data-theme="dark"] .date-display:hover {
    border-color: rgba(200, 125, 255, 0.5) !important;
}

[data-theme="dark"] .date-display svg {
    color: #b8a8c8 !important;
}

/* Modal buttons */
[data-theme="dark"] .modal-btns button,
[data-theme="dark"] .popup-btn-cancel {
    background: rgba(60, 40, 80, 0.5) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
    color: #b8a8c8 !important;
}

[data-theme="dark"] .modal-btns button:hover,
[data-theme="dark"] .popup-btn-cancel:hover {
    background: rgba(200, 125, 255, 0.2) !important;
    color: #f0eaf5 !important;
}

[data-theme="dark"] .popup-btn-confirm,
[data-theme="dark"] .modal-btns button[type="submit"],
[data-theme="dark"] .modal-btns button:last-child {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
    color: #1a1025 !important;
    border: none !important;
}

/* Reset link in modal */
[data-theme="dark"] .modal a,
[data-theme="dark"] .reset-link {
    color: #9080a5 !important;
}

[data-theme="dark"] .modal a:hover,
[data-theme="dark"] .reset-link:hover {
    color: #c77dff !important;
}

/* Success popup */
[data-theme="dark"] .success-popup {
    background: rgba(10, 5, 20, 0.9) !important;
}

[data-theme="dark"] .success-popup-content {
    background: linear-gradient(145deg, #2d1b3d, #1a1025) !important;
    border: 1px solid rgba(100, 60, 130, 0.5) !important;
}

[data-theme="dark"] .success-popup-title {
    color: #e8a0e8 !important;
}

[data-theme="dark"] .success-popup-message {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .success-popup-btn {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
    color: #1a1025 !important;
}

/* Calendar reconnect button */
[data-theme="dark"] .calendar-reconnect-text {
    color: #b8a8c8 !important;
}

[data-theme="dark"] .calendar-reconnect-btn {
    background: linear-gradient(145deg, #e8a0e8, #c77dff) !important;
    color: #1a1025 !important;
}

[data-theme="dark"] .calendar-reconnect-btn:hover {
    box-shadow: 0 4px 15px rgba(200, 125, 255, 0.4) !important;
}

/* ============================================
   THEME SWITCH
   ============================================ */

.theme-switch-container {
    display: flex;
    justify-content: center;
    padding: 30px 20px 10px;
}

.theme-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

[data-theme="dark"] .theme-switch {
    background: rgba(38, 24, 50, 0.8);
    border-color: rgba(80, 50, 100, 0.5);
}

.theme-switch:hover {
    transform: scale(1.05);
}

.theme-switch-toggle {
    width: 50px;
    height: 26px;
    background: #e0e0e0;
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-switch-toggle {
    background: linear-gradient(145deg, #c77dff, #e8a0e8);
}

.theme-switch-toggle::before {
    content: '☀️';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-switch-toggle::before {
    content: '🌙';
    left: 27px;
}

/* ============================================
   STARS DECORATION - SCATTERED EVERYWHERE
   ============================================ */

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

[data-theme="dark"] .stars-container {
    opacity: 1;
}

.star {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: starLife 6s infinite ease-in-out;
}

/* Scattered stars everywhere - avoiding center content area */
/* Top area */
.star:nth-child(1) { top: 3%; left: 8%; font-size: 5px; animation-delay: 0s; animation-duration: 7s; }
.star:nth-child(2) { top: 5%; left: 25%; font-size: 4px; animation-delay: 2s; animation-duration: 8s; }
.star:nth-child(3) { top: 2%; right: 30%; font-size: 6px; animation-delay: 4s; animation-duration: 6s; }
.star:nth-child(4) { top: 6%; right: 12%; font-size: 4px; animation-delay: 1s; animation-duration: 9s; }

/* Left side - spread out */
.star:nth-child(5) { top: 15%; left: 3%; font-size: 5px; animation-delay: 3s; animation-duration: 7s; }
.star:nth-child(6) { top: 35%; left: 5%; font-size: 6px; animation-delay: 5s; animation-duration: 8s; }
.star:nth-child(7) { top: 55%; left: 2%; font-size: 4px; animation-delay: 1.5s; animation-duration: 6s; }
.star:nth-child(8) { top: 75%; left: 4%; font-size: 5px; animation-delay: 4.5s; animation-duration: 9s; }

/* Right side - spread out */
.star:nth-child(9) { top: 20%; right: 4%; font-size: 4px; animation-delay: 2.5s; animation-duration: 8s; }
.star:nth-child(10) { top: 40%; right: 2%; font-size: 6px; animation-delay: 0.5s; animation-duration: 7s; }
.star:nth-child(11) { top: 60%; right: 5%; font-size: 5px; animation-delay: 3.5s; animation-duration: 6s; }
.star:nth-child(12) { top: 80%; right: 3%; font-size: 4px; animation-delay: 6s; animation-duration: 9s; }

/* Bottom area */
.star:nth-child(13) { bottom: 8%; left: 15%; font-size: 5px; animation-delay: 1s; animation-duration: 7s; }
.star:nth-child(14) { bottom: 5%; left: 35%; font-size: 4px; animation-delay: 4s; animation-duration: 8s; }
.star:nth-child(15) { bottom: 10%; right: 25%; font-size: 6px; animation-delay: 2s; animation-duration: 6s; }
.star:nth-child(16) { bottom: 3%; right: 10%; font-size: 4px; animation-delay: 5.5s; animation-duration: 9s; }

@keyframes starLife {
    0% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
    20% { 
        opacity: 0.8; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1); 
    }
    80% { 
        opacity: 0.8; 
        transform: scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
}

/* Hide some stars on mobile */
@media (max-width: 768px) {
    .star:nth-child(n+10) {
        display: none;
    }
    .star { font-size: 4px !important; }
}

/* Task submit button dark mode - glassmorphism violet */
[data-theme="dark"] .task-submit-btn {
    background: rgba(80, 50, 120, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #f0eaf5 !important;
    border: 1px solid rgba(200, 125, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .task-submit-btn:hover {
    background: rgba(100, 60, 150, 0.5) !important;
    border-color: rgba(200, 125, 255, 0.5) !important;
    box-shadow: 0 6px 25px rgba(200, 125, 255, 0.2) !important;
}

/* Add calories button dark mode */
[data-theme="dark"] .add-calories button {
    background: rgba(80, 50, 120, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #f0eaf5 !important;
    border: 1px solid rgba(200, 125, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .add-calories button:hover {
    background: rgba(100, 60, 150, 0.5) !important;
    border-color: rgba(200, 125, 255, 0.5) !important;
    box-shadow: 0 6px 25px rgba(200, 125, 255, 0.2) !important;
}

/* Add task button dark mode */
[data-theme="dark"] .add-task button {
    background: rgba(80, 50, 120, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #f0eaf5 !important;
    border: 1px solid rgba(200, 125, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .add-task button:hover {
    background: rgba(100, 60, 150, 0.5) !important;
    border-color: rgba(200, 125, 255, 0.5) !important;
    box-shadow: 0 6px 25px rgba(200, 125, 255, 0.2) !important;
}

/* Journal submit button dark mode */
[data-theme="dark"] .journal-submit-btn {
    background: rgba(80, 50, 120, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #f0eaf5 !important;
    border: 1px solid rgba(200, 125, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .journal-submit-btn:hover {
    background: rgba(100, 60, 150, 0.5) !important;
    border-color: rgba(200, 125, 255, 0.5) !important;
    box-shadow: 0 6px 25px rgba(200, 125, 255, 0.2) !important;
}

/* Toggle Section Buttons - Dark Mode */
[data-theme="dark"] .toggle-section-btn {
    background: rgba(60, 40, 80, 0.6) !important;
    border-color: rgba(200, 125, 255, 0.3) !important;
}

[data-theme="dark"] .toggle-section-btn:hover {
    background: rgba(80, 50, 100, 0.8) !important;
    border-color: rgba(200, 125, 255, 0.5) !important;
}

[data-theme="dark"] .toggle-section-btn .toggle-icon {
    stroke: #e0d5eb !important;
}
