/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --bg-primary: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-primary: #f0f0ff;
    --text-secondary: rgba(240, 240, 255, 0.5);
    --text-muted: rgba(240, 240, 255, 0.3);
    --accent-1: #6c5ce7;
    --accent-2: #a29bfe;
    --accent-3: #00cec9;
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #00cec9);
    --glow-purple: rgba(108, 92, 231, 0.4);
    --glow-cyan: rgba(0, 206, 201, 0.3);
    --border-glass: rgba(255, 255, 255, 0.08);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 50%;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   App Container
   =========================== */
.app {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
    padding: 1rem 1.25rem 2rem;
    overflow: hidden;
}

/* ===========================
   Ambient Orbs (Background)
   =========================== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-1);
    top: -80px;
    left: -60px;
    animation: float1 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-3);
    bottom: 10%;
    right: -80px;
    animation: float2 15s ease-in-out infinite alternate;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-2);
    bottom: -60px;
    left: 30%;
    animation: float3 10s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.15);
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, -40px) scale(1.1);
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.2);
    }
}

/* ===========================
   Top Bar
   =========================== */
.top-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.greeting {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.location {
    font-size: 1.2rem;
    opacity: 0.7;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-fullscreen {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.btn-fullscreen:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-1);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}

/* ===========================
   Analog Clock
   =========================== */
.clock-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.analog-clock {
    position: relative;
    width: 260px;
    height: 260px;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(108, 92, 231, 0.08), transparent 60%),
        radial-gradient(circle at 65% 65%, rgba(0, 206, 201, 0.06), transparent 60%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    box-shadow:
        0 0 60px rgba(108, 92, 231, 0.1),
        inset 0 0 40px rgba(0, 0, 0, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.inner-ring {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.markers {
    position: absolute;
    inset: 0;
}

.marker {
    position: absolute;
    left: 50%;
    top: 8px;
    transform-origin: 0 122px;
    width: 2px;
    height: 14px;
    background: var(--text-muted);
    border-radius: 2px;
    margin-left: -1px;
}

.marker.major {
    width: 3px;
    height: 20px;
    background: var(--text-secondary);
    margin-left: -1.5px;
    border-radius: 3px;
}

.marker.twelve {
    background: var(--accent-2);
    box-shadow: 0 0 6px var(--glow-purple);
}

/* Clock Hands */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    border-radius: 4px;
    transition: none;
}

.hour-hand {
    width: 4px;
    height: 65px;
    margin-left: -2px;
    background: linear-gradient(to top, var(--text-primary), var(--accent-2));
    box-shadow: 0 0 10px var(--glow-purple);
    z-index: 3;
}

.minute-hand {
    width: 3px;
    height: 90px;
    margin-left: -1.5px;
    background: linear-gradient(to top, var(--text-primary), var(--accent-3));
    box-shadow: 0 0 8px var(--glow-cyan);
    z-index: 4;
}

.second-hand {
    width: 1.5px;
    height: 100px;
    margin-left: -0.75px;
    background: linear-gradient(to top, transparent, #ff6b6b);
    z-index: 5;
}

.second-hand::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff6b6b;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.6);
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 15px var(--glow-purple);
    z-index: 6;
}

/* ===========================
   Digital Time
   =========================== */
.digital-time {
    text-align: center;
    animation: fadeInScale 0.8s ease-out 0.15s both;
}

.time-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.hours,
.minutes {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.separator {
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--accent-2);
    animation: blink 1s step-end infinite;
    margin: 0 2px;
    line-height: 1;
}

@keyframes blink {
    50% {
        opacity: 0.2;
    }
}

.ampm {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-3);
    margin-left: 6px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.seconds-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: -4px;
}

.seconds-label {
    font-size: 1rem;
    color: var(--text-muted);
}

.seconds {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* ===========================
   Date Display
   =========================== */
.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInScale 0.8s ease-out 0.3s both;
}

.day-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-2);
    text-transform: capitalize;
}

.date-separator {
    color: var(--text-muted);
    font-size: 0.6rem;
}

