/* ==========================================================================
   ZenFlow Workspace Design System & Styles
   ========================================================================== */

/* Color Theme Tokens & Variables */
:root {
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Font Families */
    --font-primary: 'Inter', 'Tajawal', sans-serif;
    --font-display: 'Outfit', 'Tajawal', sans-serif;
}

/* 1. Aurora Theme (Default) */
.theme-aurora {
    --bg-base: #0a0f1d;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #34d399; /* Mint Green */
    --accent-glow: rgba(52, 211, 153, 0.3);
    --accent-hover: #10b981;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-shadow: rgba(0, 0, 0, 0.35);
    --glow-1: #0f172a;
    --glow-2: #1e3a8a;
    --glow-3: #134e4a;
}

/* 2. Sunset Calm Theme */
.theme-sunset {
    --bg-base: #180b13;
    --text-primary: #fff7ed;
    --text-muted: #cbd5e1;
    --accent-color: #f97316; /* Warm Orange */
    --accent-glow: rgba(249, 115, 22, 0.3);
    --accent-hover: #ea580c;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --glow-1: #2a081c;
    --glow-2: #701a08;
    --glow-3: #4c0519;
}

/* 3. Midnight Focus Theme */
.theme-midnight {
    --bg-base: #030712;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #6366f1; /* Deep Indigo */
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-hover: #4f46e5;
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-shadow: rgba(0, 0, 0, 0.5);
    --glow-1: #030712;
    --glow-2: #1e1b4b;
    --glow-3: #172554;
}

/* 4. Cyber Forest Theme */
.theme-forest {
    --bg-base: #060d0e;
    --text-primary: #f0fdf4;
    --text-muted: #86efac;
    --accent-color: #06b6d4; /* Vibrant Cyan */
    --accent-glow: rgba(6, 182, 212, 0.3);
    --accent-hover: #0891b2;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --glow-1: #052e16;
    --glow-2: #022c22;
    --glow-3: #083344;
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

/* Dynamic Background Glow Blobs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
    transition: background-color 0.8s ease;
}

.bg-glow-1 {
    width: 60vw;
    height: 60vw;
    top: -20vw;
    right: -10vw;
    background-color: var(--glow-2);
    animation: float-slow 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
    width: 50vw;
    height: 50vw;
    bottom: -15vw;
    left: -10vw;
    background-color: var(--glow-3);
    animation: float-slow 35s infinite alternate-reverse ease-in-out;
}

.bg-glow-3 {
    width: 35vw;
    height: 35vw;
    top: 35vh;
    left: 45vw;
    background-color: var(--glow-1);
    opacity: 0.3;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.1); }
    100% { transform: translate(-20px, 40px) scale(0.9); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Layout & Typography
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* Glassmorphism Card Style */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 12px 36px var(--card-shadow);
    padding: 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   Header Styling
   ========================================================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: pulse-slow 3s infinite ease-in-out;
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo h1 span {
    font-weight: 300;
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   Theme Selector Dropdown
   ========================================================================== */
.theme-selector-wrapper {
    position: relative;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 160px;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font-primary);
    text-align: right;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    width: 100%;
    transition: var(--transition-fast);
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

.theme-option.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-color);
    font-weight: 600;
}

.theme-preview {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
}

