*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:Segoe UI,system-ui,sans-serif;background:#f3f4f6;color:#1f2937;line-height:1.6}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}.app-layout{min-height:100vh;display:flex;flex-direction:column}.app-main{flex:1;max-width:900px;margin:2rem auto;padding:0 1rem;width:100%}.navbar{background:#1e3a5f;color:#fff;padding:0 2rem;height:60px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.navbar-brand a{color:#fff;font-size:1.2rem;font-weight:700}.navbar-menu{display:flex;align-items:center;gap:1.5rem}.navbar-menu a{color:#ffffffd9;font-size:.95rem}.navbar-menu a:hover{color:#fff;text-decoration:none}.navbar-user{color:#fff9;font-size:.9rem}.btn-logout{background:#ffffff26;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.3rem .8rem;border-radius:4px;cursor:pointer;font-size:.9rem}.btn-logout:hover{background:#ffffff40}.btn-primary{background:#2563eb;color:#fff;border:none;padding:.6rem 1.4rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:600;transition:background .2s}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-primary.btn-large{padding:.9rem 2rem;font-size:1.1rem}.btn-secondary{background:#fff;color:#374151;border:1px solid #d1d5db;padding:.6rem 1.4rem;border-radius:6px;cursor:pointer;font-size:1rem;transition:background .2s}.btn-secondary:hover:not(:disabled){background:#f9fafb}.btn-secondary:disabled{opacity:.6;cursor:not-allowed}.btn-approve{background:#10b981;color:#fff;border:none;padding:.5rem 1.2rem;border-radius:6px;cursor:pointer;font-weight:600}.btn-approve:hover:not(:disabled){background:#059669}.btn-reject{background:#ef4444;color:#fff;border:none;padding:.5rem 1.2rem;border-radius:6px;cursor:pointer;font-weight:600}.btn-reject:hover:not(:disabled){background:#dc2626}.btn-finish{background:#7c3aed;color:#fff;border:none;padding:.6rem 1.4rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:600}.btn-finish:hover:not(:disabled){background:#6d28d9}.form-group{margin-bottom:1rem}.form-group label{display:block;font-weight:600;margin-bottom:.3rem;color:#374151}.form-group input{width:100%;padding:.6rem .8rem;border:1px solid #d1d5db;border-radius:6px;font-size:1rem}.form-group input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.error-message{background:#fef2f2;color:#dc2626;border:1px solid #fecaca;padding:.7rem 1rem;border-radius:6px;margin:.8rem 0;font-size:.95rem}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f3f4f6}.auth-card{background:#fff;padding:2.5rem;border-radius:12px;box-shadow:0 4px 20px #0000001a;width:100%;max-width:420px}.auth-card h1{margin-bottom:1.5rem;font-size:1.6rem;color:#1e3a5f}.auth-card .btn-primary{width:100%;margin-top:.5rem}.auth-link{margin-top:1.2rem;text-align:center;color:#6b7280;font-size:.95rem}.dashboard h1{margin-bottom:1.5rem}.dashboard-actions{margin-bottom:2rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:2rem}.stat-card{background:#fff;padding:1.5rem;border-radius:10px;text-align:center;box-shadow:0 1px 4px #00000014}.stat-number{font-size:2rem;font-weight:700;color:#2563eb}.stat-label{color:#6b7280;font-size:.9rem;margin-top:.3rem}.history-section h2{margin-bottom:1rem}.history-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 4px #00000014}.history-table th{background:#f9fafb;padding:.8rem 1rem;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb}.history-table td{padding:.8rem 1rem;border-bottom:1px solid #f3f4f6}.no-history{color:#6b7280;margin-top:1rem}.test-setup h1{margin-bottom:1.5rem}.setup-section{background:#fff;padding:1.5rem;border-radius:10px;margin-bottom:1.5rem;box-shadow:0 1px 4px #00000014}.setup-section h2{margin-bottom:1rem;font-size:1.1rem;color:#374151}.category-list{display:flex;flex-direction:column;gap:.6rem}.category-item{display:flex;align-items:center;gap:.6rem;cursor:pointer}.category-item input{width:18px;height:18px;cursor:pointer}.count-options{display:flex;gap:1.5rem}.count-option{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:1rem}.count-option input{width:18px;height:18px;cursor:pointer}.test-runner{max-width:700px;margin:0 auto}.test-progress{display:flex;justify-content:space-between;color:#6b7280;font-size:.9rem;margin-bottom:1rem}.question-card{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;margin-bottom:1.5rem}.question-text{font-size:1.1rem;font-weight:600;margin-bottom:1.5rem;line-height:1.5}.answers-list{display:flex;flex-direction:column;gap:.8rem}.answer-btn{text-align:left;padding:.8rem 1rem;border:2px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;font-size:1rem;transition:all .15s;display:flex;gap:.5rem}.answer-btn:hover:not(:disabled){border-color:#2563eb;background:#eff6ff}.answer-btn.selected{border-color:#2563eb;background:#eff6ff}.answer-btn.correct{border-color:#10b981;background:#ecfdf5;color:#065f46}.answer-btn.wrong{border-color:#ef4444;background:#fef2f2;color:#991b1b}.answer-btn.disabled{opacity:.5}.answer-btn:disabled{cursor:default}.answer-order{font-weight:700;color:#6b7280;min-width:1.2rem}.feedback-result{margin-top:1.5rem;padding:1rem 1.2rem;border-radius:8px;border-left:4px solid}.feedback-result.correct{background:#ecfdf5;border-color:#10b981}.feedback-result.wrong{background:#fef2f2;border-color:#ef4444}.feedback-result-label{font-weight:700;margin-bottom:.5rem}.feedback-explanation,.feedback-legal{margin-top:.5rem;font-size:.95rem;color:#374151}.test-navigation{display:flex;justify-content:space-between;gap:1rem}.test-result{max-width:700px;margin:0 auto}.result-summary{text-align:center;padding:2.5rem;border-radius:12px;margin-bottom:2rem}.result-summary.passed{background:#ecfdf5;border:2px solid #10b981}.result-summary.failed{background:#fef2f2;border:2px solid #ef4444}.result-percent{font-size:4rem;font-weight:700}.result-summary.passed .result-percent{color:#10b981}.result-summary.failed .result-percent{color:#ef4444}.result-label{font-size:1.5rem;font-weight:600;margin:.5rem 0}.result-score{color:#6b7280}.result-actions{display:flex;gap:1rem;margin-top:2rem}.wrong-questions h2{margin-bottom:1rem}.wrong-question-card{background:#fff;padding:1.5rem;border-radius:10px;margin-bottom:1rem;box-shadow:0 1px 4px #00000014}.wrong-question-text{font-weight:600;margin-bottom:1rem}.wrong-answers-list{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.8rem}.wrong-answer{padding:.4rem .6rem;border-radius:4px;display:flex;gap:.4rem;font-size:.95rem}.wrong-answer.correct{background:#ecfdf5;color:#065f46}.wrong-answer.selected{background:#fef2f2;color:#991b1b}.correct-mark{color:#10b981;font-weight:700}.wrong-mark{color:#ef4444;font-weight:700}.wrong-explanation,.wrong-legal{font-size:.9rem;color:#6b7280;margin-top:.5rem}.admin-panel h1{margin-bottom:1.5rem}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.status-filters{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.5rem}.filter-btn{padding:.4rem 1rem;border:1px solid #d1d5db;border-radius:20px;background:#fff;cursor:pointer;font-size:.9rem;transition:all .15s}.filter-btn.active{background:#2563eb;color:#fff;border-color:#2563eb}.filter-btn:hover:not(.active){background:#f3f4f6}.question-review-card{background:#fff;padding:1.5rem;border-radius:10px;margin-bottom:1rem;box-shadow:0 1px 4px #00000014}.question-review-header{display:flex;gap:.8rem;align-items:center;margin-bottom:.8rem}.question-status-badge{color:#fff;padding:.2rem .7rem;border-radius:12px;font-size:.8rem;font-weight:600}.question-category{color:#6b7280;font-size:.9rem}.question-review-text{font-weight:600;margin-bottom:1rem;line-height:1.5}.question-review-answers{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.8rem}.review-answer{padding:.4rem .6rem;border-radius:4px;display:flex;gap:.4rem;font-size:.95rem;background:#f9fafb}.review-answer.correct{background:#ecfdf5;color:#065f46;font-weight:600}.question-review-explanation,.question-review-legal{font-size:.9rem;color:#6b7280;margin-top:.4rem}.question-review-actions{display:flex;gap:.8rem;margin-top:1rem}.no-data{text-align:center;color:#6b7280;padding:3rem;background:#fff;border-radius:10px}.question-feedback{margin-top:1.2rem;padding-top:1rem;border-top:1px solid #e5e7eb}.question-feedback h4{margin-bottom:.8rem;font-size:.95rem;color:#374151}.feedback-ratings{display:flex;gap:.5rem;margin-bottom:.8rem}.feedback-rating-btn{padding:.4rem .9rem;border:2px solid #e5e7eb;border-radius:20px;background:#fff;cursor:pointer;font-size:.9rem;transition:all .15s}.feedback-rating-btn.selected{border-color:#2563eb;background:#eff6ff}.feedback-flags{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.8rem}.feedback-flag{display:flex;align-items:center;gap:.5rem;font-size:.9rem;cursor:pointer}.feedback-comment{width:100%;padding:.5rem .8rem;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;margin-bottom:.8rem;resize:vertical}.feedback-submitted{color:#10b981;font-weight:600;margin-top:1rem;padding:.5rem}.loading{text-align:center;padding:3rem;color:#6b7280}.feedback-optional{font-size:.8rem;font-weight:400;color:#9ca3af}.feedback-instruction{font-size:.85rem;color:#6b7280;font-style:italic;margin-bottom:.9rem;line-height:1.4}.feedback-flag-content{display:flex;flex-direction:column;gap:.1rem}.feedback-flag-label{font-size:.9rem;color:#374151}.feedback-flag-hint{font-size:.78rem;color:#9ca3af;line-height:1.3}.feedback-saving{font-size:.85rem;color:#6b7280;margin-top:.4rem}.feedback-autosave-note{font-size:.8rem;color:#9ca3af;margin-top:.3rem}.feedback-save-error{display:flex;align-items:center;gap:.8rem;margin-top:.5rem;padding:.5rem .75rem;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;font-size:.85rem;color:#92400e}.feedback-retry-btn{background:none;border:1px solid #d97706;color:#b45309;border-radius:4px;padding:.2rem .6rem;font-size:.8rem;cursor:pointer;white-space:nowrap;flex-shrink:0}.feedback-retry-btn:hover:not(:disabled){background:#fff7ed}.feedback-retry-btn:disabled{opacity:.5;cursor:not-allowed}
