:root {
    --bg-dark: #120a0b;
    --accent-primary: #ffb199;
    --accent-secondary: #ff6b6b;
    --accent-glow: rgba(255, 177, 153, 0.35);
    
    --glass-bg: rgba(30, 18, 18, 0.42);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-highlight: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.65);
    
    --text-main: #fff7f3;
    --text-muted: #c8a8a2;
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius-xl: 24px;
    --radius-md: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    position: relative;
}

.ambient-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 18% 45%, rgba(255, 107, 107, 0.33), transparent 55%),
                radial-gradient(circle at 85% 28%, rgba(255, 177, 153, 0.28), transparent 60%),
                radial-gradient(circle at 52% 82%, rgba(250, 204, 21, 0.14), transparent 55%);
    filter: blur(60px);
    opacity: 0.8;
    animation: breathe 20s ease-in-out infinite alternate;
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes breathe {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 2.5rem;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    position: relative;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.glass-panel:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(44, 24, 24, 0.52);
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0.8;
}

.notepad-area {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    resize: none;
    scrollbar-width: none;
    transition: color 0.2s;
}

.notepad-area:focus { color: var(--text-main); }
.notepad-area::placeholder { color: rgba(255,255,255,0.15); }

.panel-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.greeting {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.timer-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
    overflow: visible;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 4;
}

.circle-progress {
    fill: none;
    stroke: var(--accent-secondary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 1130;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.4));
}

.mode-focus .circle-progress { stroke: var(--accent-secondary); filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.4)); }
.mode-break .circle-progress { stroke: var(--accent-primary); filter: drop-shadow(0 0 10px rgba(165, 180, 252, 0.4)); }

.time-display {
    position: absolute;
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 400;
    letter-spacing: -3px;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.timer-controls {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    opacity: 0.6; 
    transition: all 0.3s ease;
}

.timer-container:hover + .timer-controls,
.timer-controls:hover {
    opacity: 1;
}

.btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(4px);
}

.btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.focus-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 300;
    padding: 0;
    margin-bottom: 2rem;
    width: 100%;
    font-family: var(--font-display);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    transition: all 0.3s;
}

.focus-input:focus { 
    border-bottom-color: var(--accent-secondary); 
    padding-left: 0.5rem;
}

.focus-input::placeholder { color: rgba(255,255,255,0.15); font-style: italic; }

.todo-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
}

.todo-list::-webkit-scrollbar { width: 4px; }
.todo-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.todo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    animation: slideIn 0.3s ease;
}

.todo-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.todo-checkbox:hover { border-color: var(--accent-secondary); }

.todo-checkbox:checked {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.todo-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-main);
    transition: all 0.3s;
}

.todo-checkbox:checked + .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.5;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 4px;
}

.todo-item:hover .delete-btn { opacity: 0.5; }
.delete-btn:hover { opacity: 1; color: #ff8888; }

.add-task-btn {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.15);
    color: var(--text-muted);
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.add-task-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    background: rgba(45, 212, 191, 0.05);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        padding: 4rem 1rem;
        overflow-y: auto;
        gap: 3rem;
    }
    body { overflow-y: auto; height: auto; display: block; }
    .panel-left, .panel-right { height: 400px; }
    .timer-container { width: 300px; height: 300px; margin: 0 auto; }
    .time-display { font-size: 5rem; }
    .circle-progress { stroke-dasharray: 1130; } 
    
    .timer-svg { width: 100%; height: 100%; }
}