.full-date {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* ===========================
   Info Cards
   =========================== */
.info-cards {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: background var(--transition);
}

.card:hover,
.card:active {
    background: var(--bg-card-hover);
}

.card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-value {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.card-actions {
    display: flex;
    gap: 6px;
}

.btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.btn:hover,
.btn:active {
    background: rgba(255, 255, 255, 0.12);
}

.btn-start.active {
    background: rgba(108, 92, 231, 0.3);
    border-color: var(--accent-1);
    box-shadow: 0 0 15px var(--glow-purple);
}

.btn-reset {
    font-size: 1.1rem;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-gradient);
    transition: width 1s ease;
    box-shadow: 0 0 8px var(--glow-purple);
}

/* ===========================
   Responsive
   =========================== */
@media (min-width: 420px) {
    .analog-clock {
        width: 300px;
        height: 300px;
    }

    .marker {
        transform-origin: 0 142px;
        top: 8px;
    }

    .marker.major {
        transform-origin: 0 142px;
    }

    .hour-hand {
        height: 75px;
    }

    .minute-hand {
        height: 105px;
    }

    .second-hand {
        height: 115px;
    }

    .hours,
    .minutes {
        font-size: 5rem;
    }

    .separator {
        font-size: 4.5rem;
    }
}

@media (max-height: 700px) {
    .analog-clock {
        width: 200px;
        height: 200px;
    }

    .marker {
        transform-origin: 0 92px;
        height: 10px;
    }

    .marker.major {
        height: 16px;
        transform-origin: 0 92px;
    }

    .hour-hand {
        height: 50px;
    }

    .minute-hand {
        height: 70px;
    }

    .second-hand {
        height: 78px;
    }

    .hours,
    .minutes {
        font-size: 3rem;
    }

    .separator {
        font-size: 2.5rem;
    }

    .clock-container {
        gap: 1rem;
    }

    .info-cards {
        margin-top: 1rem;
    }
}

/* Smooth touch */
@media (hover: none) {

    .btn:active,
    .pomo-btn:active,
    .todo-add-btn:active {
        transform: scale(0.92);
    }

    .card:active {
        transform: scale(0.98);
    }
}

/* ===========================
   Tab Navigation
   =========================== */
.tab-nav {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    width: 100%;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.6rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: calc(var(--radius-lg) - 4px);
    transition: all var(--transition);
    position: relative;
}

.tab-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.tab-label {
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tab-btn.active {
    background: rgba(108, 92, 231, 0.2);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.tab-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--accent-3);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tab-badge.visible {
    display: flex;
}

/* ===========================
   Panels
   =========================== */
.panel {
    display: none;
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 1;
    animation: fadeInScale 0.4s ease-out;
}

.panel.active {
    display: flex;
    flex-direction: column;
}

.panel-clock.active {
    align-items: center;
}

/* ===========================
   Pomodoro Panel
   =========================== */
.panel-pomodoro {
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.pomo-modes {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.pomo-mode-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: calc(var(--radius-lg) - 4px);
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.pomo-mode-btn.active {
    background: rgba(108, 92, 231, 0.25);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}

/* Top row with modes + settings gear */
.pomo-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 380px;
    justify-content: center;
}

.pomo-settings-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.pomo-settings-toggle:hover,
.pomo-settings-toggle.active {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--accent-1);
    color: var(--accent-2);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}

/* Settings panel */
.pomo-settings {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    animation: fadeInScale 0.3s ease-out;
}

.pomo-settings.open {
    display: flex;
}

.pomo-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pomo-setting-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pomo-setting-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pomo-setting-adj {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: var(--font);
}

.pomo-setting-adj:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--accent-1);
    color: var(--accent-2);
}

.pomo-setting-input {
    width: 50px;
    padding: 0.4rem 0.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 300;
    text-align: center;
    outline: none;
    transition: all var(--transition);
    -moz-appearance: textfield;
    appearance: textfield;
}

.pomo-setting-input::-webkit-inner-spin-button,
.pomo-setting-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pomo-setting-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.15);
}

.pomo-setting-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 2px;
    width: 24px;
}

/* Circular timer */
.pomo-timer-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pomo-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pomo-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 6;
}

