/**
 * Theme System - 6 Widget Themes
 * CalmDesk Ambient Productivity
 */

/* ================================
   BASE THEME VARIABLES
   ================================ */
:root {
    /* Typography */
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Base Structure */
    --widget-blur: 20px;
    --widget-radius: 20px;
    --widget-padding: 24px;
    --widget-gap: 20px;
    --widget-width: 320px;

    /* Button Base */
    --btn-radius: 10px;
    --btn-padding: 8px 20px;
    --btn-font-size: 12px;

    /* Transitions */
    --theme-transition: background-color 0.3s ease,
                        border-color 0.3s ease,
                        color 0.3s ease,
                        box-shadow 0.3s ease;
}

/* ================================
   THEME 1: MIDNIGHT (Default)
   Calm night coding session
   ================================ */
:root,
[data-theme="midnight"] {
    --widget-bg: rgba(15, 15, 20, 0.75);
    --widget-border: rgba(255, 255, 255, 0.08);
    --widget-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-numbers: #ffffff;

    --accent: #6ee7b7;
    --accent-secondary: #34d399;
    --accent-tertiary: #10b981;
    --accent-dim: rgba(110, 231, 183, 0.15);
    --accent-glow: 0 0 20px rgba(110, 231, 183, 0.3);

    --btn-primary-bg: rgba(110, 231, 183, 0.15);
    --btn-primary-border: rgba(110, 231, 183, 0.25);
    --btn-primary-text: #6ee7b7;
    --btn-primary-hover-bg: rgba(110, 231, 183, 0.25);

    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-border: rgba(255, 255, 255, 0.1);
    --btn-secondary-text: rgba(255, 255, 255, 0.5);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);

    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: rgba(110, 231, 183, 0.5);

    --pomodoro-work: #6ee7b7;
    --pomodoro-short-break: #34d399;
    --pomodoro-long-break: #fbbf24;

    --scrollbar-thumb: rgba(110, 231, 183, 0.3);
    --scrollbar-track: rgba(255, 255, 255, 0.05);
}

/* ================================
   THEME 2: TOKYO NIGHT
   Neon city, cyberpunk, vibrant
   ================================ */
[data-theme="tokyo"] {
    --widget-bg: rgba(26, 27, 38, 0.8);
    --widget-border: rgba(255, 121, 198, 0.2);
    --widget-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    --text-primary: #c0caf5;
    --text-secondary: rgba(192, 202, 245, 0.5);
    --text-numbers: #f8f8f2;

    --accent: #ff79c6;
    --accent-secondary: #bd93f9;
    --accent-tertiary: #50fa7b;
    --accent-dim: rgba(255, 121, 198, 0.15);
    --accent-glow: 0 0 30px rgba(255, 121, 198, 0.4);

    --btn-primary-bg: linear-gradient(135deg, rgba(255, 121, 198, 0.2), rgba(189, 147, 249, 0.2));
    --btn-primary-border: rgba(255, 121, 198, 0.3);
    --btn-primary-text: #ff79c6;
    --btn-primary-hover-bg: linear-gradient(135deg, rgba(255, 121, 198, 0.3), rgba(189, 147, 249, 0.3));

    --btn-secondary-bg: rgba(192, 202, 245, 0.05);
    --btn-secondary-border: rgba(192, 202, 245, 0.1);
    --btn-secondary-text: rgba(192, 202, 245, 0.5);
    --btn-secondary-hover-bg: rgba(192, 202, 245, 0.1);

    --input-bg: rgba(192, 202, 245, 0.05);
    --input-border: rgba(192, 202, 245, 0.1);
    --input-focus-border: rgba(255, 121, 198, 0.5);

    --pomodoro-work: #ff79c6;
    --pomodoro-short-break: #50fa7b;
    --pomodoro-long-break: #bd93f9;

    --scrollbar-thumb: rgba(255, 121, 198, 0.3);
    --scrollbar-track: rgba(192, 202, 245, 0.05);
}

/* ================================
   THEME 3: FOREST
   Nature, calm, earthy, Studio Ghibli
   ================================ */
