body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#f5f7fb;
}

.sidebar{
    position:fixed;
    width:240px;
    height:100vh;
    background:#1976d2;
    color:white;
    padding:20px;
}

.sidebar h2{
    margin-bottom:30px;
}

.sidebar a{
    display:block;
    color:white;
    text-decoration:none;
    padding:12px;
    margin:8px 0;
    border-radius:6px;
}

.sidebar a:hover{
    background:#1565c0;
}

.main{
    margin-left:270px;
    padding:30px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:white;
    border-radius:12px;
    padding:20px;
    box-shadow:0 3px 12px rgba(0,0,0,.12);
    text-align:center;
}

.card h3{
    color:#1976d2;
}

/* ===========================
   HOME PAGE
=========================== */

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f8fc;
    color:#222;
}

header{
    background:#0d6efd;
    color:white;
    padding:18px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
}

header h1{
    margin:0;
    font-size:32px;
}

header p{
    margin:4px 0 0;
    font-size:15px;
}

nav{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

nav a:hover{
    color:#ffe082;
}

.hero{
    max-width:1200px;
    margin:auto;
    padding:80px 20px;
    text-align:center;
}

.hero h2{
    color:#0d6efd;
    font-size:26px;
    margin-bottom:10px;
}

.hero h1{
    font-size:48px;
    margin-bottom:25px;
}

.hero p{
    max-width:850px;
    margin:auto;
    font-size:20px;
    line-height:1.8;
    color:#555;
}

.hero-buttons{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{

    display:inline-block;

    padding:15px 35px;

    border-radius:8px;

    text-decoration:none;

    font-size:18px;

    font-weight:bold;

    transition:.3s;

}

.btn-primary{

    background:#0d6efd;

    color:white;

}

.btn-primary:hover{

    background:#084fc7;

}

.btn-secondary{

    background:white;

    color:#0d6efd;

    border:2px solid #0d6efd;

}

.btn-secondary:hover{

    background:#0d6efd;

    color:white;

}

footer{

    background:#0d6efd;

    color:white;

    text-align:center;

    padding:20px;

    margin-top:60px;

}

@media(max-width:768px){

    header{

        flex-direction:column;

        text-align:center;

    }

    .hero h1{

        font-size:34px;

    }

    .hero p{

        font-size:18px;

    }

}

/* ===========================
   FEATURES SECTION
=========================== */

.features{

    max-width:1200px;

    margin:80px auto;

    padding:20px;

    text-align:center;

}

.features h2{

    font-size:38px;

    color:#0d6efd;

    margin-bottom:50px;

}

.feature-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.feature-card{

    background:white;

    padding:35px;

    border-radius:18px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.35s;

}

.feature-card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(13,110,253,.25);

}

.feature-card .icon{

    font-size:60px;

    margin-bottom:20px;

}

.feature-card h3{

    color:#0d6efd;

    margin-bottom:15px;

    font-size:24px;

}

.feature-card p{

    color:#666;

    line-height:1.7;

}

/* ===========================
   STATISTICS SECTION
=========================== */

.stats{

    background:#0d6efd;

    color:white;

    padding:80px 20px;

    margin-top:80px;

    text-align:center;

}

.stats h2{

    font-size:40px;

    margin-bottom:50px;

}

.stats-grid{

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

}

.stat-card{

    background:rgba(255,255,255,.12);

    border-radius:18px;

    padding:35px;

    transition:.3s;

}

.stat-card:hover{

    transform:translateY(-8px);

    background:rgba(255,255,255,.22);

}

.stat-card h1{

    font-size:48px;

    margin-bottom:10px;

}

.stat-card p{

    font-size:20px;

    font-weight:bold;

}

/* ===========================
   LIVE QUIZ SECTION
=========================== */

.live-section{

    max-width:1100px;

    margin:90px auto;

    text-align:center;

    padding:20px;

}

.live-section h2{

    font-size:40px;

    color:#0d6efd;

    margin-bottom:45px;

}

.live-card{

    background:white;

    max-width:500px;

    margin:auto;

    padding:40px;

    border-radius:20px;

    box-shadow:0 10px 35px rgba(0,0,0,.12);

    position:relative;

    transition:.3s;

}

.live-card:hover{

    transform:translateY(-8px);

}

.live-badge{

    position:absolute;

    top:20px;

    right:20px;

    background:red;

    color:white;

    padding:8px 18px;

    border-radius:30px;

    font-weight:bold;

    animation:pulse 1s infinite;

}

@keyframes pulse{

    0%{opacity:1;}

    50%{opacity:.4;}

    100%{opacity:1;}

}

.live-card h3{

    margin-top:20px;

    color:#0d6efd;

}

.live-card p{

    font-size:18px;

    margin:15px 0;

}

/* =========================
   QUESTION LEADERBOARD
========================= */

.leaderboard-overlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.85);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 9999;

}

