/* ABA Exam — Timer Styles */

.aba-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--aba-radius-xl);
    box-shadow: var(--aba-shadow);
    position: relative;
}

.aba-timer-circle {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.aba-timer-circle svg {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
    display: block;
    transform: rotate(-90deg);
    box-sizing: border-box;
}

.aba-timer-circle-bg {
    fill: none;
    stroke: var(--aba-gray-200);
    stroke-width: 4;
}

.aba-timer-circle-progress {
    fill: none;
    stroke: var(--aba-navy);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.aba-timer-circle-progress.warning {
    stroke: var(--aba-orange);
}

.aba-timer-circle-progress.critical {
    stroke: var(--aba-red);
    animation: aba-timer-blink 1s ease infinite;
}

@keyframes aba-timer-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.aba-timer-text {
    display: flex;
    flex-direction: column;
}

.aba-timer-digits {
    font-size: 20px;
    font-weight: 800;
    color: var(--aba-navy);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0.02em;
}

.aba-timer-digits.warning {
    color: var(--aba-orange);
}

.aba-timer-digits.critical {
    color: var(--aba-red);
    animation: aba-timer-blink 1s ease infinite;
}

.aba-timer-label {
    font-size: 10px;
    color: var(--aba-gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aba-timer-phase {
    font-size: 12px;
    font-weight: 600;
    color: var(--aba-gray-600);
    padding-left: 14px;
    border-left: 2px solid var(--aba-gray-200);
}

/* Floating timer (fixed position) */
.aba-timer-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: aba-slide-in-right 0.4s ease;
}

/* Bell notification styles live in animations.css */

/* Timer in compact mode */
.aba-timer-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--aba-gray-100);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.aba-timer-compact.warning {
    background: #fff7ed;
    color: var(--aba-orange);
}

.aba-timer-compact.critical {
    background: #fef2f2;
    color: var(--aba-red);
    animation: aba-timer-blink 1s ease infinite;
}

/* Phase transition timer display */
.aba-phase-timer-bar {
    width: 100%;
    height: 4px;
    background: var(--aba-gray-200);
    position: relative;
    overflow: hidden;
}

.aba-phase-timer-fill {
    height: 100%;
    background: var(--aba-blue);
    transition: width 1s linear;
    position: relative;
}

.aba-phase-timer-fill.warning {
    background: var(--aba-orange);
}

.aba-phase-timer-fill.critical {
    background: var(--aba-red);
}