[data-theme="forest"] {
    --widget-bg: rgba(20, 30, 20, 0.7);
    --widget-border: rgba(150, 200, 150, 0.15);
    --widget-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

    --text-primary: #e8f0e8;
    --text-secondary: rgba(232, 240, 232, 0.5);
    --text-numbers: #e8f0e8;

    --accent: #90c090;
    --accent-secondary: #c9a86c;
    --accent-tertiary: #7eb89e;
    --accent-dim: rgba(144, 192, 144, 0.15);
    --accent-glow: 0 0 25px rgba(144, 192, 144, 0.3);

    --btn-primary-bg: rgba(144, 192, 144, 0.15);
    --btn-primary-border: rgba(144, 192, 144, 0.25);
    --btn-primary-text: #90c090;
    --btn-primary-hover-bg: rgba(144, 192, 144, 0.25);

    --btn-secondary-bg: rgba(201, 168, 108, 0.1);
    --btn-secondary-border: rgba(201, 168, 108, 0.2);
    --btn-secondary-text: #c9a86c;
    --btn-secondary-hover-bg: rgba(201, 168, 108, 0.2);

    --input-bg: rgba(144, 192, 144, 0.05);
    --input-border: rgba(144, 192, 144, 0.1);
    --input-focus-border: rgba(144, 192, 144, 0.5);

    --pomodoro-work: #90c090;
    --pomodoro-short-break: #7eb89e;
    --pomodoro-long-break: #c9a86c;

    --scrollbar-thumb: rgba(144, 192, 144, 0.3);
    --scrollbar-track: rgba(232, 240, 232, 0.05);
}

/* ================================
   THEME 4: OCEAN
   Deep sea, peaceful, underwater calm
   ================================ */
[data-theme="ocean"] {
    --widget-bg: rgba(10, 25, 40, 0.75);
    --widget-border: rgba(100, 200, 255, 0.12);
    --widget-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    --text-primary: #e0f4ff;
    --text-secondary: rgba(224, 244, 255, 0.5);
    --text-numbers: #e0f4ff;

    --accent: #7dd3fc;
    --accent-secondary: #38bdf8;
    --accent-tertiary: #22d3ee;
    --accent-dim: rgba(125, 211, 252, 0.15);
    --accent-glow: 0 0 25px rgba(125, 211, 252, 0.35);

    --btn-primary-bg: rgba(125, 211, 252, 0.15);
    --btn-primary-border: rgba(125, 211, 252, 0.25);
    --btn-primary-text: #7dd3fc;
    --btn-primary-hover-bg: rgba(125, 211, 252, 0.25);

    --btn-secondary-bg: rgba(224, 244, 255, 0.05);
    --btn-secondary-border: rgba(224, 244, 255, 0.1);
    --btn-secondary-text: rgba(224, 244, 255, 0.5);
    --btn-secondary-hover-bg: rgba(224, 244, 255, 0.1);

    --input-bg: rgba(125, 211, 252, 0.05);
    --input-border: rgba(125, 211, 252, 0.1);
    --input-focus-border: rgba(125, 211, 252, 0.5);

    --pomodoro-work: #7dd3fc;
    --pomodoro-short-break: #22d3ee;
    --pomodoro-long-break: #38bdf8;

    --scrollbar-thumb: rgba(125, 211, 252, 0.3);
    --scrollbar-track: rgba(224, 244, 255, 0.05);
}

/* ================================
   THEME 5: SUNSET
   Golden hour, warm, cozy, lo-fi
   ================================ */
[data-theme="sunset"] {
    --widget-bg: rgba(30, 20, 15, 0.75);
    --widget-border: rgba(255, 180, 100, 0.15);
    --widget-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

    --text-primary: #fff8f0;
    --text-secondary: rgba(255, 248, 240, 0.5);
    --text-numbers: #fbbf24;

    --accent: #fbbf24;
    --accent-secondary: #f97316;
    --accent-tertiary: #fb7185;
    --accent-dim: rgba(251, 191, 36, 0.15);
    --accent-glow: 0 0 25px rgba(251, 191, 36, 0.35);

    --btn-primary-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.2));
    --btn-primary-border: rgba(251, 191, 36, 0.3);
    --btn-primary-text: #fbbf24;
    --btn-primary-hover-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(249, 115, 22, 0.3));

    --btn-secondary-bg: rgba(255, 248, 240, 0.05);
    --btn-secondary-border: rgba(255, 248, 240, 0.1);
    --btn-secondary-text: rgba(255, 248, 240, 0.5);
    --btn-secondary-hover-bg: rgba(255, 248, 240, 0.1);

    --input-bg: rgba(251, 191, 36, 0.05);
    --input-border: rgba(251, 191, 36, 0.1);
    --input-focus-border: rgba(251, 191, 36, 0.5);

    --pomodoro-work: #f97316;
    --pomodoro-short-break: #fbbf24;
    --pomodoro-long-break: #fb7185;

    --scrollbar-thumb: rgba(251, 191, 36, 0.3);
    --scrollbar-track: rgba(255, 248, 240, 0.05);
}

/* ================================
   THEME 6: PAPER (Light Mode)
   Clean, minimal, daylight friendly
   ================================ */