.pomo-ring-progress {
    fill: none;
    stroke: url(#pomoGrad);
    stroke: var(--accent-2);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 753.98;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 8px var(--glow-purple));
}

.pomo-time-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.pomo-time {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pomo-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Controls */
.pomo-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pomo-btn {
    border: none;
    cursor: pointer;
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.pomo-btn-main {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 25px var(--glow-purple), 0 0 40px rgba(108, 92, 231, 0.2);
}

.pomo-btn-main:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px var(--glow-purple), 0 0 50px rgba(108, 92, 231, 0.3);
}

.pomo-btn-main.running {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
    box-shadow: 0 4px 25px rgba(225, 112, 85, 0.4);
}

.pomo-btn-secondary {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.pomo-btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Session dots */
.pomo-sessions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pomo-sessions-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pomo-dots {
    display: flex;
    gap: 8px;
}

.pomo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    transition: all var(--transition);
}

.pomo-dot.filled {
    background: var(--accent-2);
    border-color: var(--accent-2);
    box-shadow: 0 0 12px var(--glow-purple);
}

/* Current task card */
.pomo-task-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.pomo-task-card.has-task {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}

.pomo-task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pomo-task-label {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pomo-task-name {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pomo-task-card.has-task .pomo-task-name {
    color: var(--text-primary);
}

.pomo-task-clear {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.pomo-task-card.has-task .pomo-task-clear {
    display: flex;
}

.pomo-task-clear:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Focus button on todo items */
.todo-focus {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
    opacity: 0;
}

.todo-item:hover .todo-focus {
    opacity: 1;
}

@media (hover: none) {
    .todo-focus {
        opacity: 1;
    }
}

.todo-focus:hover {
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent-2);
}

.todo-focus.active-task {
    opacity: 1;
    background: rgba(108, 92, 231, 0.25);
    color: var(--accent-2);
    box-shadow: 0 0 10px var(--glow-purple);
}

.todo-item.selected-task {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.1);
}

/* ===========================
   To-Do Panel
   =========================== */
.panel-todo {
    gap: 1rem;
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.todo-title {
    font-size: 1.5rem;
    font-weight: 300;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.todo-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Input */
.todo-input-wrap {
    display: flex;
    gap: 8px;
}

.todo-input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 300;
    outline: none;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.todo-input::placeholder {
    color: var(--text-muted);
}

.todo-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.todo-add-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 4px 15px var(--glow-purple);
    flex-shrink: 0;
}

.todo-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--glow-purple);
}

/* Filters */
.todo-filters {
    display: flex;
    gap: 6px;
    padding: 3px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.todo-filter-btn {
    flex: 1;
    padding: 0.4rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: calc(var(--radius-lg) - 3px);
    transition: all var(--transition);
}

.todo-filter-btn.active {
    background: rgba(108, 92, 231, 0.2);
    color: var(--text-primary);
}

/* Task list */
.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    max-height: 45vh;
    padding-right: 4px;
}

.todo-list::-webkit-scrollbar {
    width: 3px;
}

.todo-list::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
    transition: all var(--transition);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.todo-item.removing {
    opacity: 0;
    transform: translateX(20px);
    max-height: 0;
    padding: 0 1rem;
    margin: 0;
    overflow: hidden;
}

.todo-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    color: transparent;
    font-size: 0.7rem;
}

.todo-checkbox:hover {
    border-color: var(--accent-2);
}

.todo-checkbox.checked {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #fff;
    box-shadow: 0 0 10px var(--glow-purple);
}

.todo-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-primary);
    transition: all var(--transition);
    word-break: break-word;
}

.todo-text.done {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-delete {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
    opacity: 0;
}

.todo-item:hover .todo-delete {
    opacity: 1;
}

@media (hover: none) {
    .todo-delete {
        opacity: 1;
    }
}

.todo-delete:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Empty state */
.todo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.todo-empty.hidden {
    display: none;
}

.todo-empty-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.todo-empty-text {
    font-size: 0.85rem;
    font-weight: 300;
}

/* Clear button */
.todo-clear-btn {
    align-self: center;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: auto;
}

.todo-clear-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.todo-clear-btn.hidden {
    display: none;
}