.theme-preview.aurora { background: linear-gradient(135deg, #34d399, #1e3a8a); }
.theme-preview.sunset { background: linear-gradient(135deg, #f97316, #701a08); }
.theme-preview.midnight { background: linear-gradient(135deg, #6366f1, #030712); }
.theme-preview.forest { background: linear-gradient(135deg, #06b6d4, #022c22); }

/* ==========================================================================
   Main Layout Configuration
   ========================================================================== */
.app-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .app-main {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Pomodoro Timer Section
   ========================================================================== */
.timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.timer-modes {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 30px;
    gap: 4px;
    width: 100%;
    max-width: 400px;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.mode-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

/* Circular Timer Wrapper */
.timer-display-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s ease;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.timer-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timer-time {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-btn i {
    width: 22px;
    height: 22px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.control-btn.play-btn {
    background: var(--accent-color);
    color: var(--bg-base);
    width: 72px;
    height: 72px;
    border: none;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.control-btn.play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
    box-shadow: 0 10px 24px var(--accent-glow);
}

.control-btn.play-btn i {
    width: 28px;
    height: 28px;
    fill: var(--bg-base);
}

.timer-card.running .timer-display-wrapper {
    animation: breathing 4s infinite ease-in-out;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Mini Settings Panel */
.timer-settings {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.settings-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    transition: var(--transition-fast);
}

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

.settings-panel {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-panel.show {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
}

.settings-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.settings-group label {
    font-size: 13px;
    color: #cbd5e1;
}

.settings-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 6px 10px;
    width: 70px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 14px;
}

.settings-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-base);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   Sidebar Workspace Grid (Tasks & Audio)
   ========================================================================== */
.sidebar-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    width: 22px;
    height: 22px;
}

.text-accent {
    color: var(--accent-color);
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-display);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Task Manager Panel
   ========================================================================== */
.todo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.todo-form {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 4px;
}

.todo-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
}

.todo-form input:focus {
    outline: none;
}

.todo-add-btn {
    background: var(--accent-color);
    color: var(--bg-base);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.todo-add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
}

.todo-add-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Task List */
.todo-list-container {
    min-height: 140px;
    max-height: 240px;
    overflow-y: auto;
    position: relative;
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    animation: slide-in 0.25s ease;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.todo-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.todo-checkbox i {
    width: 12px;
    height: 12px;
    color: var(--bg-base);
    stroke-width: 3;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-fast);
}

.todo-text {
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Checked Task Styles */
.todo-item.checked .todo-checkbox {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-glow);
}

.todo-item.checked .todo-checkbox i {
    opacity: 1;
    transform: scale(1);
}

.todo-item.checked .todo-text {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.65;
}

.delete-task-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
    opacity: 0;
}

.todo-item:hover .delete-task-btn {
    opacity: 0.6;
}

.todo-item:hover .delete-task-btn:hover {
    opacity: 1;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.delete-task-btn i {
    width: 16px;
    height: 16px;
}

/* Empty & Footer States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: var(--text-muted);
    text-align: center;
}

.empty-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 13px;
}

.todo-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
}

.text-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.text-btn:hover {
    color: #ef4444;
}

/* ==========================================================================
   Ambient Sound Mixer Panel
   ========================================================================== */
.audio-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: 20px;
}

.mute-all-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.mute-all-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.mute-all-btn.muted {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.sound-mixer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mixer-item {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-fast);
}

.mixer-item:hover {
    border-color: rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.mixer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mixer-name {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.mixer-item:hover .sound-icon {
    color: var(--accent-color);
}

.volume-percentage {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--text-muted);
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sound-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.sound-toggle-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.sound-toggle-btn.playing {
    color: var(--accent-color);
}

.sound-toggle-btn i {
    width: 20px;
    height: 20px;
}

/* Custom CSS Range Slider styling */
.sound-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.sound-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sound-slider::-webkit-slider-thumb:hover {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--accent-glow);
}

.mixer-item.active-play .sound-slider {
    background: linear-gradient(to left, var(--accent-color) 0%, rgba(255, 255, 255, 0.1) 0%); /* Managed in JS dynamically */
}

/* ==========================================================================
   Stats Bar Panel
   ========================================================================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 28px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 600px) {
    .stat-item {
        justify-content: flex-start;
    }
}

.stat-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Help Modal Popup
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-body p {
    font-size: 14px;
    color: #cbd5e1;
}

.modal-body ol {
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.modal-body ol li strong {
    color: var(--accent-color);
}

.tip-box {
    background: rgba(255, 255, 255, 0.04);
    border-right: 4px solid var(--accent-color);
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.tip-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.tip-box p {
    font-size: 12.5px;
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes pulse-slow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--accent-glow)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 14px var(--accent-glow)); }
}
