:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
}

.navbar-brand {
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.card {
    border: none;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border-radius: 0.75rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.accordion-button:not(.collapsed) {
    background-color: #e0f2fe;
    color: var(--primary-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.table th {
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.badge {
    font-weight: 500;
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.footer {
    background-color: white !important;
    border-top: 1px solid #e2e8f0;
}

input[type="text"].form-control-lg#otp {
    font-size: 1.5rem;
}

/* Login Page - Logo */
.login-logo {
    max-height: 60px;
    width: auto;
}

/* Login Page - Feature Boxes */
.feature-box {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper i {
    font-size: 1.75rem;
    color: white;
}

.feature-box h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Login Page - Footer */
.login-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
}

.login-footer a {
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Countdown Timer */
.countdown-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.countdown-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.countdown-header h5 {
    margin: 0;
    font-weight: 600;
}

.countdown-session-info {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.countdown-timer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.countdown-segment {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 80px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.countdown-segment:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.countdown-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}

.countdown-live-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

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

@media (max-width: 576px) {
    .countdown-segment {
        min-width: 65px;
        padding: 0.75rem 1rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
}
