:root {
    --primary: #2563eb;
    --primary-hover: #1e40af;
    --secondary: #06b6d4;
    --success: #22c55e;
    --danger: #dc2626;
    --warning: #fa155dff;
    --light: #f9fafb;
    --dark: #0f172a;
}

.results-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.results-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.modal-header {
    padding: 1rem 1.5rem 0;
}

.modal-body {
    padding: 0 2.5rem 1.5rem;
}

.modal-footer {
    background: #2563eb;
    padding: 1rem 2.5rem 1.5rem;
}

.header {
    margin-bottom: 1.5rem;
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.logo i {
    font-size: 1.8rem;
    color: white;
}

.modal-title {
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

.form-label {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 3;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 12px 12px 45px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    width: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    width: 100%;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.student-info {
    background: rgba(67, 97, 238, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.student-info h5 {
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.info-value {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.usage-info {
    background: rgba(245, 158, 11, 0.1);
    color: var(--dark);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.85rem;
}

.countdown {
    background: rgba(245, 158, 11, 0.1);
    color: black;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.9rem;
    text-align: center;
}

.countdown-timer {
    font-weight: bold;
    color: var(--primary);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .modal-body {
        padding: 0 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}
/* ── Floating Countdown Overlay ─────────────────────────────────────────── */
#floatingCountdown {
    position: fixed;
    inset: 0;
    z-index: 1060; /* sits above Bootstrap modal backdrop (1055) */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* lets clicks pass through to modal buttons */
    /* subtle dark vignette so the number really pops */
    background: radial-gradient(ellipse at center,
        rgba(0,0,0,0.45) 0%,
        rgba(0,0,0,0.15) 60%,
        transparent 100%);
}

#floatingCountdownInner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fcdDrop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes fcdDrop {
    from { opacity: 0; transform: translateY(-30px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* SVG ring container */
.fcd-ring {
    position: relative;
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 28px rgba(37,99,235,0.75))
            drop-shadow(0 0 8px rgba(6,182,212,0.5));
}

.fcd-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* start at 12 o'clock */
}

.fcd-track {
    fill: none;
    stroke: rgba(255,255,255,0.12);
    stroke-width: 8;
}

.fcd-progress {
    fill: none;
    stroke: url(#fcdGrad);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s linear;
    /* gradient defined inline via SVG linearGradient below */
    stroke: var(--secondary);
}

/* big number in the ring centre */
.fcd-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow:
        0 0 20px rgba(6,182,212,0.9),
        0 0 60px rgba(37,99,235,0.6);
    animation: fcdPulse 1s ease-in-out infinite;
}

@keyframes fcdPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

/* label text */
.fcd-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0;
}

.fcd-brand {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
}

.fcd-brand a { color: inherit; text-decoration: none; }


