/*
 * style.css - ACC Qurio Light Mode Design System
 * Inspired by the Avinash College of Commerce brand colors (Crimson & Gold).
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #fafafc 0%, #f0f0f4 100%);
    --bg-dark: #e8e8ed;
    --card-bg: #ffffff;
    --card-border: rgba(158, 28, 35, 0.08);
    --card-hover-border: rgba(241, 169, 10, 0.4);
    
    /* Text colors (Dark Charcoal) */
    --text-primary: #1c1112;
    --text-secondary: #4d4042;
    --text-muted: #8c7e80;
    
    /* ACC Brand Theme Colors */
    --primary: #9e1c23; /* ACC Crimson Red */
    --primary-glow: rgba(158, 28, 35, 0.25);
    --secondary: #eaaa00; /* ACC Golden Amber */
    --secondary-glow: rgba(234, 170, 0, 0.25);
    --accent: #ffd700; /* Gold Accent */
    
    /* Quiz Option Colors (Kept bright for student action readability) */
    --color-red: #ff3366;
    --color-red-glow: rgba(255, 51, 102, 0.25);
    --color-blue: #3388ff;
    --color-blue-glow: rgba(51, 136, 255, 0.25);
    --color-yellow: #f5b000;
    --color-yellow-glow: rgba(245, 176, 0, 0.25);
    --color-green: #00b359;
    --color-green-glow: rgba(0, 179, 89, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .outfit-font {
    font-family: 'Montserrat', 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism Container in Light Mode */
.glass-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.06);
    padding: 40px;
    transition: all var(--transition-normal);
}

.glass-container:hover {
    border-color: rgba(241, 169, 10, 0.25);
    box-shadow: 0 12px 36px 0 rgba(158, 28, 35, 0.05);
}

/* Buttons */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #800c11 100%);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: #fafafc;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-red) 0%, #d50000 100%);
    color: white;
    box-shadow: 0 4px 15px var(--color-red-glow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-red-glow);
    filter: brightness(1.1);
}

/* Text Inputs */
.input-field {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-normal);
    outline: none;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    background: #ffffff;
}

/* Navbar / Header */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo span {
    font-size: 22px;
}

