@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@200;300;400;500&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Deep Space Colors - Never Pure Black */
    --void-1: #050505;
    --void-2: #09090b;
    --void-3: #0a0a0a;
    
    /* Glass Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.04);
    
    /* Text Colors - Broken Whites */
    --text-primary: #EDEDED;
    --text-secondary: #A8A8A8;
    --text-tertiary: #6B6B6B;
    --text-quaternary: #404040;
    
    /* Accent Gradients */
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;
    
    /* Glow Effects */
    --glow-purple: rgba(139, 92, 246, 0.4);
    --glow-blue: rgba(59, 130, 246, 0.4);
    --glow-green: rgba(16, 185, 129, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--void-1);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 20s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
}

/* ============================================
   SCREEN TRANSITIONS
   ============================================ */
.screen {
    display: none;
    width: 100%;
    max-width: 1200px;
    animation: screenFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
    display: block;
}

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

/* ============================================
   SETUP SCREEN (Create Task)
   ============================================ */
.setup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    gap: 60px;
    animation: staggerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes staggerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.setup-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

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

/* ============================================
   INPUT FIELD (Invisible Style)
   ============================================ */
.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.task-input {
    width: 100%;
    padding: 20px 70px 20px 0;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.task-input::placeholder {
    color: var(--text-quaternary);
    font-weight: 300;
}

.task-input:focus {
    border-bottom-color: var(--accent-purple);
    box-shadow: 0 1px 0 0 var(--glow-purple);
}

.input-with-add:focus-within .input-underline {
    width: 100%;
    opacity: 1;
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--glow-purple);
    z-index: 1;
}

.input-with-add:focus-within .input-underline {
    width: 100%;
    opacity: 1;
}