.leaderboard-card {

    width: 90%;
    max-width: 600px;

    background: white;

    border-radius: 20px;

    padding: 25px;

    text-align: center;

    box-shadow:
        0 0 30px gold,
        0 0 60px rgba(255,215,0,0.4);

}

.leaderboard-card h2 {

    color: #ff9800;

    margin-bottom: 20px;

}

.rank-player {

    background: #f5f5f5;

    border-radius: 12px;

    padding: 12px;

    margin: 10px 0;

    font-size: 18px;

    font-weight: bold;

}

.other-rank {

    display: flex;

    justify-content: space-between;

    padding: 10px;

    border-bottom: 1px solid #ddd;

}

.leaderboard-message {

    margin-top: 20px;

    font-size: 20px;

    font-weight: bold;

    color: #4caf50;

}

.leaderboard-close {

    float: right;

    border: none;

    background: none;

    font-size: 25px;

    cursor: pointer;

}

/* =========================
   NEE-JEE Adda PODIUM
========================= */

.podium-container {

    display: flex;

    justify-content: center;

    align-items: flex-end;

    gap: 25px;

    margin-top: 20px;

    margin-bottom: 25px;

}

.podium-player {

    text-align: center;

}

.podium-photo {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    background: #f2f2f2;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 40px;

    margin: auto;

}

.podium-rank {

    font-size: 28px;

    margin-top: 8px;

}

.podium-name {

    font-size: 20px;

    font-weight: bold;

    margin-top: 8px;

}

.podium-score {

    font-size: 26px;

    font-weight: bold;

    color: #00b894;

}

.first {

    transform: translateY(-20px);

}

.first .podium-photo {

    width: 110px;

    height: 110px;

    font-size: 50px;

    border: 4px solid gold;

    box-shadow: 0 0 20px gold;

}

.second .podium-photo {

    border: 4px solid silver;

}

.third .podium-photo {

    border: 4px solid #cd7f32;

}

@media (max-width: 768px) {

    .podium-container {

        gap: 10px;

    }

    .podium-name {

        font-size: 14px;

    }

}

.podium-correct {
    font-size: 18px;
    font-weight: 700;
    color: #00a884;
    margin-top: 4px;
}

