
.quiz-dashboard { background: #ffffff; border-radius: 24px; padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.03); max-width: 900px; margin: 20px auto; border: 1px solid #f0f2f5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; box-sizing: border-box; width: 100%; }
.quiz-dashboard * { box-sizing: border-box; }
.quiz-filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; background: #f8fafc; padding: 15px; border-radius: 14px; border: 1px solid #e2e8f0; }
.quiz-select { flex: 1; min-width: 200px; padding: 14px 16px; border-radius: 10px; border: 1px solid #cbd5e1; font-size: 15px; background: #fff; color: #334155; font-weight: 500; transition: all 0.2s ease; height: 50px; }
.quiz-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); outline: none; }
.quiz-btn-load { background: #2563eb; color: white; padding: 12px 24px; border-radius: 10px; border: none; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 15px; height: 50px; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.quiz-btn-load:hover { background: #1d4ed8; }
.quiz-card { background: #ffffff; border-radius: 20px; padding: 25px; border: 1px solid #e2e8f0; }
.quiz-progress-container { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; font-size: 14px; font-weight: 600; color: #64748b; }
.quiz-progress-bar { height: 8px; flex-grow: 1; background: #e2e8f0; border-radius: 10px; overflow: hidden; margin: 0; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2563eb, #60a5fa); transition: width 0.4s ease; }
.progress-text { font-variant-numeric: tabular-nums; background: #f1f5f9; padding: 4px 12px; border-radius: 6px; color: #334155; font-size: 13px; white-space: nowrap; }
.quiz-meta-tag { display: inline-block; padding: 5px 12px; background: #eff6ff; color: #2563eb; border-radius: 6px; font-size: 12px; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; }
.q-sec-question { font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1.5; margin-bottom: 25px; word-wrap: break-word; }
.q-grid-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 25px; }
.opt-box { background: #f8fafc; padding: 16px 20px; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 15px; display: flex; align-items: center; gap: 12px; word-wrap: break-word; line-height: 1.4; }
.opt-prefix { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #e2e8f0; color: #475569; font-size: 12px; font-weight: 700; border-radius: 50%; flex-shrink: 0; }
.q-sec-correct { background: #ecfdf5; color: #065f46; padding: 16px 20px; border-radius: 12px; font-weight: 600; border: 1px solid #a7f3d0; display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 15px; line-height: 1.4; }
.q-sec-correct svg { flex-shrink: 0; }
.quiz-controls { margin-top: 30px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.ctrl-btn { padding: 14px 24px; border-radius: 10px; border: none; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; height: 48px; min-width: 140px; text-align: center; }
.btn-play { background: #10b981; color: white; }
.btn-play.playing { background: #ef4444; }
.btn-next { background: #f1f5f9; color: #334155; }
.tts-word { display: inline; transition: background 0.04s linear; border-radius: 4px; padding: 2px 0; }
.tts-highlight { background-color: #fde047 !important; color: #000000 !important; font-weight: 600; }
.tts-loader-wrapper { text-align: center; padding: 40px 20px; color: #64748b; }
.modern-spinner { margin: 0 auto 15px; width: 36px; height: 36px; border: 4px solid #f3f3f3; border-top: 4px solid #2563eb; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.quiz-complete-card { text-align: center; padding: 40px; background: #fafafa; border-radius: 20px; border: 2px dashed #e2e8f0; }
.tts-bg-indicator { font-size: 12px; color: #94a3b8; font-style: italic; margin-top: 10px; text-align: center; }
@media screen and (max-width: 768px) {
    .quiz-dashboard { padding: 15px; border-radius: 16px; margin: 10px auto; }
    .quiz-filter-row { padding: 12px; gap: 10px; }
    .quiz-select, .quiz-btn-load { flex: none; width: 100%; min-width: 100%; }
    .quiz-card { padding: 16px; border-radius: 14px; }
    .quiz-progress-container { margin-bottom: 20px; }
    .q-sec-question { font-size: 18px; margin-bottom: 20px; }
    .q-grid-options { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
    .opt-box { padding: 14px 16px; font-size: 14px; }
    .q-sec-correct { padding: 14px 16px; font-size: 14px; }
    .quiz-controls { gap: 10px; }
    .ctrl-btn { width: 100%; min-width: 100%; }
}
    