/* Neovation Pro Time Tracker */
#timerModal .modal-dialog {
    max-width: 440px;
}

#timerModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

#timerModal .neo-tt-header {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
    color: #fff;
    padding: 1.25rem 1.5rem 1rem;
    border: none;
}

#timerModal .neo-tt-header .modal-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

#timerModal .neo-tt-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

#timerModal .neo-tt-body {
    padding: 1.5rem;
    background: var(--neo-surface, #fff);
}

[data-bs-theme="dark"] #timerModal .neo-tt-body {
    background: var(--neo-surface, #1e293b);
}

.neo-tt-clock {
    text-align: center;
    margin-bottom: 1.25rem;
}

.neo-tt-digital {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--bs-primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.neo-tt-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neo-text-muted, #64748b);
}

.neo-tt-status.is-running {
    color: #10b981;
}

.neo-tt-status.is-running::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 6px;
    animation: neo-tt-pulse 1.2s ease infinite;
}

@keyframes neo-tt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.neo-tt-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.neo-tt-stat-card {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--neo-surface-2, #f8fafc);
    border: 1px solid var(--neo-border);
}

[data-bs-theme="dark"] .neo-tt-stat-card {
    background: rgba(15, 23, 42, 0.5);
}

.neo-tt-stat-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neo-text-muted);
    margin-bottom: 0.2rem;
}

.neo-tt-stat-card .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neo-text, #0f172a);
}

[data-bs-theme="dark"] .neo-tt-stat-card .value {
    color: #e2e8f0;
}

.neo-tt-controls {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.neo-tt-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    color: #fff;
}

.neo-tt-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.neo-tt-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.neo-tt-btn-start { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
.neo-tt-btn-pause { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }
.neo-tt-btn-stop { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }

.neo-tt-note label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neo-text-muted);
    margin-bottom: 0.35rem;
}

.neo-tt-note textarea {
    border-radius: 12px !important;
    min-height: 72px;
    font-size: 0.875rem;
    resize: vertical;
}

.neo-tt-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.neo-tt-preset {
    border: 1px solid var(--neo-border);
    background: var(--neo-surface-2, #f8fafc);
    color: var(--neo-text-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.neo-tt-preset:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

[data-bs-theme="dark"] .neo-tt-preset {
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
}

.neo-tt-recent-msg {
    color: var(--neo-text, #334155);
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-bs-theme="dark"] .neo-tt-recent-msg {
    color: #cbd5e1;
}

.neo-tt-recent-dur {
    font-weight: 600;
    color: var(--bs-primary);
    font-variant-numeric: tabular-nums;
}

.neo-tt-recent {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neo-border);
}

.neo-tt-recent h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neo-text-muted);
    margin-bottom: 0.65rem;
}

.neo-tt-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.neo-tt-recent-item:last-child {
    border-bottom: none;
}

.neo-tt-footer {
    padding: 0.75rem 1.5rem 1.25rem;
    background: var(--neo-surface-2, #f8fafc);
    border-top: 1px solid var(--neo-border);
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

[data-bs-theme="dark"] .neo-tt-footer {
    background: rgba(15, 23, 42, 0.5);
}

.neo-fab-btn.neo-fab-timer.is-tracking {
    position: relative;
}

.neo-fab-btn.neo-fab-timer.is-tracking::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--neo-surface, #fff);
    animation: neo-tt-pulse 1.2s ease infinite;
}

/* Hide legacy stopwatch inputs — JS still reads them */
#timerModal .stopwatch_time_input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