.podium-time {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

/* =========================
   REMAINING RANKS #4 - #10
========================= */

.other-ranks {
    margin-top: 18px;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
}

.other-rank {
    display: grid;
    grid-template-columns: 40px 1fr 70px;
    align-items: center;
    gap: 10px;

    padding: 11px 14px;
    margin: 6px 0;

    background: #f7f8fa;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;
}

.other-rank-number {
    font-weight: 800;
    color: #666;
    text-align: center;
}

.other-rank-name {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.other-rank-correct {
    text-align: right;
    font-weight: 800;
    color: #00a884;
}

@media (max-width: 600px) {

    .other-ranks {
        max-height: 190px;
    }

    .other-rank {
        grid-template-columns: 32px 1fr 58px;
        padding: 9px 10px;
        font-size: 13px;
    }
}

/* =========================================================
   STUDENT DASHBOARD - CLEAN EXAM UI
========================================================= */

.student-dashboard {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}


/* Header */

.student-header {
    height: 68px;
    padding: 0 34px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    border-bottom: 1px solid #e5eaf2;
}


.student-header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}


.student-logo {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #1769e0;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}


.student-header-brand strong {
    display: block;

    font-size: 15px;
    color: #17233d;
}


.student-header-brand span {
    display: block;
    margin-top: 2px;

    font-size: 10px;
    color: #8490a3;
}


.student-logout-btn {
    border: 1px solid #dfe5ee;
    border-radius: 9px;

    padding: 8px 15px;

    background: #ffffff;
    color: #536177;

    font-weight: 700;
    font-size: 12px;

    cursor: pointer;
}


.student-logout-btn:hover {
    background: #f5f8fd;
    color: #1559bd;
}


/* Main */

.student-main {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 50px;
}


/* Welcome */

.student-welcome-bar {
    min-height: 105px;
    box-sizing: border-box;

    padding: 24px 27px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border: 1px solid #e5eaf2;
    border-radius: 15px;
}


.student-label {
    display: block;

    margin-bottom: 6px;

    color: #5273a9;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}


.student-welcome-bar h1 {
    margin: 0;

    font-size: 26px;
    line-height: 1.2;

    color: #18243c;
}


.student-welcome-bar h1 span {
    color: #1769e0;
}


.student-welcome-bar p {
    margin: 6px 0 0;

    color: #748095;
    font-size: 12px;
}


.welcome-date {
    color: #8490a3;
    font-size: 11px;
    font-weight: 700;
}


/* Join Quiz */

.join-quiz-panel {
    min-height: 145px;
    box-sizing: border-box;

    padding: 25px 28px;
    margin-bottom: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #1769e0,
            #1550b9
        );

    color: #ffffff;

    box-shadow:
        0 10px 28px rgba(23,105,224,.18);
}


.student-label.light {
    color: rgba(255,255,255,.68);
}


.join-quiz-panel h2 {
    margin: 0 0 7px;

    font-size: 23px;
}


.join-quiz-panel p {
    margin: 0;

    max-width: 580px;

    color: rgba(255,255,255,.78);

    font-size: 12px;
    line-height: 1.6;
}


.join-quiz-btn {
    flex-shrink: 0;

    padding: 12px 20px;

    border-radius: 10px;

    background: #ffffff;
    color: #1558bd;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: .2s ease;
}


.join-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}


/* Sections */

.student-section {
    margin-bottom: 28px;
}


.student-section-title {
    margin-bottom: 13px;
}


.student-section-title h2 {
    margin: 0;

    font-size: 19px;
    color: #1b2942;
}


/* Tools */

.student-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}


.student-tool {
    min-height: 82px;
    box-sizing: border-box;

    padding: 16px 17px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: #ffffff;

    border: 1px solid #e5eaf2;
    border-radius: 13px;

    text-decoration: none;
    color: inherit;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.student-tool:hover {
    transform: translateY(-2px);

    border-color: #cbdaf1;

    box-shadow:
        0 9px 22px rgba(33,52,84,.07);
}


.tool-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 19px;
}


.results-icon {
    background: #eaf2ff;
}


.leaderboard-icon {
    background: #fff5d9;
}


.student-tool h3 {
    margin: 0 0 4px;

    font-size: 14px;
    color: #1b2942;
}


.student-tool p {
    margin: 0;

    color: #7b879a;

    font-size: 11px;
}


.tool-arrow {
    margin-left: auto;

    color: #9aa6b8;

    font-size: 19px;
}


/* Steps */

.student-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}


.student-step {
    padding: 18px;

    display: flex;
    align-items: flex-start;
    gap: 13px;

    background: #ffffff;

    border: 1px solid #e5eaf2;
    border-radius: 13px;
}


.student-step > span {
    flex-shrink: 0;

    color: #1769e0;

    font-size: 11px;
    font-weight: 900;
}


.student-step h3 {
    margin: 0 0 5px;

    font-size: 13px;
    color: #1b2942;
}


.student-step p {
    margin: 0;

    color: #7b879a;

    font-size: 11px;
    line-height: 1.55;
}


/* Mobile */

