/* ─── MISC ─── */
.kbd {
    font-family: var(--mono);
    font-size: 10px;
    background: var(--bg-active);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    color: var(--text-tertiary);
}

.divider {
    height: 1px;
    background: var(--border-subtle);
}

.progress-bar-wrap {
    height: 4px;
    background: var(--bg-active);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

@media (max-width: 900px) {
    .col-side {
        display: none;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── DROPDOWN MENUS ─── */
.dropdown-wrap {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 50;
    padding: 6px;
    animation: dropIn 0.12s ease;
}

.dropdown-menu.open {
    display: block;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 6px 10px 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.1s;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: var(--accent-purple-dim);
    color: var(--accent-purple);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

.dd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* ─── DELETE BUTTON ─── */
.delete-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.15s;
    flex-shrink: 0;
}

.task-item:hover .delete-btn,
.habit-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: var(--accent-rose-dim);
    color: var(--accent-rose);
}

/* ─── UNDO TOAST ─── */
.toast-undo {
    pointer-events: auto;
    animation: toastIn 0.2s ease;
}

.undo-btn {
    background: transparent;
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.15s;
}

.undo-btn:hover {
    background: var(--accent-purple);
    color: #fff;
}

/* ─── CALENDAR EMPTY ─── */
.cal-empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.cal-empty:hover {
    border-color: transparent;
}

/* ─── SVG RING TRANSITION ─── */
.ring-svg circle {
    transition: stroke-dashoffset 0.6s ease;
}

/* ─── GREETING ─── */
.greeting-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.greeting-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.greeting-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ─── POMODORO TIMER ─── */
.pomo-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pomo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pomo-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pomo-title svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.pomo-mute-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.pomo-mute-btn:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-color: var(--accent-purple);
}

.pomo-mute-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

.pomo-focus-total {
    font-size: 11px;
    font-family: var(--mono);
    color: var(--text-tertiary);
}

.pomo-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}

.pomo-svg {
    transform: rotate(-90deg);
}

.pomo-svg circle {
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

/* Pulse animation when timer is running */
@keyframes pomoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 6px transparent);
    }

    50% {
        filter: drop-shadow(0 0 10px var(--accent-rose));
    }
}

.pomo-svg.running {
    animation: pomoPulse 2s ease-in-out infinite;
}

.pomo-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.pomo-time {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -1px;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.pomo-phase {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pomo-controls {
    display: flex;
    gap: 8px;
    width: 100%;
}

.pomo-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    background: var(--accent-rose);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pomo-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.pomo-btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.pomo-btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    filter: none;
}

/* Pomo Mode Tabs */
.pomo-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 3px;
    width: 100%;
}

.pomo-tab {
    flex: 1;
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-tertiary);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.pomo-tab:hover {
    color: var(--text-secondary);
}

.pomo-tab.active {
    background: var(--bg-active);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Pomo Preset Chips */
.pomo-presets {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.pomo-chip {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-tertiary);
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.pomo-chip:hover {
    border-color: var(--accent-purple);
    color: var(--text-secondary);
}

.pomo-chip.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
}

.pomo-chip-custom {
    padding: 4px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pomo-chip-custom svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

/* Custom Timer Input */
.pomo-custom {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.pomo-custom-input {
    width: 60px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 12px;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}

.pomo-custom-input:focus {
    border-color: var(--accent-purple);
}

/* Session Dots */
.pomo-sessions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pomo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-active);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pomo-dot.filled {
    background: var(--accent-rose);
    border-color: var(--accent-rose);
    box-shadow: 0 0 6px rgba(255, 107, 129, 0.4);
}

/* ─── DAILY QUOTE ─── */
.quote-section {
    background: var(--accent-purple-dim);
    border: 1px solid rgba(124, 108, 255, 0.15);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
}

.quote-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-purple);
    stroke-width: 1.8;
}

.quote-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.quote-author {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: var(--mono);
}

/* ─── QUICK NOTES ─── */
.notes-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notes-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.notes-title svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
}

.notes-saved {
    font-size: 10px;
    color: var(--accent-green);
    font-family: var(--mono);
    transition: opacity 0.3s;
}

.notes-area {
    width: 100%;
    min-height: 80px;
    max-height: 140px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-primary);
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.6;
}

.notes-area:focus {
    border-color: var(--accent-purple);
}

.notes-area::placeholder {
    color: var(--text-tertiary);
}

/* ─── FOCUS MODE ─── */
.focus-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.96);
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
}

.focus-overlay.open {
    display: flex;
    animation: focusFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes focusFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.focus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    max-width: 500px;
    animation: focusFloat 0.5s ease;
}

@keyframes focusFloat {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.focus-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-active);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    overflow: hidden;
}

.focus-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-rose);
    opacity: 0.2;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.1s linear;
    z-index: -1;
}

.focus-close.holding::before {
    transform: scaleY(1);
    transition: transform 1.5s linear;
}

.focus-close i {
    pointer-events: none;
}

.focus-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

.focus-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-purple);
    text-transform: uppercase;
}

.focus-task-name {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-shadow: 0 0 40px var(--accent-purple-glow);
}

.focus-timer-wrap {
    position: relative;
    width: 160px;
    height: 160px;
}

.focus-timer-svg {
    transform: rotate(-90deg);
}

.focus-timer-svg circle {
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

.focus-timer-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.focus-timer-time {
    font-size: 32px;
    font-weight: 600;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.focus-timer-phase {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.focus-actions {
    display: flex;
    gap: 12px;
}

.focus-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* ─── SHORTCUTS MODAL ─── */
.shortcuts-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 160;
    display: none;
    align-items: center;
    justify-content: center;
}

.shortcuts-overlay.open {
    display: flex;
    animation: fadeIn 0.15s ease;
}

.shortcuts-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 380px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.shortcuts-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shortcuts-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shortcuts-title svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.shortcuts-grid {
    padding: 12px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.shortcut-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
}


/* ─── TEMPLATES MODAL ─── */