/* Quiz Live Main Styles */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #64748b;
    --danger: #ef4444;
    --success: #22c55e;
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
}

.quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.quiz-container h2 { color: #fff; margin-bottom: 20px; text-align: center; }

#qrcode {
    background: #fff;
    padding: 15px;
    display: inline-block;
    border-radius: 10px;
    margin: 20px 0;
}

.session-header { text-align: center; margin-bottom: 30px; }

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    display: inline-block;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-secondary { background: var(--secondary); color: white; }

.btn-danger { background: var(--danger); color: white; }

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: left;
    transition: all 0.2s;
}

.option-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }
.option-btn.selected { background: var(--primary); border-color: var(--primary); }
.option-btn.correct { background: var(--success) !important; border-color: var(--success); }
.option-btn.wrong { background: var(--danger) !important; border-color: var(--danger); }

.chart-container {
    margin-top: 30px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    max-height: 400px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

#setup-view select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
    margin-bottom: 20px;
}

#setup-view select option {
    background: #1e293b;
    color: white;
}

/* Site Theme Override */
.quiz-theme-site {
    background: transparent;
    border-color: rgba(0,0,0,0.1);
    color: inherit;
    box-shadow: none;
    backdrop-filter: none;
}

.quiz-theme-site h2, .quiz-theme-site h3 {
    color: inherit;
}

.quiz-theme-site .option-btn {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: inherit;
}

.quiz-theme-site #setup-view select {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.quiz-theme-site #setup-view select option {
    background: #fff;
    color: #333;
}

.quiz-theme-site .chart-container {
    background: rgba(0,0,0,0.05);
}

.stats-mini {
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .options-grid { grid-template-columns: 1fr; }
    .controls { flex-direction: column; }
}
