/* ========================================
   QUIZ MASTER PRO - PREMIUM QUIZ PLATFORM
   Blue Black White Theme
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables - Soft Pastel Yellow Theme */
:root {
   
    /* Brand Colors */
    --primary: #1977cc;
    --primary-light: #e8f3fc;
    --primary-dark: #03455a;

    /* Backgrounds */
    --secondary: #ffffff;
    --secondary-light: #ffffff;
    --dark: #ffffff;
    --dark-2: #ffffff;
    --dark-3: #ffffff;

    /* Text */
    --text-main: #03455a;
    --text-muted: #6b8aa0;

    /* Effects */
    --glass: rgba(25, 119, 204, 0.06);
    --glass-border: #dceaf7;

    /* Status */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradients (converted to blue theme) */
    --gradient-1: linear-gradient(135deg, #f4f9ff 0%, #ffffff 100%);
    --gradient-2: linear-gradient(90deg, #1977cc 0%, #4da3ff 100%);
    --gradient-3: linear-gradient(90deg, #1977cc 0%, #03455a 100%);
    --gradient-4: linear-gradient(135deg, #4da3ff 0%, #1977cc 100%);

    /* Shadows */
    --shadow-glow: 0 10px 25px rgba(22, 146, 255, 0.15);
    --shadow-card: 0 10px 25px rgba(255, 255, 255, 0.06);

}

body, p, span, li, label, input, textarea {
    color: var(--text-main);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-1);
    min-height: 100vh;
    color: #fac400;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before{
    content:'';
    position:fixed;
    inset:0;
    background:
      radial-gradient(circle at 20% 80%, rgba(25,119,204,.06), transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(25,119,204,.04), transparent 50%);
    pointer-events:none;
    z-index:-1;
}

/* Floating Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; width: 8px; height: 8px; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; width: 5px; height: 5px; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; width: 7px; height: 7px; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 6s; width: 4px; height: 4px; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: none;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: #FF9F43;
}

h3 {
    font-size: 1.5rem;
    color: #1F2933;
}

/* Navigation */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: relative;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

.nav-links {
    margin-left: auto;
}

.nav-links a {
    color: #1977cc;
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: 25px;
    text-decoration: none;
    position: relative;
    transition: all .3s ease;
}

/* Hover */
.nav-links a:hover {
    color: #1977cc;
}

/* Active */
.nav-links a.active {
    color: #1977cc;
}

/* Underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,#1977cc,#2563eb);
    transition: .3s ease;
    border-radius: 3px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Logo */
.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.2rem;
    letter-spacing: 5px;
    font-weight: 800;
    background: linear-gradient(90deg, #1977cc, #1977cc, hsl(208, 100%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a:visited{
    color:#1977cc;
}
/* Header */
header {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-out;
}

.back-btn {
    position: absolute;
    left: 40px;
    top: 40px;
    color: #FF9F43;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    color: #FFD84D;
    transform: translateX(-5px);
    text-shadow: none;
}

/* Main Container */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
     display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 60px 100px;
    gap: 80px;
}
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-img img {
        width: 320px;
        margin-top: 30px;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg,#1977cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.hero-title .accent {
    
     background: linear-gradient(90deg, #1977cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.hero-desc {
    font-size: 1.15rem;
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-content {
    flex: 1;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.hero-image {
    width: 380px;        /* force visible */
    height: auto;
    display: block;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}


.hero-img img {
    width: 550px;   /* was ~380px */   
   
}



/* Buttons */
.btn {
    background: var(--gradient-2);
    color: #1F2933;
    border: none;
    border-radius: 16px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.btn{
    background: linear-gradient(90deg,#2563eb,#60a5fa);
    color:white;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(96,165,250,.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}


.btn-secondary {
    background: var(--gradient-3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: var(--gradient-4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn-accent:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

/* Feature Cards */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border: 1px solid #2c94c1;
    border-radius: 24px;
    padding: 40px 30px;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #FFD84D;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    color: #FF9F43;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-desc {
    font-size: 1rem;
    color: #6B7280;
    line-height: 1.6;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    padding: 50px 20px 30px;
    font-size: 3rem;
    animation: fadeInDown 0.8s ease-out;
}
.dashboard-main{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}
.dashboard-main a.btn{
    min-width 560px;
    height:65px;
}
.dashboard-container{
    padding-top: 60px;   /* space from navbar */
}

.dashboard-main{
    padding-top: 40px;
}
.dashboard-sub {
    text-align: center;
    font-size: 1.3rem;
    color: #6B7280;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border: 1px solid #1977cc;
    border-radius: 20px;
    padding: 30px 25px;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}
.dashboard-layout{
    display:grid;
    grid-template-columns: 280px 1fr 420px;
    gap:40px;
    align-items:start;
    
}
.dashboard-layout{
    min-height: 85vh !important;
    padding-top: 60px !important;
}

.dashboard-main{
    margin-top: 60px !important;
}

.dashboard-title{
    margin-bottom: 40px !important;
}

.dashboard-main .btn{
    margin-bottom: 30px !important;
     height:65px;
}

.stats-sidebar{
    width:280px;
    display:flex;
    flex-direction:column;
    gap:25px;
}

.workshops-panel{
    display:flex;
    flex-direction:column;
    gap:20px;
    max-height:75vh;
    overflow-y:auto;
}

.stat-box{
    background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(96,165,250,.12));
    border: 1px solid rgba(96,165,250,.4);
    border-radius: 20px;
    padding: 28px;
    text-align:center;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(37,99,235,.25);
    transition:.3s;
}

.stat-box:hover{
    transform:translateY(-6px);
}

.stat-box h4{
    color:#1977cc;
    font-size:1.1rem;
    margin-bottom:10px;
}

.stat-box span{
    font-size:3rem;
    font-weight:800;
    background:linear-gradient(90deg,#60a5fa,#2563eb);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.dashboard-title{
    margin-top: 40px;
    margin-bottom: 35px;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #FFD84D;
}

.stat-title {
    font-size: 1rem;
    color: #FF9F43;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #6B7280;
}

.dashboard-actions {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.workshop-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    transition: .3s;
}

.workshop-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

.workshop-actions{
    margin-left:auto;
    display:flex;
    flex-direction:column;
    gap:12px;
}


/* Forms */
.form-container {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border: 1px solid #1977cc;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1977cc;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #1977cc;
    background: #ffffff;
    color: #1977cc;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD84D;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: #FFFFFF;
}

.form-group input::placeholder {
    color: #6B7280;
}
.form-card{
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(37,99,235,.35);
}
/* Make typed text visible */
.form-card input,
.form-card textarea,
.form-card input[type="number"]{
    color:#111827 !important;   /* dark readable */
    font-weight:600;
}

/* Soft placeholder */
.form-card input::placeholder{
    color:#9ca3af;
}
.form-card input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 2px rgba(37,99,235,.25);
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #1977cc;
    outline: none;
    margin: 15px 0;
}
input:focus{
    outline:none;
    box-shadow: 0 0 0 2px rgba(96,165,250,.6);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-2);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-webkit-slider-thumb{
    background:#60a5fa;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: #6B7280;
    font-size: 0.9rem;
    margin-top: 5px;
}
input, textarea{
    color:#ffffff;
    background: rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.25);
    font-weight:600;
}

input::placeholder{
    color:#93c5fd;
}

/* Number Input with Buttons */
.number-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.number-input input {
    text-align: center;
    width: 100px;
    font-size: 1.5rem;
    font-weight: 700;
}

.number-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #FFD84D;
    background: transparent;
    color: #FFD84D;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    background: #FFD84D;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Workshop Code Display */
.workshop-code {
    background: #FFFFFF;
    border: 2px solid #FFD84D;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
}

.workshop-code h3 {
    color: #FF9F43;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.code-display {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: #FFD84D;
    text-shadow: none;
    animation: codePulse 1.5s infinite;
}

@keyframes codePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.code-info {
    margin-top: 20px;
    color: #6B7280;
    font-size: 1rem;
}

/* Timer */
.timer {
    font-size: 3rem;
    font-weight: 800;
    color: #FFD84D;
    text-shadow: none;
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.timer.warning {
    color: #F59E0B;
    text-shadow: none;
    animation: timerPulse 0.5s infinite;
}

.timer.danger {
    color: #EF4444;
    text-shadow: none;
    animation: timerPulse 0.3s infinite;
}

/* Question Box */
.question-box {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border: 1px solid #F3E8D9;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease-out;
}

.question-number {
    font-size: 1rem;
    color: #FF9F43;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2933;
    line-height: 1.6;
    margin-bottom: 30px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.option-btn {
    background: #FFFBF5;
    border: 2px solid #F3E8D9;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    color: #1F2933;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-btn:hover {
    background: #FFF1B8;
    border-color: #FFD84D;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.option-btn.selected {
    background: #FFD84D;
    border-color: #FFD84D;
    color: #FFFFFF;
}

.option-btn.correct {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.option-btn.wrong {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.option-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3E8D9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    color: #1F2933;
}

.option-btn.selected .option-letter {
    background: #FFFFFF;
    color: #FFD84D;
}

.option-btn.correct .option-letter {
    background: #FFFFFF;
    color: #1977cc;
}

.option-btn.wrong .option-letter {
    background: #FFFFFF;
    color: #EF4444;
}

/* Anti-Cheat Warning */
.anti-cheat {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #EF4444;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    color: #EF4444;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Score Box */
.score-box {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border: 2px solid #FFD84D;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.score-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, #FFD84D, transparent);
    animation: rotate 4s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.score-value {
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.score-label {
    font-size: 1.2rem;
    color: #FF9F43;
    margin-bottom: 20px;
}

.score-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.score-detail {
    text-align: center;
}

.score-detail-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2933;
}

.score-detail-label {
    font-size: 0.9rem;
    color: #6B7280;
}
label, .form-title{
    color:#1977cc;
}
/* Feedback Form */
.feedback-form {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border: 1px solid #1977cc;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.feedback-form h2 {
    margin-bottom: 30px;
    text-align: center;
}

.rating-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option .rating-box {
    padding: 15px 25px;
    border-radius: 12px;
    background: #FFFBF5;
    border: 2px solid #F3E8D9;
    transition: all 0.3s ease;
    text-align: center;
    color: #1F2933;
}

.rating-option input[type="radio"]:checked + .rating-box {
    background: #FFD84D;
    border-color: #FFD84D;
    color: #FFFFFF;
    transform: scale(1.05);
}

.rating-option:hover .rating-box {
    border-color: #FFD84D;
    transform: scale(1.05);
}

.feedback-form textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #F3E8D9;
    background: #FFFBF5;
    color: #1F2933;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 25px;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #FFD84D;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Leaderboard */
.leaderboard {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    border: 1px solid #F3E8D9;
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    margin: 30px auto;
    animation: fadeInUp 1.2s ease-out;
}

.leaderboard h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #FF9F43;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: #FFFBF5;
    transform: translateX(5px);
}

.leaderboard-item.top-3 {
    background: #FFF1B8;
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: #F3E8D9;
    color: #1F2933;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #111;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #111;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #cd7f32, #e8a95a);
    color: #111;
}

.leaderboard-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1F2933;
}

.leaderboard-score {
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFD84D;
}

/* Loading Animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #F3E8D9;
    border-top-color: #FFD84D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: #6B7280;
    font-size: 1.1rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 2px solid #FFD84D;
    border-radius: 12px;
    padding: 15px 30px;
    color: #1F2933;
    font-weight: 600;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.toast.success {
    border-color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
    font-size: 1rem;
    position: relative;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 900px) {
    .nav {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .score-details {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .form-container {
        padding: 30px 20px;
    }
    
    .question-box {
        padding: 25px 20px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .code-display {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .dashboard-header {
        font-size: 2rem;
    }
    
    .stat-card {
        min-width: 100%;
    }
}

/* Animations for Page Load */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Stagger Children Animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.9s; }
.stagger-children > *:nth-child(10) { animation-delay: 1s; }

/* Fullscreen Mode */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen {
    background: var(--dark);
}

.fullscreen-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 246, 236, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    padding: 40px;
}

.fullscreen-warning h2 {
    color: #EF4444;
    margin-bottom: 20px;
}

.fullscreen-warning p {
    color: #6B7280;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #F3E8D9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Card Hover Effects */
.hover-card {
    transition: all 0.4s ease;
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-primary {
    background: #FFD84D;
    color: #FFFFFF;
}

.badge-success {
    background: #22C55E;
    color: #FFFFFF;
}

.badge-warning {
    background: #F59E0B;
    color: #FFFFFF;
}

.badge-danger {
    background: #EF4444;
    color: #FFFFFF;
}

/* Divider */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #F3E8D9, transparent);
    margin: 30px 0;
}

/* Icon */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 216, 77, 0.1);
    color: #FFD84D;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
/* FORCE input text to be visible */

input,
textarea,
input[type="number"],
input[type="text"]{
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important; /* chrome fix */
    font-weight: 600 !important;
    background: #ffffff !important;
}

/* placeholder softer */
input::placeholder{
    color:#9ca3af !important;
}
.instruction-card{
    background: rgba(255,255,255,.75);
    border-radius:22px;
    padding:40px;
    box-shadow:0 20px 40px rgba(0,0,0,.08);
    border:1px solid rgba(0,0,0,.06);
}

h1,h2{
    color:#065f46;
}

p,li{
    color:#111827;
    line-height:1.7;
}

.btn{
    background: linear-gradient(90deg,#22c55e,#16a34a);
    color:white;
}
/* Fix washed-out feature cards */

.feature-item{
    background: rgba(255,255,255,0.85) !important;
    border:1px solid rgba(0,0,0,0.08) !important;
}

.feature-item h3{
    color:#064e3b !important;
    font-weight:800 !important;
    opacity:1 !important;
}

.feature-item p{
    color:#111827 !important;
    font-weight:600 !important;
    opacity:1 !important;
}

.feature-item-icon{
    color:#16a34a !important;
    opacity:1 !important;
}
.test-container{
    max-width:900px;
    margin:80px auto;
    background:white;
    padding:40px;
    border-radius:22px;
    box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.question-text{
    font-size:1.4rem;
    font-weight:600;
    margin-bottom:25px;
}

.options{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
}

.option{
    padding:14px 18px;
    border-radius:12px;
    border:1px solid #e5e7eb;
    cursor:pointer;
    transition:.2s;
}

.option:hover{
    background:#ecfdf5;
    border-color:#1977cc;
}
/* Question card polish */
.question-card{
    background:white;
    border-radius:22px;
    padding:40px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

/* Option layout */
.option{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 18px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#ffffff;
    transition:.2s;
}

/* Strong readable text */
.option span{
    color:#111827;
    font-size:1.05rem;
    font-weight:500;
}

/* Hover feel */
.option:hover{
    border-color:#1977cc;
    background:#ecfdf5;
}

/* Selected state */
.option input:checked + span{
    color:#065f46;
    font-weight:700;
}
.option input{
    accent-color:#1977cc;
    transform:scale(1.2);
}

.test-header{
    padding:22px 60px;
    font-size:2.25rem;
}

.test-topic{
    font-size:1.8rem;
    font-weight:800;
    color:#5100ff;
    letter-spacing:.5px;
}

.timer-container{
    display:flex;
    align-items:center;
    gap:20px;
}

.progress-text{
    font-size:1.1rem;
    font-weight:600;
    color:#1977cc;
}

.timer{
    font-size:2.2rem;
    font-weight:800;
    color:#facc15;
}
/* === Blue Theme Buttons === */

.hero-btns .btn,
.btn,
button {
    background: #1977cc !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(25,119,204,.25) !important;
}

.hero-btns .btn:hover,
.btn:hover,
button:hover {
    background: #03455a !important;
    transform: translateY(-2px);
}
/* Login page heading */

.login-title,
h1,
.mentor-title {
    color: #1977cc !important;
    font-weight: 700;
}

/* Subtitle text */

.login-subtitle,
.login p,
.subtitle {
    color: #03455a !important;
}
.login-title{
    background:none !important;
    -webkit-text-fill-color:#1977cc !important;
}
.dashboard-container{
  background:#ffffff;
}
/* Fix invisible text after submit */

.form-container,
.dashboard-container,
.question-box,
.score-box,
.stat-card,
.workshop-card {
    color: #03455a !important;
}

/* Paragraphs & spans inside results */
.form-container p,
.form-container span,
.dashboard-container p,
.dashboard-container span,
.question-box p,
.score-box p {
    color: #4a6b80 !important;   /* mild blue-gray */
}

/* Remove any white forced text */
* {
    text-shadow: none !important;
}
/* SAME background for stats + workshop cards */

.stat-card,
.stat-box,
.workshop-card {
    background: rgba(25, 121, 204, 0.332) !important;
    border: 1px solid rgba(25, 121, 204, 0.347) !important;
}

/* Move welcome section slightly up */

.dashboard-main,
.dashboard-title,
.welcome-section {
    margin-top: -20px !important;
}
/* ====== PAGE BASE ====== */
body{
    background:#f7fbff;
    color:#03455a;
    font-family:'Poppins',sans-serif;
    margin:0;
}

/* ====== MAIN GRID ====== */
.instructions-container{
    max-width:1200px;
    margin:20px auto;
    padding:10px 20px;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

/* Full width header */
.instructions-header{
    grid-column:1/-1;
    text-align:center;
    margin-bottom:10px;
}

/* ====== SECTIONS ====== */
.instruction-section{
    background:white;
    border-radius:18px;
    padding:18px 22px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

/* Titles */
.instruction-section h2{
    font-size:1.35rem;
    color:#1977cc;
    margin-bottom:10px;
}

/* List compact */
.instruction-section ol,
.instruction-section ul{
    padding-left:18px;
    margin:0;
}

.instruction-section li{
    margin-bottom:8px;
    line-height:1.5;
}

/* ====== FEATURE GRID ====== */
.feature-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.feature-item{
    background:#f3f8ff;
    border-radius:14px;
    padding:14px;
    text-align:center;
}

.feature-item h3{
    font-size:1rem;
    margin:6px 0;
    color:#03455a;
}

.feature-item p{
    font-size:.9rem;
    margin:0;
}

/* ====== FAQ COMPACT ====== */
.faq-section{
    grid-column:1/-1;
}

/* ====== CTA ====== */
.cta-button{
    grid-column:1/-1;
    text-align:center;
    margin-top:15px;
}

/* ====== REMOVE HUGE SCROLL ====== */
.footer{
    margin-top:20px!important;
}
/* ===== ALIGN ALL 4 INSTRUCTION BLOCKS ===== */

.instructions-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    max-width:1200px;
}

/* keep header full width */
.instructions-header{
    grid-column:1 / -1;
}

/* make all instruction blocks compact */
.instruction-section{
    margin-bottom:0 !important;
    padding:18px 22px !important;
}

/* Anti cheat + Features next to each other */
.instruction-section:nth-child(4),
.instruction-section:nth-child(5){
    align-self:start;
}

/* compact feature cards */
.feature-grid{
    grid-template-columns:repeat(2,1fr) !important;
    gap:12px !important;
}

.feature-item{
    padding:14px !important;
}

/* bring FAQ closer */
.instruction-section:last-child{
    grid-column:1 / -1;
    margin-top:15px !important;
}

/* reduce page bottom space */
.footer{
    margin-top:25px !important;
}
body{
    overflow-x:hidden;
}
.top-grid{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:30px;
    margin-bottom:40px;
}

@media(max-width:1000px){
    .top-grid{ grid-template-columns:1fr; }
}
.features-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;   /* makes both boxes same height */
}

.anti-cheat-box,
.faq-box {
    flex: 1;
    background: #f1f7ff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Card layout inside anti-cheat */
.anti-cards {
    display: flex;
    gap: 20px;
}

.anti-cards .card {
    flex: 1;
}