/* Extracted styles for GenAI Quiz */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; }
.container { background: #fff; max-width: 800px; margin: 0 auto; border-radius: 16px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
h1 { color: #2d3748; text-align: center; margin-bottom: 10px; font-size: 2.5em; }
.subtitle { text-align: center; color: #718096; margin-bottom: 30px; font-size: 1.1em; }
.mode-selection { display: flex; gap: 20px; justify-content: center; margin-bottom: 30px; }
.mode-card { flex: 1; max-width: 300px; padding: 30px; border: 3px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all 0.3s; text-align: center; }
.mode-card:hover { border-color: #667eea; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2); }
.mode-card h3 { color: #2d3748; margin-bottom: 10px; font-size: 1.5em; }
.mode-card p { color: #718096; font-size: 0.95em; }
.control-panel { background: #f7fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 25px; margin-bottom: 30px; }
.control-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.session-code { background: #667eea; color: white; padding: 10px 20px; border-radius: 8px; font-size: 1.2em; font-weight: bold; letter-spacing: 2px; }
.participants-count { color: #4a5568; font-size: 1.1em; }
.participants-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.participant-badge { background: #e2e8f0; padding: 8px 15px; border-radius: 20px; font-size: 0.9em; color: #2d3748; }
.participant-badge.answered { background: #48bb78; color: white; }
.question-block { background: #f7fafc; border-radius: 12px; padding: 30px; margin-bottom: 25px; }
.question-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: #4a5568; font-weight: 600; }
.question-text { font-size: 1.4em; color: #2d3748; margin-bottom: 25px; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option-label { display: block; background: #fff; border: 2px solid #e2e8f0; border-radius: 10px; padding: 18px 20px; cursor: pointer; transition: all 0.2s; font-size: 1.05em; position: relative; }
.option-label:hover { border-color: #667eea; background: #f7fafc; }
.option-label.selected { background: #667eea; color: white; border-color: #667eea; font-weight: 600; }
.option-label.correct { background: #48bb78; color: white; border-color: #48bb78; }
.option-label.wrong { background: #f56565; color: white; border-color: #f56565; opacity: 0.6; }
.option-votes { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.1); padding: 4px 10px; border-radius: 12px; font-size: 0.85em; font-weight: bold; }
.explanation { background: #edf2f7; border-left: 4px solid #667eea; padding: 20px; border-radius: 8px; margin-top: 25px; font-style: italic; color: #4a5568; line-height: 1.6; }
.explanation strong { color: #2d3748; font-style: normal; }
button { background: #667eea; color: white; border: none; padding: 15px 35px; font-size: 1.1em; border-radius: 10px; cursor: pointer; transition: all 0.2s; font-weight: 600; box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2); }
button:hover:not(:disabled) { background: #5568d3; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3); }
button:disabled { background: #cbd5e0; cursor: not-allowed; transform: none; box-shadow: none; }
button.secondary { background: #718096; }
button.secondary:hover:not(:disabled) { background: #4a5568; }
button.danger { background: #f56565; }
button.danger:hover:not(:disabled) { background: #e53e3e; }
.button-group { display: flex; gap: 15px; justify-content: center; margin-top: 25px; }
input[type="text"], input[type="number"] { width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1.1em; margin-bottom: 15px; transition: border 0.2s; }
input:focus { outline: none; border-color: #667eea; }
.results-container { text-align: center; }
.results-title { font-size: 2em; color: #2d3748; margin-bottom: 30px; }
.chart-container { margin: 30px 0; }
.chart-bar { display: flex; align-items: center; margin-bottom: 15px; gap: 15px; }
.chart-label { min-width: 100px; text-align: right; font-weight: 600; color: #2d3748; }
.chart-bar-fill { height: 35px; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 8px; transition: width 0.8s ease-out; display: flex; align-items: center; padding: 0 15px; color: white; font-weight: 600; min-width: 50px; }
.stats-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.stats-table th { background: #edf2f7; padding: 15px; text-align: left; color: #2d3748; font-weight: 600; }
.stats-table td { padding: 15px; border-bottom: 1px solid #e2e8f0; }
.correct-count { color: #48bb78; font-weight: bold; }
.wrong-count { color: #f56565; font-weight: bold; }
footer { text-align: center; margin-top: 40px; color: #718096; font-size: 0.9em; }
.hidden { display: none; }
.status-indicator { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.status-waiting { background: #ed8936; animation: pulse 2s infinite; }
.status-ready { background: #48bb78; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (max-width: 768px) {
  .container { padding: 20px; }
  h1 { font-size: 1.8em; }
  .mode-selection { flex-direction: column; }
  .mode-card { max-width: 100%; }
  .control-header { flex-direction: column; gap: 15px; text-align: center; }
  .chart-label { min-width: 80px; font-size: 0.9em; }
}

