/* ============================================
   APP HEADER
   ============================================ */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: transparent;
}

.app-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: opacity var(--duration-fast);
}

.app-logo:hover { opacity: 0.8; }

.app-logo i {
    color: var(--brand-primary);
    font-size: 1rem;
}

.app-nav-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   MODE TABS
   ============================================ */
.mode-tabs {
    display: flex;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    gap: 4px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-smooth);
    background: transparent;
    border: none;
    cursor: pointer;
}

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

.tab-btn.active {
    background: var(--brand-primary);
    color: #111827; /* Dark text on yellow */
    box-shadow: 0 4px 12px var(--brand-glow);
}

/* ============================================
   TIMER VISUAL
   ============================================ */
.timer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 4rem;
}

.timer-visual {
    position: relative;
    width: min(380px, 85vw);
    height: min(380px, 85vw);
    margin: 1rem 0 2rem;
}

/* Subtle glow behind timer in dark mode */
html[data-theme="dark"] .timer-visual::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: relative;
    z-index: 1;
}

.ring-bg {
    fill: none;
    stroke: var(--ring-bg);
    stroke-width: 6;
}

.ring-progress {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 1006;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s linear, stroke 0.5s ease;
}

html[data-theme="dark"] .ring-progress {
    filter: drop-shadow(0 0 12px var(--brand-glow-strong));
}

.timer-text-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.time-big {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 6.5rem);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-primary);
    font-weight: 700;
    background: var(--brand-glow);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

html[data-theme="light"] .time-label {
    color: #B28000;
    background: var(--brand-soft);
}

.streak-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 1rem;
    position: absolute;
    bottom: 2rem;
}

/* ============================================
   TIMER CONTROLS
   ============================================ */
.timer-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-control-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brand-primary);
    color: #111827;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--duration-fast) var(--ease-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--brand-glow);
}

.btn-control-lg:hover {
    transform: translateY(-2px);
    background: var(--brand-bright);
    box-shadow: 0 12px 32px var(--brand-glow-strong);
}

.btn-control-lg:active { transform: translateY(0) scale(0.98); }

.btn-control-sm {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: all var(--duration-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control-sm:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
    transform: scale(1.05);
}

.btn-control-sm:active { transform: scale(0.95); }

.kbd-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2rem;
    opacity: 0.7;
}

.kbd-hint kbd {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0.2rem;
}

/* ============================================
   TASKS PANEL
   ============================================ */
.tasks-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 320px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    z-index: var(--z-drawer);
}

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

.tasks-header h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
}

.tasks-body {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
}

/* ── Task Item ──────────────────────────────── */
.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--duration-fast);
    cursor: pointer;
    margin-bottom: 0.25rem;
    background: var(--bg-surface);
}

.task-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-color);
}

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

/* ── Checkbox ────────────────────────────────── */
.task-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: transparent;
}

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

.task-check.completed {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #111827;
}

.task-check.completed i { font-size: 0.6rem; }

/* ── Task Text ───────────────────────────────── */
.task-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    user-select: none;
}

/* ── Delete Button ───────────────────────────── */
.task-delete-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: all var(--duration-fast);
}

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

/* ── Task Input Row ──────────────────────────── */
.task-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.task-input-row input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.task-input-row input:focus {
    border-color: var(--brand-primary);
    outline: none;
}

.task-submit-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #111827;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.task-submit-btn:hover {
    transform: scale(1.05);
    background: var(--brand-bright);
}

/* ============================================
   STATS MODAL CONTENT
   ============================================ */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-main);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s var(--ease-smooth);
    width: 0%;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 4px;
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.day-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--bg-surface-hover);
}

.day-cell.l1 { background: rgba(255, 184, 0, 0.3); }
.day-cell.l2 { background: rgba(255, 184, 0, 0.6); }
.day-cell.l3 { background: var(--brand-primary); }

/* ============================================
   AUDIO MODAL
   ============================================ */
.audio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.audio-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.audio-btn:hover {
    border-color: var(--brand-primary);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.audio-btn.active {
    background: var(--brand-soft);
    border-color: var(--brand-primary);
    color: #B28000;
}

html[data-theme="dark"] .audio-btn.active {
    background: rgba(255, 184, 0, 0.1);
    color: var(--brand-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .tasks-panel {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        margin: 2rem 0;
        box-shadow: none;
    }
}/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       F O C U S   M O D E   ( F U L L S C R E E N ) 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 : f u l l s c r e e n   . a p p - h e a d e r ,   : - w e b k i t - f u l l - s c r e e n   . a p p - h e a d e r   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   } 
 : f u l l s c r e e n   . t a s k s - p a n e l ,   : - w e b k i t - f u l l - s c r e e n   . t a s k s - p a n e l   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   } 
 : f u l l s c r e e n   . m o d e - t a b s ,   : - w e b k i t - f u l l - s c r e e n   . m o d e - t a b s   {   o p a c i t y :   0 ;   p o i n t e r - e v e n t s :   n o n e ;   } 
 : f u l l s c r e e n   . t i m e r - c o n t r o l s ,   : - w e b k i t - f u l l - s c r e e n   . t i m e r - c o n t r o l s   {   o p a c i t y :   0 ;   t r a n s i t i o n :   o p a c i t y   0 . 3 s ;   } 
 : f u l l s c r e e n   . t i m e r - c o n t r o l s : h o v e r ,   : - w e b k i t - f u l l - s c r e e n   . t i m e r - c o n t r o l s : h o v e r   {   o p a c i t y :   1 ;   } 
 : f u l l s c r e e n   . t i m e r - c o n t a i n e r ,   : - w e b k i t - f u l l - s c r e e n   . t i m e r - c o n t a i n e r   {   p a d d i n g - t o p :   1 0 v h ;   j u s t i f y - c o n t e n t :   c e n t e r ;   } 
  
 