/* /css/quick_tools/timer_tool.css */
/* Quick Tools: Focus Timer & Stopwatch Component Styles */

.timer-modal-content {
    background: rgba(var(--bs-body-bg-rgb), 0.9) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--bs-border-color-translucent) !important;
    border-radius: 24px;
}

/* Mode Switcher Buttons */
.timer-mode-btn {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    transition: all 0.2s ease;
}

.timer-mode-btn.active {
    background: rgba(var(--bs-body-bg-rgb), 0.95) !important;
    color: var(--bs-body-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* SVG Progress Ring */
.timer-display-wrapper {
    width: 220px;
    height: 220px;
}

.timer-progress-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.timer-ring-bg {
    fill: transparent;
    stroke: rgba(128, 128, 128, 0.15);
}

.timer-ring-bar {
    fill: transparent;
    stroke: var(--apple-accent-color, #6c63ff);
    stroke-linecap: round;
    stroke-dasharray: 603.18;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s linear, stroke 0.3s ease;
}

.timer-time-center {
    position: absolute;
    inset: 0;
    user-select: none;
}

.timer-digits {
    font-size: 3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--bs-body-color);
}

.timer-mode-label {
    font-size: 0.72rem;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

/* Primary play/pause button */
.timer-primary-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38) !important;
    min-width: 140px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timer-primary-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.48) !important;
}

.timer-primary-btn.is-running {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.38) !important;
}

/* Lap List */
.timer-lap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 6px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    font-variant-numeric: tabular-nums;
}

.timer-lap-row:last-child {
    border-bottom: none;
}

/* Sub-btn gradient for Timer in FAB */
.global-fab-sub-btn.btn-timer-tool {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.45) !important;
}