[data-theme="paper"] {
    --widget-bg: rgba(255, 255, 255, 0.85);
    --widget-border: rgba(0, 0, 0, 0.08);
    --widget-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);

    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.5);
    --text-numbers: #1a1a1a;

    --accent: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --accent-dim: rgba(59, 130, 246, 0.1);
    --accent-glow: 0 0 20px rgba(59, 130, 246, 0.25);

    --btn-primary-bg: #3b82f6;
    --btn-primary-border: #3b82f6;
    --btn-primary-text: #ffffff;
    --btn-primary-hover-bg: #2563eb;

    --btn-secondary-bg: rgba(0, 0, 0, 0.05);
    --btn-secondary-border: rgba(0, 0, 0, 0.1);
    --btn-secondary-text: rgba(0, 0, 0, 0.6);
    --btn-secondary-hover-bg: rgba(0, 0, 0, 0.1);

    --input-bg: rgba(0, 0, 0, 0.03);
    --input-border: rgba(0, 0, 0, 0.1);
    --input-focus-border: rgba(59, 130, 246, 0.5);

    --pomodoro-work: #3b82f6;
    --pomodoro-short-break: #06b6d4;
    --pomodoro-long-break: #8b5cf6;

    --scrollbar-thumb: rgba(59, 130, 246, 0.3);
    --scrollbar-track: rgba(0, 0, 0, 0.05);
}

/* ================================
   GLOBAL THEME TRANSITIONS
   ================================ */
.widget,
.widget *,
.music-player,
.music-player *,
.settings-panel,
.settings-panel *,
.btn,
input,
button {
    transition: var(--theme-transition);
}

/* ================================
   SETTINGS PANEL STYLES
   ================================ */
.settings-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(var(--widget-blur));
    -webkit-backdrop-filter: blur(var(--widget-blur));
    z-index: 1000;
    transition: var(--theme-transition);
}

.settings-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(45deg);
}