@media (max-width: 700px) {

    .student-header {
        height: auto;
        min-height: 62px;

        padding: 11px 15px;
    }


    .student-main {
        width: min(100% - 28px, 600px);
        padding-top: 18px;
    }


    .student-welcome-bar {
        padding: 20px;
    }


    .student-welcome-bar h1 {
        font-size: 23px;
    }


    .welcome-date {
        display: none;
    }


    .join-quiz-panel {
        flex-direction: column;
        align-items: flex-start;

        padding: 23px;
    }


    .join-quiz-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }


    .student-tools {
        grid-template-columns: 1fr;
    }


    .student-steps {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   ADMIN DASHBOARD
========================================================= */

.admin-dashboard-page{
    margin:0;
    min-height:100vh;
    background:#f5f7fb;
    display:flex;
    font-family:Arial, Helvetica, sans-serif;
}

/* Sidebar */

.admin-sidebar{
    width:270px;
    min-height:100vh;
    background:#0f172a;
    color:#fff;

    display:flex;
    flex-direction:column;

    position:fixed;
    left:0;
    top:0;
}

.admin-brand{
    display:flex;
    align-items:center;
    gap:12px;

    padding:25px 20px;

    border-bottom:1px solid rgba(255,255,255,.08);
}

.admin-brand-icon{
    width:48px;
    height:48px;

    border-radius:12px;

    background:#2563eb;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:800;
}

.admin-brand-name{
    font-size:17px;
    font-weight:700;
}

.admin-brand-subtitle{
    font-size:12px;
    opacity:.7;
}

.admin-navigation{
    padding:18px 12px;
}

.admin-nav-link{
    display:flex;
    align-items:center;
    gap:12px;

    padding:12px 15px;
    margin-bottom:8px;

    border-radius:10px;

    color:#cbd5e1;
    text-decoration:none;

    transition:.2s;
}

.admin-nav-link:hover{
    background:#1e293b;
    color:#fff;
}

.admin-nav-link.active{
    background:#2563eb;
    color:#fff;
}

.admin-nav-icon{
    width:24px;
    text-align:center;
}

.admin-sidebar-bottom{
    margin-top:auto;
    padding:20px;
}

.admin-logout-button{
    width:100%;

    border:none;
    border-radius:10px;

    padding:12px;

    background:#dc2626;
    color:#fff;

    cursor:pointer;
    font-weight:700;
}

/* Main */

.admin-dashboard-main{
    margin-left:270px;
    flex:1;
    padding:30px;
}

.admin-dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    margin-bottom:30px;
}

.admin-eyebrow{
    margin:0;
    font-size:11px;
    letter-spacing:1px;
    color:#2563eb;
    font-weight:700;
}

.admin-dashboard-header h1{
    margin:8px 0;
    font-size:36px;
}

.admin-header-description{
    color:#64748b;
}

.admin-header-status{
    background:#fff;
    border:1px solid #e2e8f0;

    padding:10px 16px;
    border-radius:30px;

    display:flex;
    align-items:center;
    gap:10px;
}

.admin-live-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
}

/* Statistics */

.admin-stat-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;

    margin-bottom:35px;
}

.admin-stat-card{
    background:#fff;
    border-radius:16px;
    padding:22px;

    display:flex;
    align-items:center;
    gap:16px;

    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.admin-stat-icon{
    width:55px;
    height:55px;

    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;
}

.admin-stat-blue .admin-stat-icon{
    background:#dbeafe;
}

.admin-stat-purple .admin-stat-icon{
    background:#ede9fe;
}

.admin-stat-green .admin-stat-icon{
    background:#dcfce7;
}

.admin-stat-orange .admin-stat-icon{
    background:#ffedd5;
}

.admin-stat-content p{
    margin:0;
    color:#64748b;
    font-size:13px;
}

.admin-stat-content h2{
    margin:6px 0 0;
    font-size:28px;
}

/* Section */

.admin-section{
    margin-bottom:35px;
}

.admin-section-kicker{
    color:#2563eb;
    font-size:12px;
    font-weight:700;
    margin:0;
}

.admin-section-heading h2{
    margin:8px 0 0;
}

/* Actions */

.admin-action-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;

    margin-top:20px;
}

.admin-action-card{
    background:#fff;

    border-radius:16px;
    padding:20px;

    text-decoration:none;
    color:inherit;

    display:flex;
    gap:15px;
    align-items:flex-start;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

    transition:.2s;
}

.admin-action-card:hover{
    transform:translateY(-3px);
}

.admin-action-icon{
    width:52px;
    height:52px;

    border-radius:12px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;
}

