/* assets/css/style.css - Excellent Teacher Competition Platform Styles */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --projector-bg: #090d16;
    --projector-card: #1e293b;
    --projector-text: #f8fafc;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Prevent mobile Safari input auto-zoom by ensuring minimum 16px font-size */
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="email"],
input[type="file"],
select,
textarea {
    font-size: 16px !important;
}

/* Custom Navigation Bar */
.navbar-brand-custom {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Modern Card Styling */
.card-stat {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Avatar Badge */
.avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

/* Projector / Stage View Styles */
.projector-body {
    background-color: var(--projector-bg);
    color: var(--projector-text);
}

.projector-card {
    background: var(--projector-card);
    border: 1px solid #334155;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Circular Timer Styling */
.timer-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-circle-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 12;
}

.timer-circle-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 691;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-text-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Monaco', 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timer-warning .timer-circle-progress {
    stroke: #f59e0b;
}

.timer-danger .timer-circle-progress {
    stroke: #ef4444;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 5px #ef4444); }
    100% { filter: drop-shadow(0 0 20px #ef4444); }
}

/* Question Spinner & Stage Wheel */
.slot-container {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border: 3px solid #6366f1;
    border-radius: 16px;
    padding: 30px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(99, 102, 241, 0.3);
}

.slot-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
    text-align: center;
}

.spinning {
    animation: spinBlur 0.1s infinite linear;
}

@keyframes spinBlur {
    0% { transform: translateY(-5px); opacity: 0.7; }
    50% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(-5px); opacity: 0.7; }
}

/* Judge Scorecard Slider */
.criterion-slider {
    accent-color: var(--primary-color);
    height: 8px;
}

.score-badge {
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 50px;
    display: inline-block;
    text-align: center;
}

/* Ranking Badges */
.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.rank-1 { background-color: #f59e0b; color: #fff; box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); }
.rank-2 { background-color: #94a3b8; color: #fff; }
.rank-3 { background-color: #b45309; color: #fff; }
.rank-other { background-color: #e2e8f0; color: #475569; }

/* Dynamic Toast alerts */
.toast-container-custom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1080;
}

/* Mobile-First Responsive Tweaks */
@media (max-width: 576px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .card {
        border-radius: 20px !important;
    }
    .btn-lg {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        font-size: 1.1rem !important;
    }
}