/* Input with Add Button */
.input-with-add {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.add-task-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-task-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.add-task-btn:active {
    transform: translateY(-50%) scale(0.98);
}

/* ============================================
   BUTTON GROUP
   ============================================ */
.button-group {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ============================================
   START BUTTON (The Star)
   ============================================ */
.start-btn {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    box-shadow: 
        0 0 60px var(--glow-purple),
        0 0 120px var(--glow-blue),
        0 20px 40px rgba(0, 0, 0, 0.4);
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 
            0 0 60px var(--glow-purple),
            0 0 120px var(--glow-blue),
            0 20px 40px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 0 80px var(--glow-purple),
            0 0 160px var(--glow-blue),
            0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

.start-btn:hover {
    transform: scale(1.08) translateY(-4px);
    animation: none;
    box-shadow: 
        0 0 100px var(--glow-purple),
        0 0 200px var(--glow-blue),
        0 30px 60px rgba(0, 0, 0, 0.5);
}

.start-btn:active {
    transform: scale(1.02) translateY(-2px);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.start-btn:hover .btn-glow {
    opacity: 1;
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* ============================================
   BREAK BUTTON
   ============================================ */
.break-btn {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.break-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-green);
    color: var(--text-primary);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 40px var(--glow-green), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.break-btn:active {
    transform: scale(1.0) translateY(0);
}

/* ============================================
   FOCUS SCREEN (Active Timer)
   ============================================ */
.focus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    gap: 48px;
    text-align: center;
}

.current-task {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    opacity: 0.9;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   TIMER DISPLAY (Massive & Thin)
   ============================================ */
.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.progress-ring-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

.progress-ring-bg {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-progress {
    stroke-dasharray: 1131;
    stroke-dashoffset: 1131;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.timer-hours {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--text-tertiary);
    opacity: 0.5;
    letter-spacing: 0.1em;
}

.timer-separator {
    font-size: 4rem;
    font-weight: 100;
    color: var(--text-quaternary);
    opacity: 0.3;
    margin: 0 4px;
    line-height: 1;
}

.timer-minutes {
    font-size: 6.5rem;
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(237, 237, 237, 0.1);
}

.timer-seconds {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--text-tertiary);
    opacity: 0.4;
    letter-spacing: 0.1em;
}

/* ============================================
   FINISH BUTTON
   ============================================ */
.finish-btn {
    padding: 14px 40px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.finish-btn:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.finish-btn:active {
    transform: translateY(0);
}

/* ============================================
   DASHBOARD PANELS
   ============================================ */
.dashboard-panel {
    width: 100%;
    max-width: 1200px;
    margin-top: 48px;
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dashboard-panel.hidden {
    display: none;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ============================================
   DAILY SUMMARY
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 300;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

/* ============================================
   COMPLETED TASKS
   ============================================ */
.clear-all-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.clear-all-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
    transform: translateY(-1px);
}

.clear-all-btn:active {
    transform: translateY(0);
}

.completed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.completed-item {
    padding: 20px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.completed-item:hover {
    background: var(--glass-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.completed-item.task {
    border-left-color: var(--accent-purple);
}

.completed-item.break {
    border-left-color: var(--accent-green);
}

.completed-item.gap {
    border-left-color: var(--accent-cyan);
    opacity: 0.7;
    font-style: italic;
}

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

.item-name {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.item-name-edit {
    font-size: 1.125rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 8px;
    outline: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.item-name-edit:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.item-name-edit:focus {
    background: var(--glass-bg);
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.item-duration {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.item-type {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.delete-btn {
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
    transform: translateY(-1px);
}

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

.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 300;
}

/* ============================================
   CONTEXT RESUME PROTOCOL
   ============================================ */
.context-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-purple);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    margin-bottom: 32px;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.context-note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.context-note-content {
    flex: 1;
    min-width: 0;
}

.context-note-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.context-note-text {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

.context-dismiss-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.context-dismiss-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

/* Context Modal */
.context-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.context-modal.active {
    opacity: 1;
    pointer-events: all;
}

.context-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.context-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 560px;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.context-modal.active .context-modal-content {
    transform: scale(1) translateY(0);
}

.context-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.context-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.context-note-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.context-note-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: var(--glass-hover);
}

.context-note-input::placeholder {
    color: var(--text-tertiary);
}

.context-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.context-skip-btn,
.context-save-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.context-skip-btn {
    background: var(--glass-bg);
    color: var(--text-secondary);
}

.context-skip-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.context-save-btn {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.context-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.context-save-btn:active {
    transform: translateY(0);
}

/* ============================================
   FOCUS PLAYLIST (Task Queue)
   ============================================ */
.task-queue-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.queue-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.queue-count {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-quaternary);
    font-family: 'JetBrains Mono', monospace;
}

.task-queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: default;
    animation: queueItemSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes queueItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.queue-item:hover {
    background: var(--glass-hover);
    transform: translateX(4px);
}

.queue-item-number {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-quaternary);
    font-family: 'JetBrains Mono', monospace;
    min-width: 24px;
    text-align: center;
}

.queue-item-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.queue-item-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.queue-item:hover .queue-item-remove {
    opacity: 1;
}

.queue-item-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    transform: scale(1.1);
}

/* Queue Transition Modal */
.queue-transition-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.queue-transition-modal.active {
    opacity: 1;
    pointer-events: all;
}

.queue-transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.queue-transition-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 500px;
    width: 90%;
}

.queue-transition-modal.active .queue-transition-content {
    transform: scale(1) translateY(0);
}

.transition-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    animation: levelUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes levelUp {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.transition-message {
    margin-bottom: 32px;
}

.transition-completed {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.transition-completed span {
    color: var(--text-primary);
    font-weight: 500;
}

.transition-next {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.transition-next span {
    color: var(--accent-purple);
    font-weight: 600;
}

.continue-queue-btn {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.continue-queue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.continue-queue-btn:active {
    transform: translateY(0);
}

/* ============================================
   VISUAL TIMELINE
   ============================================ */
.visual-timeline {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--void-1);
    border-top: 1px solid var(--glass-border);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-content {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: stretch;
}

.timeline-block {
    position: relative;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-block:hover {
    height: 120%;
    transform: translateY(-10%);
    z-index: 101;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-block.task {
    background: linear-gradient(180deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
}

.timeline-block.break {
    background: linear-gradient(180deg, var(--accent-green) 0%, #059669 100%);
}

.timeline-block.gap {
    background: rgba(255, 255, 255, 0.05);
}

.timeline-block-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 102;
}

.timeline-block:hover .timeline-block-tooltip {
    opacity: 1;
}

.timeline-block-tooltip-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-block-tooltip-duration {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .app-container {
        padding: 24px 16px;
    }
    
    .setup-content {
        gap: 48px;
        min-height: 70vh;
    }
    
    .button-group {
        flex-direction: column;
        gap: 24px;
    }
    
    .start-btn {
        width: 200px;
        height: 200px;
        font-size: 1.25rem;
    }
    
    .break-btn {
        width: 160px;
        height: 160px;
        font-size: 1.125rem;
    }
    
    .progress-ring {
        width: 300px;
        height: 300px;
    }
    
    .timer-hours {
        font-size: 1.75rem;
    }
    
    .timer-separator {
        font-size: 2.5rem;
    }
    
    .timer-minutes {
        font-size: 4.5rem;
    }
    
    .timer-seconds {
        font-size: 1.75rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .clear-all-btn {
        width: 100%;
    }
    
    .delete-btn {
        opacity: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .task-queue-container {
        max-width: 100%;
    }
    
    .queue-transition-content {
        padding: 40px 24px;
    }
    
    .visual-timeline {
        height: 8px;
    }
}