.admin-action-icon.blue{background:#dbeafe;}
.admin-action-icon.purple{background:#ede9fe;}
.admin-action-icon.green{background:#dcfce7;}
.admin-action-icon.orange{background:#ffedd5;}
.admin-action-icon.cyan{background:#cffafe;}
.admin-action-icon.red{background:#fee2e2;}

.admin-action-card h3{
    margin:0 0 8px;
}

.admin-action-card p{
    margin:0;
    color:#64748b;
    font-size:13px;
}

.admin-action-arrow{
    margin-left:auto;
    font-size:22px;
}

/* Welcome Panel */

.admin-welcome-panel{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    border-radius:18px;
    padding:30px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.admin-welcome-panel h2{
    margin:8px 0;
}

.admin-welcome-panel span{
    color:#bfdbfe;
}

.admin-welcome-badge{
    background:rgba(255,255,255,.12);
    border-radius:14px;
    padding:16px 20px;

    display:flex;
    align-items:center;
    gap:12px;
}

/* Mobile */

@media(max-width:992px){

    .admin-stat-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .admin-action-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .admin-dashboard-page{
        display:block;
    }

    .admin-sidebar{
        position:relative;
        width:100%;
        min-height:auto;
    }

    .admin-dashboard-main{
        margin-left:0;
        padding:20px;
    }

    .admin-dashboard-header{
        flex-direction:column;
        gap:15px;
    }

    .admin-stat-grid{
        grid-template-columns:1fr;
    }

    .admin-welcome-panel{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }
}

/* =====================================================
   LIVE QUIZ - PROFESSIONAL QUESTION UI
===================================================== */

.quiz-card {

    max-width: 850px;

    margin: 25px auto;

    padding: 30px;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.12);

}


/* =====================================================
   TOP BAR
===================================================== */

.quiz-top-bar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding-bottom: 20px;

    border-bottom: 2px solid #eef2f7;

}


/* QUESTION NUMBER */

.question-badge {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 17px;

    font-weight: 700;

    color: #1e3a5f;

}


.question-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #eaf4ff;

    font-size: 20px;

}


/* =====================================================
   TIMER
===================================================== */

.timer-box {

    min-width: 110px;

    padding: 10px 16px;

    text-align: center;

    border-radius: 14px;

    background: #f5f9ff;

    border: 1px solid #dbeafe;

}


.timer-label {

    display: block;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #64748b;

    margin-bottom: 3px;

}


#timer {

    display: block;

    font-size: 25px;

    font-weight: 800;

    color: #dc2626;

    font-variant-numeric: tabular-nums;

}


/* =====================================================
   QUESTION AREA
===================================================== */

.question-container {

    margin-top: 30px;

    padding: 25px;

    border-radius: 18px;

    background: #f8fbff;

    border-left: 5px solid #2196f3;

}


.question-label {

    display: inline-block;

    margin-bottom: 12px;

    padding: 5px 12px;

    border-radius: 20px;

    background: #e3f2fd;

    color: #1976d2;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

}


#question {

    margin: 0;

    color: #1e293b;

    font-size: 22px;

    line-height: 1.6;

    font-weight: 650;

}


/* =====================================================
   OPTIONS
===================================================== */

.options-container {

    margin-top: 25px;

}


/*
Your JavaScript creates:

<label class="option">
    <input type="radio">
    A. Option
</label>
*/

.option {

    display: flex;

    align-items: center;

    width: 100%;

    box-sizing: border-box;

    padding: 18px 20px;

    margin: 14px 0;

    border-radius: 14px;

    background: #ffffff;

    border: 2px solid #e2e8f0;

    cursor: pointer;

    font-size: 17px;

    line-height: 1.5;

    color: #334155;

    font-weight: 500;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;

}


.option:hover {

    transform: translateY(-2px);

    border-color: #2196f3;

    background: #f5faff;

    box-shadow:
        0 6px 18px rgba(33, 150, 243, 0.12);

}


/* RADIO BUTTON */

.option input[type="radio"] {

    min-width: 20px;

    width: 20px;

    height: 20px;

    margin-right: 14px;

    cursor: pointer;

    accent-color: #2196f3;

}


/* SELECTED OPTION */

.option:has(input[type="radio"]:checked) {

    background: #eaf6ff;

    border-color: #2196f3;

    color: #0f4c81;

    font-weight: 700;

    box-shadow:
        0 5px 18px rgba(33, 150, 243, 0.18);

}


/* =====================================================
   BUTTON AREA
===================================================== */

.button-group {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 30px;

}


.submit-test-btn {

    padding: 14px 25px;

    border: none;

    border-radius: 12px;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    background: #16a34a;

    color: white;

    box-shadow:
        0 6px 16px rgba(22, 163, 74, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.submit-test-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(22, 163, 74, 0.32);

}


/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    .quiz-card {

        margin: 15px 10px;

        padding: 18px;

        border-radius: 18px;

    }


    .quiz-top-bar {

        align-items: flex-start;

    }


    .question-badge {

        font-size: 14px;

    }


    .timer-box {

        min-width: 90px;

        padding: 8px 10px;

    }


    #timer {

        font-size: 21px;

    }


    .question-container {

        margin-top: 20px;

        padding: 18px;

    }


    #question {

        font-size: 18px;

        line-height: 1.55;

    }


    .option {

        padding: 15px;

        font-size: 15px;

    }


    .button-group {

        margin-top: 22px;

    }


    .submit-test-btn {

        width: 100%;

    }

}

