/* Live Quiz Skin */
:root {
  --bg: #0f1724;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.04);
  --text: #e6eef8;
  --text-muted: #9fb0c8;
  --accent: #7dd3fc;
  --success: #16a34a;
  --error: #dc2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Roboto, 'Segoe UI'; }

/* Host */
.host-container, .student-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { margin-bottom: 20px; }
.header h1 { font-size: 1.8rem; color: var(--accent); margin-bottom: 10px; }
.session-info { display: flex; gap: 20px; font-size: 0.95rem; }
.session-info div { color: var(--text-muted); }
.session-info strong { color: var(--accent); }

.panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 15px; color: var(--accent); }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input { width: 100%; padding: 10px; background: rgba(0,0,0,0.3); border: 1px solid var(--card-border); border-radius: 6px; color: var(--text); font-size: 1rem; }
.form-group input::placeholder { color: #6b7280; }

button { background: #071024; color: var(--accent); border: 1px solid var(--card-border); padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
button:hover:not(:disabled) { border-color: var(--accent); background: rgba(125,211,252,0.05); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Question display */
.question-display { margin-bottom: 20px; }
.question-display h2 { color: var(--accent); }
.question-display p { color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

/* Response chart (host) */
.chart-container { margin: 20px 0; }
.chart { display: flex; flex-direction: column; gap: 12px; }
.bar { display: flex; flex-direction: column; gap: 4px; }
.bar-label { font-size: 0.9rem; color: var(--text); }
.bar-bg { background: rgba(0,0,0,0.3); height: 24px; border-radius: 4px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, #7dd3fc, #0ea5e9); height: 100%; transition: width 0.3s; }
.bar-stat { font-size: 0.8rem; color: var(--text-muted); }

/* Controls & participants */
.controls { display: flex; gap: 10px; margin: 20px 0; }
.participants-list { margin-top: 20px; max-height: 300px; overflow-y: auto; }
.participants-list h3 { color: var(--accent); margin-bottom: 10px; }
.participant-item { padding: 8px; background: rgba(0,0,0,0.2); border-radius: 4px; margin-bottom: 4px; font-size: 0.9rem; }

/* Student options */
.student-options { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.option-btn { text-align: left; background: #0b1730; padding: 15px; }
.option-btn.selected { background: rgba(125,211,252,0.15); border-color: var(--accent); }
.student-header { margin-bottom: 15px; }
.student-header h2 { color: var(--accent); }
.student-header p { color: var(--text-muted); margin-top: 10px; }
.student-footer { display: flex; gap: 10px; margin-top: 20px; }
.feedback { margin: 10px 0; min-height: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .host-container, .student-container { padding: 10px; }
  .session-info { flex-direction: column; gap: 8px; }
  .controls { flex-direction: column; }
}

.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