/* Landing Page Grid */
.landing-hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.hero-box {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.hero-box h2 {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.hero-box p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.pin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    margin: 20px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.or-divider:not(:empty)::before {
    margin-right: 15px;
}

.or-divider:not(:empty)::after {
    margin-left: 15px;
}

.portal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Quiz Manager Panel */
.quiz-manager-container {
    max-width: 1000px;
    margin: 40px auto;
    width: 90%;
}

.quiz-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.quiz-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.quiz-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 25px;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.quiz-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: 0 8px 24px rgba(158, 28, 35, 0.08);
}

.quiz-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.quiz-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.quiz-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.quiz-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Host Panel - Lobby Screen */
.lobby-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 20px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.pin-display h2 {
    font-size: 18px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pin-display .pin-number {
    font-size: 54px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.lobby-player-count {
    text-align: right;
}

.lobby-player-count .count-number {
    font-size: 54px;
    font-weight: 900;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.lobby-player-grid {
    flex: 1;
    background: #ffffff;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    align-content: start;
    min-height: 300px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.player-bubble {
    background: rgba(158, 28, 35, 0.05);
    border: 1px solid rgba(158, 28, 35, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    animation: zoomIn var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Game Interface (Host Display) */
.game-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.game-title-bar {
    text-align: center;
    margin-bottom: 25px;
}

.game-title-bar h2 {
    font-size: 32px;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.question-status {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.game-main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.timer-circle {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.timer-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.timer-circle circle.bg {
    stroke: rgba(0, 0, 0, 0.05);
}

.timer-circle circle.progress {
    stroke: var(--primary);
    stroke-dasharray: 377;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
}

.answers-submitted-panel {
    text-align: center;
}

.answers-submitted-panel .answers-count {
    font-size: 54px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.answers-submitted-panel p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.question-graphic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.quiz-illustration {
    max-height: 240px;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.host-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.host-option-card {
    border-radius: 16px;
    padding: 24px 30px;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    color: white;
}

.host-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.host-option-card.card-red {
    background-color: var(--color-red);
    box-shadow: 0 8px 20px var(--color-red-glow);
}
.host-option-card.card-blue {
    background-color: var(--color-blue);
    box-shadow: 0 8px 20px var(--color-blue-glow);
}
.host-option-card.card-yellow {
    background-color: var(--color-yellow);
    box-shadow: 0 8px 20px var(--color-yellow-glow);
    color: #121212;
}
.host-option-card.card-green {
    background-color: var(--color-green);
    box-shadow: 0 8px 20px var(--color-green-glow);
}

.option-shape {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.host-option-card.card-yellow .option-shape {
    background: rgba(0, 0, 0, 0.1);
}

/* Question Reveal / Results Chart */
.chart-container {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    min-height: 250px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 15%;
}

.chart-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height var(--transition-slow);
    position: relative;
    min-height: 10px;
}

.chart-bar.bar-red { background: var(--color-red); box-shadow: 0 4px 12px var(--color-red-glow); }
.chart-bar.bar-blue { background: var(--color-blue); box-shadow: 0 4px 12px var(--color-blue-glow); }
.chart-bar.bar-yellow { background: var(--color-yellow); box-shadow: 0 4px 12px var(--color-yellow-glow); }
.chart-bar.bar-green { background: var(--color-green); box-shadow: 0 4px 12px var(--color-green-glow); }

.chart-bar-count {
    position: absolute;
    top: -30px;
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
}

.correct-answer-indicator {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.chart-bar-wrapper.correct-answer .correct-answer-indicator {
    opacity: 1;
    animation: bounce 1s infinite alternate;
}

/* Leaderboard Page */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 30px auto;
    width: 100%;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp var(--transition-normal) forwards;
}

.leaderboard-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.leaderboard-rank {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    width: 30px;
}

.leaderboard-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-points {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.leaderboard-item.rank-1 { border-color: var(--secondary); background: linear-gradient(90deg, rgba(234, 170, 0, 0.08) 0%, #ffffff 100%); }
.leaderboard-item.rank-1 .leaderboard-rank { color: var(--primary); }

/* Student Screen Grid */
.player-grid-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.player-btn {
    border-radius: 20px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-fast);
    position: relative;
    color: white;
}

.player-btn:hover {
    transform: scale(1.02);
}

.player-btn:active {
    transform: scale(0.96);
}

.player-btn.btn-red { background: var(--color-red); box-shadow: 0 8px 20px var(--color-red-glow); }
.player-btn.btn-blue { background: var(--color-blue); box-shadow: 0 8px 20px var(--color-blue-glow); }
.player-btn.btn-yellow { background: var(--color-yellow); box-shadow: 0 8px 20px var(--color-yellow-glow); color: #121212; }
.player-btn.btn-green { background: var(--color-green); box-shadow: 0 8px 20px var(--color-green-glow); }

.player-btn span.player-shape {
    font-size: 70px;
    opacity: 0.85;
}

/* Feedback Screens */
.feedback-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    animation: fadeIn var(--transition-normal);
}

.feedback-screen.correct {
    background: radial-gradient(circle, rgba(0, 179, 89, 0.08) 0%, #ffffff 100%);
    color: var(--text-primary);
}

.feedback-screen.incorrect {
    background: radial-gradient(circle, rgba(255, 51, 102, 0.08) 0%, #ffffff 100%);
    color: var(--text-primary);
}

.feedback-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.feedback-screen.correct .feedback-icon {
    color: var(--color-green);
    text-shadow: 0 0 15px var(--color-green-glow);
}

.feedback-screen.incorrect .feedback-icon {
    color: var(--color-red);
    text-shadow: 0 0 15px var(--color-red-glow);
}

.feedback-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feedback-points {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feedback-streak {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Split-screen Simulator CSS */
.simulator-body {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.simulator-workspace {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    height: calc(100vh - 70px);
}

.simulator-frame-wrapper {
    display: flex;
    flex-direction: column;
    border-right: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
}

.simulator-frame-header {
    background: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.simulator-frame {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
    background: #fafafc;
}

.simulator-bot-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f4f4f7;
    padding: 20px;
    overflow-y: auto;
}

.bot-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.bot-card-info h4 {
    font-size: 16px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.bot-card-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.bot-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.bot-badge.active { background: rgba(0, 179, 89, 0.1); color: var(--color-green); }
.bot-badge.waiting { background: rgba(245, 176, 0, 0.1); color: var(--color-yellow); }
.bot-badge.answered { background: rgba(51, 136, 255, 0.1); color: var(--color-blue); }

/* Creator Layout */
.creator-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    flex: 1;
    min-height: calc(100vh - 74px);
}

.creator-sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-list-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    margin-bottom: 15px;
    max-height: 480px;
}

.sidebar-question-card {
    background: #fbfbfd;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-question-card:hover {
    background: #f4f4f7;
    border-color: rgba(0,0,0,0.1);
}

.sidebar-question-card.active {
    border-color: var(--primary);
    background: rgba(158, 28, 35, 0.05);
}

.sidebar-q-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.sidebar-q-index {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-q-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.sidebar-q-delete:hover {
    color: var(--color-red);
}

.creator-editor-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
}

.question-header-inputs {
    display: flex;
    gap: 20px;
}

.question-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.select-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.select-wrapper::after {
    content: '▼';
    font-size: 12px;
    color: var(--text-secondary);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.creator-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.creator-answer-box {
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.creator-answer-box.border-red { border-color: rgba(255, 51, 102, 0.15); }
.creator-answer-box.border-blue { border-color: rgba(51, 136, 255, 0.15); }
.creator-answer-box.border-yellow { border-color: rgba(245, 176, 0, 0.15); }
.creator-answer-box.border-green { border-color: rgba(0, 179, 89, 0.15); }

.creator-answer-box.correct {
    background: rgba(0, 179, 89, 0.03);
}
.creator-answer-box.correct.border-red { border-color: var(--color-red); box-shadow: 0 0 8px var(--color-red-glow); }
.creator-answer-box.correct.border-blue { border-color: var(--color-blue); box-shadow: 0 0 8px var(--color-blue-glow); }
.creator-answer-box.correct.border-yellow { border-color: var(--color-yellow); box-shadow: 0 0 8px var(--color-yellow-glow); }
.creator-answer-box.correct.border-green { border-color: var(--color-green); box-shadow: 0 0 8px var(--color-green-glow); }

.answer-check-label {
    cursor: pointer;
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-check-label input {
    display: none;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all var(--transition-fast);
}

.answer-check-label input:checked + .custom-checkbox {
    background: var(--color-green);
    border-color: var(--color-green);
    color: white;
}

/* Podium Interface */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px auto;
    max-width: 600px;
    height: 320px;
}

.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    height: 100%;
}

.podium-avatar {
    font-size: 36px;
    margin-bottom: 5px;
    animation: bounce 2s infinite alternate;
}

.podium-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: var(--text-primary);
}

.podium-block {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.podium-1st { height: 180px; background: linear-gradient(180deg, #ffd700 0%, #e1af00 100%); color: #1e1112; font-size: 36px; z-index: 3; }
.podium-2nd { height: 140px; background: linear-gradient(180deg, #d8d8e2 0%, #b0b0c2 100%); color: #1e1112; font-size: 28px; z-index: 2; }
.podium-3rd { height: 100px; background: linear-gradient(180deg, #e3a87c 0%, #b36b39 100%); color: #1e1112; font-size: 24px; z-index: 1; }

.podium-block span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .game-main-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .timer-circle {
        order: -1;
    }
    .answers-submitted-panel {
        margin-bottom: 20px;
    }
    .host-options-grid {
        grid-template-columns: 1fr;
    }
    .creator-layout {
        grid-template-columns: 1fr;
    }
    .creator-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .lobby-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    .lobby-player-count {
        text-align: center;
    }
}

/* Student Avatar Carousel Selector */
.avatar-selector {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0 20px 0;
}

.avatar-selector::-webkit-scrollbar {
    height: 4px;
}

.avatar-selector::-webkit-scrollbar-track {
    background: transparent;
}

.avatar-selector::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.avatar-selector::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.avatar-option {
    font-size: 24px;
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all var(--transition-fast);
}

.avatar-option:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
}

.avatar-option.selected {
    background: rgba(158, 28, 35, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.1);
}