/* =========================================
   LANGUAGE SWITCHER
   POSITION REMAINS EXACTLY THE SAME
========================================= */

.language-switcher {
    display: flex;
    gap: 8px;
}


/* BOTH BUTTONS */

.language-switcher button {

    padding: 10px 18px;

    border: 2px solid #2196f3;

    border-radius: 10px;

    background: white;

    color: #2196f3;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;

    box-shadow:
        0 3px 10px rgba(33, 150, 243, 0.18);
}


/* HOVER EFFECT */

.language-switcher button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(33, 150, 243, 0.30);

}


/* ACTIVE / SELECTED LANGUAGE */

.language-switcher button.active {

    background: linear-gradient(
        135deg,
        #2196f3,
        #1565c0
    );

    color: white;

    border-color: #1565c0;

    box-shadow:
        0 5px 18px rgba(33, 150, 243, 0.45);

}

/* =====================================================
   SCHEDULED QUIZ WAITING SCREEN
===================================================== */

.quiz-waiting-screen {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    min-height: 100vh;

    z-index: 9998;

    overflow: hidden;

}


.waiting-background {

    width: 100%;
    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 20px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #071a3d,
            #0b4f8a,
            #0d8ecf,
            #071a3d
        );

    background-size: 300% 300%;

    animation:
        waitingBackgroundMove
        8s ease infinite;

}


@keyframes waitingBackgroundMove {

    0% {

        background-position:
            0% 50%;

    }

    50% {

        background-position:
            100% 50%;

    }

    100% {

        background-position:
            0% 50%;

    }

}


.waiting-card {

    width: 100%;

    max-width: 550px;

    padding:
        45px 30px;

    box-sizing:
        border-box;

    text-align:
        center;

    border-radius:
        28px;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.25
        );

    backdrop-filter:
        blur(15px);

    box-shadow:

        0 0 30px
        rgba(
            0,
            195,
            255,
            0.5
        ),

        0 0 80px
        rgba(
            0,
            0,
            0,
            0.4
        );

    animation:
        waitingCardAppear
        0.8s ease;

}


@keyframes waitingCardAppear {

    from {

        opacity: 0;

        transform:
            translateY(40px)
            scale(0.95);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =====================================================
   ROCKET ICON
===================================================== */

.waiting-icon {

    font-size:
        65px;

    margin-bottom:
        15px;

    animation:
        rocketFloat
        2s ease-in-out infinite;

}


@keyframes rocketFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-15px)
            rotate(5deg);

    }

}


/* =====================================================
   LIVE BADGE
===================================================== */

.waiting-live-badge {

    display:
        inline-block;

    padding:
        8px 22px;

    margin-bottom:
        20px;

    border-radius:
        50px;

    font-size:
        13px;

    font-weight:
        bold;

    letter-spacing:
        2px;

    color:
        white;

    background:
        #ff1744;

    box-shadow:

        0 0 15px
        rgba(
            255,
            23,
            68,
            0.8
        );

    animation:
        livePulse
        1.2s infinite;

}


@keyframes livePulse {

    0% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(1.08);

    }

    100% {

        transform:
            scale(1);

    }

}


/* =====================================================
   TEXT
===================================================== */

.waiting-title {

    margin:
        10px 0;

    font-size:
        42px;

    color:
        white;

}


.waiting-text {

    color:
        rgba(
            255,
            255,
            255,
            0.85
        );

    font-size:
        18px;

}


/* =====================================================
   MAIN COUNTDOWN
===================================================== */