.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--widget-bg);
    border-left: 1px solid var(--widget-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1001;
    padding: 30px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.settings-panel.open {
    right: 0;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-overlay.open {
    opacity: 1;
    visibility: visible;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--widget-border);
}

.settings-header h2 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.settings-close:hover {
    color: var(--accent);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

/* Theme Picker Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.theme-option {
    position: relative;
    background: var(--input-bg);
    border: 2px solid var(--widget-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.theme-option.active::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.theme-preview {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.theme-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.theme-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.theme-desc {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-secondary);
}

/* Theme-specific preview colors */
.theme-option[data-theme="midnight"] .theme-color:nth-child(1) { background: #0f0f14; }
.theme-option[data-theme="midnight"] .theme-color:nth-child(2) { background: #6ee7b7; }
.theme-option[data-theme="midnight"] .theme-color:nth-child(3) { background: #34d399; }

.theme-option[data-theme="tokyo"] .theme-color:nth-child(1) { background: #1a1b26; }
.theme-option[data-theme="tokyo"] .theme-color:nth-child(2) { background: #ff79c6; }
.theme-option[data-theme="tokyo"] .theme-color:nth-child(3) { background: #bd93f9; }

.theme-option[data-theme="forest"] .theme-color:nth-child(1) { background: #141e14; }
.theme-option[data-theme="forest"] .theme-color:nth-child(2) { background: #90c090; }
.theme-option[data-theme="forest"] .theme-color:nth-child(3) { background: #c9a86c; }

.theme-option[data-theme="ocean"] .theme-color:nth-child(1) { background: #0a1928; }
.theme-option[data-theme="ocean"] .theme-color:nth-child(2) { background: #7dd3fc; }
.theme-option[data-theme="ocean"] .theme-color:nth-child(3) { background: #22d3ee; }

.theme-option[data-theme="sunset"] .theme-color:nth-child(1) { background: #1e140f; }
.theme-option[data-theme="sunset"] .theme-color:nth-child(2) { background: #fbbf24; }
.theme-option[data-theme="sunset"] .theme-color:nth-child(3) { background: #f97316; }

.theme-option[data-theme="paper"] .theme-color:nth-child(1) { background: #ffffff; border-color: rgba(0,0,0,0.1); }
.theme-option[data-theme="paper"] .theme-color:nth-child(2) { background: #3b82f6; }
.theme-option[data-theme="paper"] .theme-color:nth-child(3) { background: #8b5cf6; }

/* ================================
   VIDEO MODE SELECTOR
   ================================ */
.video-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.video-mode-option {
    position: relative;
    background: var(--input-bg);
    border: 2px solid var(--widget-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.video-mode-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.video-mode-option.active {
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.video-mode-option.active::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.video-mode-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 8px;
}

.video-mode-name {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.video-mode-desc {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 11px;
    color: var(--text-secondary);
}

/* ================================
   WIDGET SIZE SELECTOR
   ================================ */
.widget-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.widget-size-option {
    position: relative;
    background: var(--input-bg);
    border: 2px solid var(--widget-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.widget-size-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.widget-size-option.active {
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.widget-size-option.active::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.widget-size-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 8px;
}

.widget-size-name {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.widget-size-desc {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 11px;
    color: var(--text-secondary);
}

/* ================================
   WIDGET TOGGLES
   ================================ */
.widget-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--widget-border);
    border-radius: var(--btn-radius, 10px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-toggle:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.widget-toggle input {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 22px;
    background: var(--input-bg);
    border: 1px solid var(--widget-border);
    border-radius: 11px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.widget-toggle input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.widget-toggle input:checked + .toggle-slider::after {
    left: 20px;
    background: #fff;
}

.toggle-label {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label i {
    color: var(--accent);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* ================================
   WIDGET CLOSE BUTTON
   ================================ */
.widget-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--btn-radius, 10px);
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0;
    margin-left: 8px;
}

.widget:hover .widget-close,
.music-player:hover .widget-close {
    opacity: 1;
}

.widget-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Hidden widget state */
.widget.widget-hidden,
.music-player.widget-hidden {
    display: none !important;
}

/* ================================
   ZEN MODE
   ================================ */
.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 182px;
    width: 44px;
    height: 44px;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(var(--widget-blur));
    -webkit-backdrop-filter: blur(var(--widget-blur));
    z-index: 1000;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Fullscreen active state */
:fullscreen .fullscreen-btn i::before,
:-webkit-full-screen .fullscreen-btn i::before,
:-moz-full-screen .fullscreen-btn i::before,
:-ms-fullscreen .fullscreen-btn i::before {
    content: "\f066"; /* fa-compress */
}

.layout-btn {
    position: fixed;
    top: 20px;
    right: 128px;
    width: 44px;
    height: 44px;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(var(--widget-blur));
    -webkit-backdrop-filter: blur(var(--widget-blur));
    z-index: 1000;
    transition: all 0.3s ease;
}

.layout-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

.zen-mode-btn {
    position: fixed;
    top: 20px;
    right: 74px;
    width: 44px;
    height: 44px;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(var(--widget-blur));
    -webkit-backdrop-filter: blur(var(--widget-blur));
    z-index: 1000;
    transition: all 0.3s ease;
}

.zen-mode-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Zen Mode Active State */
body.zen-mode .zen-mode-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

body.zen-mode .zen-mode-btn i::before {
    content: "\f070"; /* fa-eye-slash */
}

/* Hide everything in Zen Mode */
body.zen-mode .widget-dashboard,
body.zen-mode .music-player,
body.zen-mode .settings-btn,
body.zen-mode .layout-btn,
body.zen-mode .reset-positions-btn,
body.zen-mode .shortcuts-guide,
body.zen-mode #status-indicator {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Remove video overlay in Zen Mode */
body.zen-mode #video-overlay {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

/* Keep zen and fullscreen buttons visible */
body.zen-mode .zen-mode-btn,
body.zen-mode .fullscreen-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Zen Mode hint text */
.zen-mode-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: var(--btn-radius, 10px);
    padding: 12px 24px;
    color: var(--text-secondary);
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    backdrop-filter: blur(var(--widget-blur));
    -webkit-backdrop-filter: blur(var(--widget-blur));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

body.zen-mode .zen-mode-hint {
    opacity: 1;
    animation: fadeOutHint 3s ease-in-out forwards;
    animation-delay: 2s;
}

/* ================================
   DONATION BUTTON & POPUP
   ================================ */
.donation-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 50%;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(var(--widget-blur));
    -webkit-backdrop-filter: blur(var(--widget-blur));
    z-index: 1000;
    transition: var(--theme-transition);
}

.donation-btn:hover {
    color: var(--accent-secondary);
    border-color: var(--accent);
    transform: scale(1.05);
}

.donation-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

.donation-popup-overlay.open {
    display: flex;
}

.donation-popup {
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: var(--widget-radius);
    box-shadow: var(--widget-shadow);
    padding: 24px 24px 20px;
    min-width: 280px;
    max-width: 360px;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

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

.donation-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-popup-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
}

.donation-popup-close:hover {
    color: var(--accent);
}

.donation-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.donation-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--input-bg);
    border: 1px solid var(--widget-border);
    font-size: 13px;
}

.donation-option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.donation-option-label span:first-child {
    font-weight: 500;
}

.donation-option-label span:last-child {
    font-size: 11px;
    color: var(--text-secondary);
}

.donation-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
}

.donation-note {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

@keyframes fadeOutHint {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
