.quiz-card{transition:all .2s ease}.quiz-card:hover{transform:translateY(-2px)}#quiz-container{min-height:400px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:2rem;position:relative}.dark #quiz-container{background:#1f2937;border-color:#374151}.question-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem}.dark .question-card{background:#111827;border-color:#374151}.question-title{font-size:1.25rem;font-weight:700;color:#1f2937;margin-bottom:1.5rem;line-height:1.6}.dark .question-title{color:#f9fafb}.option-card{background:#fff;border:2px solid #e5e7eb;border-radius:12px;padding:1rem 1.25rem;margin-bottom:.75rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.75rem}.option-card:hover{border-color:#3b82f6;background:#eff6ff}.option-card.selected{background:#3b82f6;border-color:#3b82f6;color:#fff}.dark .option-card{background:#1f2937;border-color:#374151}.dark .option-card:hover{border-color:#3b82f6;background:#1e3a5f}.dark .option-card.selected{background:#2563eb;border-color:#2563eb}.option-card input[type=radio]{width:20px;height:20px;cursor:pointer;accent-color:#3b82f6;flex-shrink:0}.option-card.selected input[type=radio]{accent-color:white}.option-content{flex:1;color:#1f2937;font-size:1rem;line-height:1.6}.dark .option-content{color:#f3f4f6}.option-card.selected .option-content{color:#fff;font-weight:500}#timer-bar{transition:width 1s linear;background:#3b82f6}#timer-display{font-variant-numeric:tabular-nums;font-size:2rem;font-weight:800;color:#3b82f6}.dark #timer-display{color:#60a5fa}#quiz-navigation button{border-radius:10px;font-weight:600;padding:.75rem 1.5rem;transition:all .2s ease;border:1px solid #e5e7eb}#quiz-navigation button:active{transform:scale(.97)}#btn-next,#btn-next.finish-btn{background:#3b82f6;border-color:#3b82f6;color:#fff}#btn-next:hover,#btn-next.finish-btn:hover{background:#2563eb;border-color:#2563eb}#btn-next.finish-btn{background:#10b981;border-color:#10b981}#btn-next.finish-btn:hover{background:#059669;border-color:#059669}#personal-info-modal{animation:fadeIn .2s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#personal-info-modal>div{background:#fff;border-radius:16px;border:1px solid #e5e7eb;animation:slideUp .2s ease-out}.dark #personal-info-modal>div{background:#1f2937;border-color:#374151}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}#personal-info-form input{border-radius:8px;border:1px solid #d1d5db;transition:all .2s ease;padding:.75rem 1rem}#personal-info-form input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}#personal-info-form button{border-radius:8px;font-weight:600;padding:.625rem 1.25rem;transition:all .2s ease}#personal-info-form button[type=submit]{background:#3b82f6;border:1px solid #3b82f6;color:#fff}#personal-info-form button[type=submit]:hover{background:#2563eb}#personal-info-form button[type=button]{border:1px solid #d1d5db}#personal-info-form button[type=button]:hover{background:#f3f4f6}.dark #personal-info-form button[type=button]:hover{background:#374151}.quiz-result-container{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:2rem}.dark .quiz-result-container{background:#1f2937;border-color:#374151}.result-header{text-align:center;margin-bottom:2rem;padding:2rem 0}.result-header-content{display:flex;align-items:center;justify-content:center;gap:2.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.result-score-circle{width:160px;height:160px;border-radius:50%;background:#f3f4f6;border:3px solid #e5e7eb;display:flex;align-items:center;justify-content:center;flex-shrink:0}.dark .result-score-circle{background:#111827;border-color:#374151}.result-percentage-text{font-size:3.5rem;font-weight:800;color:#3b82f6}.dark .result-percentage-text{color:#60a5fa}.result-title{font-size:1.75rem;font-weight:700;color:#1f2937;margin-bottom:.75rem}.dark .result-title{color:#f9fafb}.result-header-right{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.75rem;text-align:left}.result-level-badge{margin:0}.result-level-badge span{display:inline-block;padding:.5rem 1.25rem;background:#eff6ff;color:#3b82f6;border-radius:8px;font-size:1rem;font-weight:700;border:1px solid #bfdbfe}.dark .result-level-badge span{background:#1e3a5f;color:#60a5fa;border-color:#1e40af}.result-encouragement{margin-top:.5rem}.encouragement-text{font-size:1.25rem;font-weight:700;color:#1f2937;margin:0}.dark .encouragement-text{color:#f9fafb}.result-subtitle{color:#6b7280;font-size:1rem;margin-top:.5rem}.dark .result-subtitle{color:#9ca3af}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}.stat-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:1.25rem;text-align:center;transition:transform .2s ease}.stat-card:hover{transform:translateY(-2px)}.dark .stat-card{background:#111827;border-color:#374151}.stat-value{font-size:2rem;font-weight:800;color:#3b82f6;margin-bottom:.5rem}.dark .stat-value{color:#60a5fa}.stat-label{font-size:.875rem;color:#6b7280;font-weight:600}.dark .stat-label{color:#9ca3af}.result-submitted-time{text-align:center;color:#6b7280;font-size:.875rem;margin-bottom:2rem}.dark .result-submitted-time{color:#9ca3af}.result-breakdown{margin-top:2rem;padding-top:2rem;border-top:1px solid #e5e7eb}.dark .result-breakdown{border-top-color:#374151}.breakdown-title{font-size:1.25rem;font-weight:700;color:#1f2937;margin-bottom:1.5rem}.dark .breakdown-title{color:#f9fafb}.breakdown-list{display:flex;flex-direction:column;gap:1rem}.question-result-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:1.25rem;transition:all .2s ease}.question-result-card:hover{transform:translateY(-1px)}.question-result-card.correct{border-color:#86efac}.question-result-card.incorrect{border-color:#fca5a5}.dark .question-result-card{background:#111827;border-color:#374151}.dark .question-result-card.correct{border-color:#065f46}.dark .question-result-card.incorrect{border-color:#991b1b}.question-result-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.question-number{width:36px;height:36px;border-radius:50%;background:#3b82f6;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem}.question-status-badge{padding:.375rem .75rem;border-radius:6px;font-size:.8125rem;font-weight:600}.question-status-badge.correct{background:#dcfce7;color:#059669}.question-status-badge.incorrect{background:#fee2e2;color:#dc2626}.dark .question-status-badge.correct{background:#10b98126;color:#10b981}.dark .question-status-badge.incorrect{background:#ef444426;color:#f87171}.question-content{margin-bottom:1.25rem}.question-text{font-size:1rem;font-weight:600;color:#1f2937;margin-bottom:.75rem;line-height:1.6}.dark .question-text{color:#f9fafb}.question-image{max-width:100%;border-radius:8px;margin-top:.75rem}.correct-answer-section{padding-top:1.25rem;border-top:1px solid #e5e7eb}.dark .correct-answer-section{border-top-color:#374151}.correct-answer-label{font-size:.875rem;color:#059669;font-weight:600;margin-bottom:.5rem;display:flex;align-items:center}.dark .correct-answer-label{color:#10b981}.correct-answer-box{padding:.75rem 1rem;background:#dcfce7;border-radius:8px;border:1px solid #86efac}.dark .correct-answer-box{background:#10b9811a;border-color:#10b9814d}.correct-answer-text{color:#1f2937;font-weight:500}.dark .correct-answer-text{color:#f9fafb}.no-answer-text{color:#6b7280;font-style:italic}.dark .no-answer-text{color:#9ca3af}.correct-answer-image{max-width:100%;border-radius:8px;margin-top:.5rem}.explanation-section{margin-top:.75rem}.explanation-toggle{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:.375rem;padding:.375rem .75rem;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;color:#2563eb;font-weight:500;font-size:.75rem;cursor:pointer;transition:all .2s ease;margin-top:.5rem}.explanation-toggle:hover{background:#dbeafe;border-color:#93c5fd}.dark .explanation-toggle{background:#3b82f61a;border-color:#3b82f64d;color:#60a5fa}.dark .explanation-toggle:hover{background:#3b82f633;border-color:#3b82f680}.explanation-content{margin-top:.5rem;padding:.75rem;background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.dark .explanation-content{background:#3b82f60d;border-color:#3b82f633}.explanation-text{font-size:.875rem;color:#374151;line-height:1.6;white-space:pre-wrap}.dark .explanation-text{color:#d1d5db}.result-back-button{background:#3b82f6;border:1px solid #3b82f6;border-radius:10px}.result-back-button:hover{background:#2563eb}@media(max-width:640px){.result-header-content{flex-direction:column;gap:1.5rem}.result-header-right{align-items:center;text-align:center}.result-stats{grid-template-columns:1fr}.result-score-circle{width:130px;height:130px}.result-percentage-text{font-size:2.5rem}.encouragement-text{font-size:1.125rem}.quiz-result-container{padding:1.25rem}.question-result-card{padding:1rem}}#question-counter{color:#3b82f6;font-weight:700;font-size:1rem}.dark #question-counter{color:#60a5fa}@media(max-width:640px){#quiz-container{padding:1.25rem;border-radius:12px}.question-card{padding:1.25rem}#quiz-navigation{flex-direction:column;gap:.75rem}#quiz-navigation>div{width:100%;justify-content:center}#quiz-navigation button{width:100%}.quiz-card{padding:1rem}.option-card{padding:.875rem}}#quiz-container img{border-radius:12px;border:1px solid #e5e7eb}.dark #quiz-container img{border-color:#374151}.quiz-loading{display:flex;justify-content:center;align-items:center;min-height:200px}.quiz-loading-spinner{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;padding:3rem}.quiz-result-container .quiz-loading-spinner,#quiz-container .quiz-loading-spinner{min-height:400px}.loading-text{color:#6b7280;font-size:1rem;font-weight:500}.dark .loading-text{color:#9ca3af}.spinner{width:48px;height:48px;border:3px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:1.25rem}.dark .spinner{border-color:#374151;border-top-color:#60a5fa}@keyframes spin{to{transform:rotate(360deg)}}.result-no-details{margin-top:2rem;padding-top:2rem;border-top:1px solid #e5e7eb}.dark .result-no-details{border-top-color:#374151}.no-details-card{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:2.5rem 2rem;text-align:center}.dark .no-details-card{background:#111827;border-color:#374151}.no-details-icon{width:56px;height:56px;color:#9ca3af;margin:0 auto 1.25rem;display:block}.dark .no-details-icon{color:#6b7280}.no-details-text{color:#6b7280;font-size:1rem;font-weight:500}.dark .no-details-text{color:#9ca3af}.option-card:focus-within{outline:2px solid #3b82f6;outline-offset:2px}.quiz-history-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.25rem;transition:all .2s ease}.quiz-history-card:hover{transform:translateY(-1px);border-color:#93c5fd}.dark .quiz-history-card{background:#1f2937;border-color:#374151}.dark .quiz-history-card:hover{border-color:#1e40af}.quiz-history-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;gap:1.5rem}.quiz-history-title-section{flex:1}.quiz-history-title{font-size:1.125rem;font-weight:700;color:#1f2937;margin-bottom:.5rem}.dark .quiz-history-title{color:#f9fafb}.quiz-history-meta{display:flex;gap:1.5rem;flex-wrap:wrap;font-size:.875rem;color:#6b7280}.dark .quiz-history-meta{color:#9ca3af}.quiz-history-date,.quiz-history-class,.quiz-history-duration{display:flex;align-items:center}.quiz-history-class{font-weight:600;color:#0369a1}.dark .quiz-history-class{color:#7dd3fc}.quiz-history-score-section{text-align:right;flex-shrink:0}.quiz-history-percentage{font-size:2rem;font-weight:800;color:#3b82f6;margin-bottom:.25rem}.dark .quiz-history-percentage{color:#60a5fa}.quiz-history-score-detail{font-size:.875rem;color:#6b7280}.dark .quiz-history-score-detail{color:#9ca3af}.quiz-history-footer{padding-top:.75rem;border-top:1px solid #e5e7eb}.dark .quiz-history-footer{border-top-color:#374151}.quiz-history-view-btn{display:inline-flex;align-items:center;padding:.5rem 1rem;background:#3b82f6;color:#fff;border-radius:8px;font-size:.875rem;font-weight:600;transition:all .2s ease}.quiz-history-view-btn:hover{background:#2563eb}.quiz-history-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:2rem;padding:1.25rem}.quiz-history-pagination-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#3b82f6;font-weight:600;transition:all .2s ease;cursor:pointer}.quiz-history-pagination-btn:hover{border-color:#93c5fd;background:#eff6ff}.dark .quiz-history-pagination-btn{background:#1f2937;border-color:#374151;color:#60a5fa}.dark .quiz-history-pagination-btn:hover{border-color:#1e40af;background:#111827}.quiz-history-pagination-info{color:#6b7280;font-weight:600}.dark .quiz-history-pagination-info{color:#9ca3af}@media(max-width:640px){.quiz-history-header{flex-direction:column;gap:1rem}.quiz-history-score-section{text-align:left;width:100%}.quiz-history-meta{flex-direction:column;gap:.5rem}}
