/* Timer display */
.timer-display {
    font-size: clamp(3.5rem, 18vw, 6rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.timer-display.finished {
    color: #d4380d;
    animation: timerPulse 0.6s ease-in-out 3;
}
@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Progress bar */
.timer-progress-wrap {
    background: #f0f0ee;
    border-radius: 999px;
    height: 4px;
    margin-bottom: 1.75rem;
    overflow: hidden;
}
.timer-progress-bar {
    height: 100%;
    background: #1a1a1a;
    border-radius: 999px;
    width: 100%;
    transition: width 0.25s linear, background 0.3s;
}
.timer-progress-bar.finished { background: #d4380d; }

/* Inputs */
.timer-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.timer-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.timer-input-group label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #bbb;
}
.timer-input-group input {
    width: 72px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.timer-input-group input:focus { border-color: #999; }
.timer-sep {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ccc;
    align-self: flex-end;
    padding-bottom: 0.55rem;
}

/* Presets */
.timer-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.preset-btn {
    background: #f5f5f3;
    border: 1.5px solid #e8e8e6;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: #666;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.preset-btn:hover {
    background: #eee;
    border-color: #ccc;
    color: #1a1a1a;
}

/* Control buttons */
.timer-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.ctrl-btn {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s, opacity 0.12s;
}
.ctrl-btn.primary {
    background: #1a1a1a;
    color: #fff;
}
.ctrl-btn.primary:hover { background: #333; }
.ctrl-btn.secondary {
    background: #f0f0ee;
    color: #555;
}
.ctrl-btn.secondary:hover { background: #e5e5e3; }
.ctrl-btn:disabled { opacity: 0.4; cursor: default; }

/* Notification toggle */
.notify-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 2.5rem;
}
.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
    position: absolute;
    inset: 0;
    background: #e0e0e0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-track::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: #555; }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(16px); }

/* Finished alert */
.timer-alert {
    display: none;
    text-align: center;
    padding: 1rem;
    background: #fff8f6;
    border: 1.5px solid #ffb39a;
    border-radius: 10px;
    color: #d4380d;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.timer-alert.visible { display: block; }

/* SEO text */