.start-countdown {

    margin:
        30px 0;

    font-size:
        clamp(
            48px,
            10vw,
            80px
        );

    font-weight:
        800;

    letter-spacing:
        4px;

    color:
        white;

    text-shadow:

        0 0 10px
        #00d9ff,

        0 0 25px
        #00d9ff,

        0 0 50px
        #008cff;

    animation:
        countdownGlow
        1.5s infinite;

}


@keyframes countdownGlow {

    0% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(1.04);

    }

    100% {

        transform:
            scale(1);

    }

}


/* =====================================================
   FINAL 3 - 2 - 1
===================================================== */

.final-countdown {

    margin:
        20px 0;

    font-size:
        clamp(
            100px,
            30vw,
            180px
        );

    font-weight:
        900;

    color:
        white;

    text-shadow:

        0 0 20px
        #ffeb3b,

        0 0 50px
        #ff9800,

        0 0 100px
        #ff5722;

    animation:
        finalCountdownPop
        0.8s ease;

}


@keyframes finalCountdownPop {

    0% {

        opacity:
            0;

        transform:
            scale(0.2)
            rotate(-15deg);

    }

    70% {

        opacity:
            1;

        transform:
            scale(1.2)
            rotate(5deg);

    }

    100% {

        transform:
            scale(1)
            rotate(0);

    }

}


/* =====================================================
   MESSAGE
===================================================== */

.waiting-message {

    margin-top:
        25px;

    font-size:
        16px;

    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

}


/* =====================================================
   LOADING DOTS
===================================================== */

.waiting-loader {

    margin-top:
        25px;

    display:
        flex;

    justify-content:
        center;

    gap:
        10px;

}


.waiting-loader span {

    width:
        12px;

    height:
        12px;

    border-radius:
        50%;

    background:
        white;

    animation:
        waitingDot
        1.4s infinite ease-in-out;

}


.waiting-loader span:nth-child(2) {

    animation-delay:
        0.2s;

}


.waiting-loader span:nth-child(3) {

    animation-delay:
        0.4s;

}


@keyframes waitingDot {

    0%,
    60%,
    100% {

        transform:
            translateY(0);

        opacity:
            0.4;

    }

    30% {

        transform:
            translateY(-12px);

        opacity:
            1;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (
    max-width: 600px
) {

    .waiting-card {

        padding:
            35px 20px;

        border-radius:
            22px;

    }


    .waiting-title {

        font-size:
            34px;

    }


    .waiting-text {

        font-size:
            16px;

    }


    .waiting-icon {

        font-size:
            55px;

    }

}

/* =========================================================
   NEET-JEE ADDA BRAND LOGO - SAFE SIZE CONTROL
   Visual-only fix. Does not affect quiz/functionality.
========================================================= */


/* -----------------------------
   STUDENT DASHBOARD LOGO
----------------------------- */

.student-logo {
    width: 39px;
    height: 39px;

    min-width: 39px;
    min-height: 39px;

    max-width: 39px;
    max-height: 39px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 39px;
}


/* Real image inside student logo */

.student-logo img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    margin: 0;
    padding: 0;

    border: 0;
}


/* -----------------------------
   ADMIN DASHBOARD LOGO
----------------------------- */

.admin-brand-icon {
    width: 48px;
    height: 48px;

    min-width: 48px;
    min-height: 48px;

    max-width: 48px;
    max-height: 48px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 48px;
}


/* Real image inside admin logo */

.admin-brand-icon img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    margin: 0;
    padding: 0;

    border: 0;
}


/* -----------------------------
   SAFE LOGIN/PAGE LOGO
----------------------------- */

.login-brand-logo {
    display: block;

    width: 120px;
    height: 120px;

    max-width: 120px;
    max-height: 120px;

    object-fit: contain;

    margin: 0 auto 14px;

    border: 0;
}


/* -----------------------------
   GENERIC BRAND LOGO
----------------------------- */

.brand-logo {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    margin: 0;
    padding: 0;

    border: 0;
}

/* =====================================================
   TOP 3 STUDENT PROFILE PHOTOS
===================================================== */

.podium-photo {
    overflow: hidden;
}

.podium-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}

.login-brand-logo {
    overflow: hidden;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 5px;

    background: #ffffff;

    border: 1px solid #dce7f3;

    border-radius: 22px;

    box-shadow:
        0 12px 28px
        rgba(25, 118, 210, 0.14);
}

.login-brand-logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 16px;
}