body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.sync-status-indicator{align-items:center;border-radius:16px;display:inline-flex;font-size:.875rem;gap:8px;padding:4px 12px;transition:all .3s ease}.sync-health-good{background-color:#e8f5e9;color:#2e7d32}.sync-health-warning{background-color:#fff3e0;color:#f57c00}.sync-health-error{background-color:#ffebee;color:#c62828}.sync-icon{animation:spin 1s linear infinite paused;font-size:1rem}.sync-status-indicator:has(.sync-icon:contains("🔄")) .sync-icon{animation-play-state:running}.sync-text{font-weight:500}.sync-button{background:none;font-size:.875rem;opacity:.7;padding:0 4px;transition:opacity .2s}.sync-button:hover{opacity:1}.global-sync-status{background:#f5f5f5;border-radius:8px;margin:16px 0;padding:16px}.global-sync-status h3{color:#333;font-size:1rem;margin:0 0 12px}.sync-metrics{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(3,1fr)}.sync-metric{align-items:center;background:#fff;border-radius:4px;display:flex;flex-direction:column;padding:8px}.metric-label{color:#666;font-size:.75rem;margin-bottom:4px}.metric-value{color:#333;font-size:1.25rem}.sync-warning{align-items:center;background:#fff3e0;border-radius:4px;color:#f57c00;display:flex;font-size:.875rem;gap:8px;margin-top:12px;padding:8px 12px}.sync-modal-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.sync-modal{background:#fff;border-radius:8px;box-shadow:0 4px 6px #0000001a;display:flex;flex-direction:column;max-height:90vh;max-width:800px;width:90%}.sync-modal-header{align-items:center;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between;padding:20px}.sync-modal-header h2{color:#333;margin:0}.close-button{color:#666;transition:background .2s}.close-button:hover{background:#f5f5f5}.sync-modal-tabs{background:#fafafa;border-bottom:1px solid #e0e0e0;display:flex}.tab{color:#666}.tab:hover{background:#f5f5f5}.tab.active{border-bottom-color:#1976d2;color:#1976d2;font-weight:500}.sync-modal-content{flex:1 1;overflow-y:auto;padding:20px}.sync-health-meter{margin-bottom:30px;text-align:center}.sync-health-meter h3{color:#333;margin:0 0 15px}.health-bar{background:#e0e0e0;border-radius:10px;height:20px;overflow:hidden;position:relative;width:100%}.health-fill{height:100%;transition:width .3s ease}.health-text{color:#333;display:inline-block;font-size:24px;font-weight:700;margin-top:10px}.sync-stats-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:30px}.sync-stat-card{background:#f5f5f5;border-radius:8px;padding:20px}.sync-stat-card h4{color:#333;margin:0 0 15px}.stat-details{margin-bottom:15px}.stat-row{font-size:14px;margin-bottom:8px}.sync-entity-button{background:#1976d2;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;padding:8px 16px;transition:background .2s;width:100%}.sync-entity-button:hover:not(:disabled){background:#1565c0}.sync-entity-button:disabled{background:#ccc;cursor:not-allowed}.sync-actions{display:flex;gap:15px;justify-content:center;margin-top:30px}.btn{padding:10px 24px}.btn-primary{background:#1976d2}.btn-primary:hover:not(:disabled){background:#1565c0}.btn-secondary{background:#666}.btn-secondary:hover:not(:disabled){background:#555}.btn:disabled{background:#ccc}.pending-operations{max-height:400px;overflow-y:auto}.no-pending{color:#666;padding:40px;text-align:center}.pending-operation{align-items:flex-start;border-bottom:1px solid #e0e0e0;display:flex;padding:15px;transition:background .2s}.pending-operation:hover{background:#f5f5f5}.operation-icon{font-size:24px;margin-right:15px}.operation-details{flex:1 1}.operation-type{color:#333;font-weight:500;margin-bottom:4px}.operation-time{color:#666;font-size:12px}.operation-name{color:#1976d2;font-size:14px;margin-top:4px}.coming-soon{color:#666;padding:40px;text-align:center}.sync-modal-footer{background:#fafafa;border-top:1px solid #e0e0e0;padding:15px 20px}.last-sync{color:#666;font-size:14px;text-align:center}@media (max-width:600px){.sync-modal{border-radius:0;height:100%;max-height:100%;width:100%}.sync-stats-grid{grid-template-columns:1fr}.sync-actions{flex-direction:column}.btn{width:100%}}.toast{animation:slideIn .3s ease-out;border-radius:8px;box-shadow:0 4px 12px #00000026;max-width:500px;min-width:300px;padding:16px 20px;position:fixed;right:20px;top:20px;z-index:10000}.toast-content{align-items:center;display:flex;gap:12px;justify-content:space-between}.toast-message{flex:1 1;font-size:14px;line-height:1.5}.toast-close{align-items:center;background:none;border:none;cursor:pointer;display:flex;font-size:24px;height:24px;justify-content:center;line-height:1;opacity:.7;padding:0;transition:opacity .2s;width:24px}.toast-close:hover{opacity:1}.toast-info{background-color:#3b82f6;color:#fff}.toast-success{background-color:#25a564;color:#fff}.toast-warning{background-color:#ffca2c;color:#000}.toast-error{background-color:#e74c5e;color:#fff}[data-theme=dark] .toast-warning{background-color:#f59e0b;color:#fff}[data-theme=dark] .toast-close{color:inherit}.home-container{margin-top:60px}.hero-section{background:var(--bg-secondary);border-bottom:2px solid var(--border-primary);color:var(--text-primary);padding:80px 20px;text-align:center}.hero-content{margin:0 auto;max-width:800px}.hero-content h1{color:var(--text-primary);font-size:2.5rem;font-weight:700;margin-bottom:1rem}.hero-subtitle{color:var(--text-secondary);font-size:1.25rem;margin-bottom:2rem}.hero-buttons{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}.btn{padding:.5rem 1rem}.btn-primary,.btn-primary:link,.btn-primary:visited,a.btn-primary{background-color:var(--color-primary);border:2px solid var(--color-primary)}.btn-primary:hover,a.btn-primary:hover{background-color:var(--color-primary);filter:brightness(1.1);text-decoration:none;transform:translateY(-2px)}.btn-secondary,.btn-secondary:link,.btn-secondary:visited,a.btn-secondary{background-color:initial;border:2px solid var(--border-primary)}.btn-secondary:hover,a.btn-secondary:hover{background-color:var(--bg-hover);border-color:var(--color-primary);text-decoration:none;transform:translateY(-2px)}.features-section{background-color:var(--bg-primary);padding:60px 20px}.section-title{color:var(--text-primary);font-size:2rem;font-weight:700;margin-bottom:40px}[data-theme=dark] .section-title{color:#f8f9fa}.text-center{text-align:center}.features-grid{grid-gap:30px;display:grid;gap:30px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.feature-card{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:8px;box-shadow:var(--shadow-md);padding:24px;transition:transform .3s,box-shadow .3s}.feature-card:hover{border-color:var(--color-primary);box-shadow:var(--shadow-lg);transform:translateY(-5px)}.feature-icon{font-size:2.5rem;margin-bottom:1rem}.feature-card h3{color:var(--text-primary);font-size:1.25rem;margin-bottom:.75rem}.feature-card p{color:var(--text-secondary);line-height:1.6}.dev-test-section{background:var(--bg-secondary);border:1px dashed var(--border-primary);border-radius:8px;margin-top:60px;padding:30px}.dev-test-section h3{color:var(--text-secondary);margin-bottom:20px;text-align:center}.test-links{display:flex;flex-wrap:wrap;gap:15px;justify-content:center}.test-link{border-radius:4px;font-weight:500;padding:10px 20px;transition:all .2s}.test-link,.test-link:hover{background:var(--color-primary);color:#fff;text-decoration:none}.test-link:hover{filter:brightness(.9);transform:translateY(-2px)}@media screen and (max-width:768px){.hero-content h1{font-size:2rem}.hero-subtitle{font-size:1rem}.hero-buttons{flex-direction:column;gap:.5rem}.features-grid{grid-template-columns:1fr}}.container{margin:0 auto;max-width:1200px;padding:0 20px}.dashboard-header{margin-bottom:24px}.dashboard-header h1{color:var(--text-primary);margin-bottom:8px}[data-theme=dark] .dashboard-header h1{color:#fff}.welcome-message{font-size:16px}.dashboard-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(2,1fr)}.dashboard-card{background-color:var(--bg-card);border:1px solid var(--border-primary);border-radius:8px;box-shadow:var(--shadow-md);padding:20px;transition:box-shadow .2s}.dashboard-card:hover{box-shadow:var(--shadow-lg)}.wide-card{grid-column:span 2}.dashboard-card h2{color:var(--text-primary);font-size:18px;font-weight:600;margin-bottom:16px}.stats-grid{grid-gap:15px;gap:15px;grid-template-columns:repeat(3,1fr);text-align:center}.stat-item{background-color:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:6px;padding:15px}.stat-number{font-size:24px}.stat-label{font-size:14px}.quick-actions{grid-gap:12px;display:grid;gap:12px;grid-template-columns:1fr 1fr}.action-button{color:#fff;padding:12px;transition:transform .2s,box-shadow .2s}.action-button:hover{box-shadow:0 4px 8px #0003;color:#fff;filter:brightness(1.1);transform:translateY(-2px)}.create-question{background-color:var(--color-success)}.create-quiz{background-color:var(--color-primary)}.manage-categories{background-color:var(--text-secondary)}.view-questions{background-color:var(--color-info)}.action-icon{font-size:18px;margin-right:8px}.card-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.view-all{color:var(--link-color);font-size:14px;text-decoration:none;transition:color .2s}.view-all:hover{color:var(--link-hover);text-decoration:underline}.quizzes-table{border-collapse:collapse;width:100%}.quizzes-table td,.quizzes-table th{border-bottom:1px solid var(--border-primary);color:var(--text-primary);padding:12px;text-align:left}.quizzes-table th{color:var(--text-secondary);font-size:14px;font-weight:500}.quizzes-table tr:hover{background-color:var(--bg-hover)}.table-actions{display:flex;gap:10px}.table-action{background-color:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);font-size:12px;padding:4px 10px;text-decoration:none;transition:all .2s}.table-action:hover{background-color:var(--bg-hover);border-color:var(--color-primary);text-decoration:none}.sync-status-card{display:flex;flex-direction:column;height:calc(100% - 40px);justify-content:space-between}.sync-info p{color:var(--text-primary);margin-bottom:10px}.status{border-radius:4px;font-size:12px;font-weight:500;padding:2px 8px}.online{background-color:#28a74533;color:var(--color-success)}.offline{background-color:#dc354533;color:var(--color-danger)}.sync-button{font-weight:500;margin-top:15px;padding:8px 12px}.sync-button,.sync-button:hover{background-color:var(--color-primary)}.sync-button:hover{filter:brightness(.9)}.sync-button:disabled{opacity:.6}@media screen and (max-width:768px){.dashboard-grid{grid-template-columns:1fr}.wide-card{grid-column:span 1}.quick-actions,.stats-grid{grid-template-columns:1fr}.quizzes-table{font-size:14px}}.auth-container{align-items:center;display:flex;justify-content:center;margin-top:60px;min-height:80vh;padding:20px}.auth-card{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:8px;box-shadow:var(--shadow-md);max-width:400px;padding:40px;width:100%}.auth-card h2{color:var(--text-primary);margin-bottom:30px;text-align:center}.auth-error{background-color:#dc35451a;border:1px solid var(--color-danger);border-radius:4px;color:var(--color-danger);margin-bottom:20px;padding:12px;text-align:center}.form-group input{background-color:var(--input-bg);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);font-size:16px;padding:10px 12px;transition:border-color .15s ease-in-out,background-color .15s ease-in-out;width:100%}.form-group input:focus{border-color:var(--border-active);box-shadow:0 0 0 .2rem #0d6efd40;outline:none}.auth-select,.form-group select{background-color:var(--input-bg);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);cursor:pointer;font-size:16px;padding:10px 12px;transition:border-color .15s ease-in-out,background-color .15s ease-in-out;width:100%}.auth-select:focus,.form-group select:focus{border-color:var(--border-active);box-shadow:0 0 0 .2rem #0d6efd40;outline:none}.auth-button{background-color:var(--color-primary);border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:16px;font-weight:500;padding:12px;transition:background-color .15s ease-in-out;width:100%}.auth-button:hover:not(:disabled){background-color:#0056b3;filter:brightness(.9)}.auth-button:disabled{background-color:var(--text-secondary);cursor:not-allowed;opacity:.6}.auth-button-dev{background-color:var(--color-success)!important;margin-top:10px}.auth-button-dev:hover:not(:disabled){background-color:var(--color-success)!important;filter:brightness(1.1)}.auth-links{margin-top:20px;text-align:center}.auth-links p{color:var(--text-secondary);margin:10px 0}.auth-links a{color:var(--link-color);text-decoration:none;transition:color .2s ease}.auth-links a:hover{color:var(--link-hover);text-decoration:underline}.auth-success{background-color:#1987541a;border:1px solid var(--color-success);border-radius:4px;color:var(--color-success)}.auth-info,.auth-success{margin-bottom:20px;padding:12px;text-align:center}.auth-info{background-color:#0dcaf01a;border:1px solid var(--color-info);border-radius:4px;color:var(--color-info)}@media (max-width:576px){.auth-card{padding:30px 20px}.auth-card h2{font-size:1.5rem}}.page-container{max-width:1000px;min-height:calc(100vh - 180px)}.page-container-wide{margin:0 auto;max-width:1200px;min-height:calc(100vh - 180px);padding:20px}.page-header{border-bottom:2px solid #e9ecef;padding-bottom:20px}.page-header h1,.page-header p{text-align:center}.page-header h1{color:#2c3e50;font-size:2.5rem}.page-header p{margin:0}.content-section{background-color:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:25px;padding:25px}.content-section h2{border-bottom:1px solid #e9ecef;color:#2c3e50;font-size:1.5rem;margin-bottom:20px;padding-bottom:10px}.two-column-layout{grid-gap:30px;display:grid;gap:30px;grid-template-columns:1fr 1fr}.form-section{background-color:#f8f9fa;border:1px solid #e9ecef;margin-bottom:25px}.form-section h2{color:#2c3e50;margin-bottom:20px}.list-section{background-color:#fff;padding:25px}.alert-message{border-radius:6px;font-weight:500;padding:12px 20px}.alert-message>*{text-align:center}.alert-info{border:1px solid #bee5eb}.category-container{grid-template-columns:400px 1fr}.category-tree{background-color:#fff;border-radius:8px;padding:20px}.category-item{background-color:#f8f9fa;justify-content:space-between;margin-bottom:5px;padding:10px 15px;transition:background-color .2s}.category-item:hover{background-color:#e9ecef}.category-content{gap:15px}.category-name{color:#2c3e50}.category-type{background-color:#e9ecef;border-radius:12px;font-size:.85rem;padding:3px 10px}.category-actions{gap:5px}.category-actions button{font-size:.875rem;padding:5px 12px}.question-filters{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;margin-bottom:25px;padding:20px}[data-theme=dark] .question-filters{background-color:initial;background:#0000;border-color:#495057;border-color:var(--border-primary,#495057)}.filter-row:last-child{margin-bottom:0}.question-list{background-color:#fff;box-shadow:0 2px 4px #0000001a;padding:25px}.question-item{background-color:#f8f9fa;transition:transform .2s,box-shadow .2s}.question-item:hover{box-shadow:0 4px 8px #0000001a;transform:translateY(-2px)}.quiz-form-section{background-color:#fff;box-shadow:0 2px 4px #0000001a;margin-bottom:25px;padding:30px}.generation-options{grid-gap:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));margin-top:20px}.option-card{background-color:#f8f9fa;border:2px solid #e9ecef;padding:20px;transition:all .3s}.option-card.selected,.option-card:hover{background-color:#e7f3ff}.action-buttons .btn{min-width:120px}.btn-sm{border-radius:4px;font-size:.875rem}.btn{border-radius:.25rem;font-weight:400;line-height:1.5;padding:.375rem .75rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.btn:hover{text-decoration:none}.btn:focus{outline:0}.btn-primary:hover{background-color:#0069d9;border-color:#0062cc;color:#fff}.btn-secondary:hover{border-color:#545b62;color:#fff}.btn-danger{border:1px solid #dc3545}.btn-danger:hover{border-color:#bd2130}@media (max-width:768px){.page-container,.page-container-wide{padding:15px}.category-container,.two-column-layout{grid-template-columns:1fr}.page-header h1{font-size:2rem}.filter-row{align-items:stretch;flex-direction:column}.generation-options{grid-template-columns:1fr}}.empty-state i{font-size:4rem;margin-bottom:20px;opacity:.3}.empty-state h3{color:#495057;margin-bottom:10px}.loading-spinner{border:4px solid #f3f3f3;height:50px;margin:0 auto 20px;width:50px}.parent-category-section{background:#007bff0d;border-left:3px solid #007bff;border-radius:0 4px 4px 0;margin-bottom:20px;margin-top:15px;padding:15px}.parent-category-section .form-group{margin-bottom:12px}.parent-category-section .form-group:last-child{margin-bottom:0}.parent-category-section .form-group:not(:first-child){margin-left:20px;position:relative}.parent-category-section .form-group:not(:first-child):before{color:#007bff;content:"└";font-size:18px;left:-15px;position:absolute;top:28px}.parent-category-section .form-group{animation:slideIn .3s ease-out}.parent-category-section .help-text{color:#6c757d;font-style:italic;margin-bottom:10px}.form-group input[type=text]:not([name=name]){background-color:#fff3cd;border-color:#ffeaa7}.expand-toggle{align-items:center;color:#007bff;display:inline-flex;height:20px;justify-content:center;margin-right:8px;padding:0;transition:transform .2s ease}.expand-toggle:hover{color:#0056b3;transform:scale(1.2)}.expand-toggle:focus{outline:2px solid #007bff;outline-offset:2px}.no-children-indicator{align-items:center;display:inline-flex;height:20px;justify-content:center;margin-right:8px;width:20px}.no-children-indicator:before{color:#ccc;content:"•";font-size:16px}.category-item{align-items:center;border-bottom:1px solid #eee;display:flex;padding:10px 0}.category-item:hover{background-color:#f8f9fa}.category-content{align-items:center;display:flex;flex:1 1;gap:10px;min-width:0;overflow:hidden}.category-type{background:#e9ecef;border-radius:4px;flex-shrink:0;padding:2px 8px;white-space:nowrap}.category-type,.child-count{color:#6c757d;font-size:.875rem}.child-count{margin-left:2px}.category-type .child-count{margin-left:0}.category-actions{flex-shrink:0;margin-left:auto}.alert-message{animation:fadeIn .3s ease-in;border-radius:4px;margin-bottom:20px;padding:12px 15px}.alert-error{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24}.btn{margin-right:10px}.btn-secondary:hover{background-color:#5a6268}.btn-light:hover{background-color:#e2e6ea}.btn-sm{align-items:center;display:inline-flex;font-size:14px;justify-content:center;min-height:32px;padding:6px 16px}.form-section{background:#f8f9fa;margin-bottom:30px;padding:20px}.form-group{margin-bottom:15px}.form-group input,.form-group select{border:1px solid #ced4da;font-size:14px;padding:8px 12px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-group input:focus,.form-group select:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.list-section{background:#fff;border:1px solid #dee2e6;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;padding:20px}.list-section .empty-state{background:inherit;border-radius:4px;margin:0;padding:40px 20px}.list-header{align-items:center;border-bottom:2px solid #dee2e6;display:flex;justify-content:space-between;margin-bottom:20px;padding-bottom:15px}.list-header h2{font-size:1.5rem;font-weight:600;margin:0}.list-actions{align-items:center;display:flex;flex-wrap:wrap;gap:10px}.category-count{background:#f8f9fa;border-radius:4px;color:#6c757d;font-size:.875rem;font-weight:500;padding:6px 12px}.btn-outline{background-color:initial;border:1px solid #007bff;color:#007bff}.btn-outline:hover{background-color:#007bff;color:#fff}.category-tree{margin-top:20px}html[data-theme=dark] .category-tree{background-color:#2d3035}.category-tree .category-item{position:relative;transition:all .3s ease}.category-tree .category-item:not(:first-child){margin-top:2px}.category-tree .category-item:hover{background-color:#007bff0d;border-radius:4px}.category-tree>div{animation:fadeIn .3s ease}.subcategory-container{animation:slideDown .3s ease;border-left:2px solid #e9ecef;margin-left:10px;overflow:hidden;padding-left:10px;position:relative}.subcategory-container:before{background:linear-gradient(180deg,#007bff,#0000);bottom:0;content:"";left:-2px;opacity:.3;position:absolute;top:0;width:2px}.empty-state{padding:40px 20px}.page-container{margin:0 auto;max-width:1200px;padding:20px}.page-header{margin-bottom:30px;text-align:center}.page-header h1{margin-bottom:10px}.page-header p{color:#6c757d;font-size:1.1rem}.category-container{grid-gap:30px;display:grid;gap:30px;grid-template-columns:350px 1fr}.category-item.dragging{background:#e9ecef;box-shadow:0 2px 10px #0000001a;opacity:.5}.category-item.drag-over{background:#d1ecf1;border-color:#bee5eb;transform:scale(1.02)}.category-item.invalid-drop{background:#f8d7da;border-color:#f5c6cb;cursor:not-allowed}.drag-handle{font-size:18px}.drag-handle:hover{color:#495057}.order-input{-webkit-appearance:none;appearance:none;border:1px solid #ced4da;border-radius:3px;box-sizing:border-box;flex-shrink:0;height:28px;margin-right:4px;max-width:48px;min-width:48px;padding:2px 4px;text-align:center;width:48px}[data-theme=light] .order-input,html:not([data-theme=dark]) .order-input{background-color:#fff;background:#fff}[data-theme=dark] .category-item input[type=number],[data-theme=dark] .order-input,[data-theme=dark] input.order-input,html[data-theme=dark] .category-item .order-controls .order-input,html[data-theme=dark] .category-item input,html[data-theme=dark] .category-tree .order-input,html[data-theme=dark] .order-controls input[type=number],html[data-theme=dark] .order-input,html[data-theme=dark] input.order-input[type=number],html[data-theme=dark] input[type=number].order-input{-webkit-appearance:none!important;appearance:none!important;background-color:#3d4148!important;background:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}.order-input::-webkit-inner-spin-button,.order-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.order-input:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.order-controls{align-items:center;margin-right:6px}.reorder-buttons{margin-left:5px}.reorder-btn{align-items:center;background:#fff;border-radius:2px;display:flex;font-size:10px;height:16px;justify-content:center;padding:2px 4px}.reorder-btn:active:not(:disabled){transform:scale(.95)}.reorder-btn:disabled{background:#f8f9fa;opacity:.4}.save-order-btn{animation:pulse 2s infinite;background:#28a745;border:none;border-radius:3px;color:#fff;cursor:pointer;margin-left:10px;padding:5px 15px;transition:background .3s}.save-order-btn:hover{background:#218838}.save-order-btn:disabled{animation:none;background:#6c757d;cursor:not-allowed}.ordering-help{background:#e7f3ff;border:2px solid #b3d9ff;border-radius:6px;margin-bottom:15px;padding:10px 15px;text-align:center}html[data-theme=dark] .category-tree .ordering-help,html[data-theme=dark] .list-section .ordering-help,html[data-theme=dark] div.ordering-help{background:#1e3a5f!important;background-color:#1e3a5f!important;border-color:#2563eb!important}.ordering-help small{color:#06c;display:block;font-size:13px;margin-bottom:5px}html[data-theme=dark] .ordering-help small{color:#60a5fa!important}.ordering-help .help-icon{color:#06c;margin-right:5px}html[data-theme=dark] .ordering-help .help-icon{color:#60a5fa!important}.category-item{background:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;cursor:move;margin:5px 0;padding:10px;position:relative;transition:all .3s ease}.parent-group-separator{background:linear-gradient(90deg,#0000,#007bff 20%,#007bff 80%,#0000);height:2px;margin:15px 0;opacity:.4;position:relative}.creation-mode-options{display:flex;gap:20px;margin-top:5px}.radio-option{align-items:center;background:#f8f9fa;border:2px solid #e9ecef;border-radius:6px;cursor:pointer;display:flex;font-weight:400;gap:8px;padding:10px 15px;transition:all .3s ease}.radio-option:hover{background:#e7f3ff;border-color:#007bff}.radio-option input[type=radio]{margin:0;width:auto}.radio-option input[type=radio]:checked+span{color:#007bff;font-weight:500}.radio-option:has(input[type=radio]:checked){background:#e7f3ff;border-color:#007bff}.numbered-preview{background:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;margin-top:10px;padding:15px}.numbered-preview label{color:#495057;font-weight:500;margin-bottom:8px}.preview-list{background:#fff;border:1px solid #ced4da;border-radius:3px;color:#333;font-family:monospace;margin-bottom:8px;min-height:20px;padding:10px}.numbered-preview .text-muted{color:#6c757d;font-size:.875rem;font-style:italic}.category-item[data-numbered=true]{background:linear-gradient(135deg,#e3f2fd,#f8f9fa);border-left:4px solid #2196f3}.category-item[data-numbered=true] .category-name{color:#1976d2}.category-item[data-numbered=true] .category-type:after{color:#2196f3;content:" (Numbered)";font-size:.75rem;font-weight:400}[data-theme=dark] .page-header{background:#0000}[data-theme=dark] .page-header h1{color:#f8f9fa}[data-theme=dark] .page-header p{color:#adb5bd}[data-theme=dark] .form-section{background:var(--bg-card);border:1px solid var(--border-primary)}[data-theme=dark] .form-section h2,[data-theme=dark] .form-section h3{color:var(--text-primary)}[data-theme=dark] .category-container .list-section,[data-theme=dark] .list-section,[data-theme=dark] div.list-section{background:var(--bg-card)!important;background-color:var(--bg-card)!important;border:1px solid var(--border-primary)!important;border-radius:8px!important;box-shadow:none!important}[data-theme=dark] .list-section h2{color:var(--text-primary)}[data-theme=dark] .list-header{border-bottom-color:var(--border-primary)}[data-theme=dark] .category-count{background:var(--bg-tertiary)}[data-theme=dark] .btn-outline{border-color:var(--color-primary);color:var(--color-primary)}[data-theme=dark] .btn-outline:hover{background-color:var(--color-primary);color:#fff}[data-theme=dark] .form-group input,[data-theme=dark] .form-group select{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .form-group input:focus,[data-theme=dark] .form-group select:focus{background:var(--input-bg);border-color:var(--border-active);box-shadow:0 0 0 .2rem #0d6efd40}[data-theme=dark] .category-item{background:var(--bg-secondary)}[data-theme=dark] .category-item:hover{background:var(--bg-hover)}[data-theme=dark] .category-name{color:var(--text-primary)}[data-theme=dark] .category-type{background:var(--bg-tertiary);color:var(--text-primary)}[data-theme=dark] .category-count,[data-theme=dark] .child-count{color:var(--text-secondary)}[data-theme=dark] .list-section .ordering-help,[data-theme=dark] .ordering-help,html[data-theme=dark] .list-section .ordering-help,html[data-theme=dark] .ordering-help{background:#1e3a5f!important;background-color:#1e3a5f!important;border:2px solid #2563eb!important}[data-theme=dark] .ordering-help .help-icon,[data-theme=dark] .ordering-help small,html[data-theme=dark] .ordering-help .help-icon,html[data-theme=dark] .ordering-help small{color:#60a5fa!important}[data-theme=dark] .parent-category-section{background:#3d8bfd1a}[data-theme=dark] .parent-category-section .help-text{color:var(--text-secondary)}[data-theme=dark] .order-input,[data-theme=dark] input.order-input,html[data-theme=dark] .order-input,html[data-theme=dark] input.order-input{background:#3d4148!important;background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .order-input:focus,html[data-theme=dark] .order-input:focus{background:#3d4148!important;background-color:#3d4148!important;border-color:#3d8bfd!important;box-shadow:0 0 0 .2rem #3d8bfd40!important}[data-theme=dark] .reorder-btn{background:var(--bg-secondary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .reorder-btn:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary)}[data-theme=dark] .reorder-btn:disabled{background:var(--bg-tertiary);color:var(--text-tertiary)}[data-theme=dark] .drag-handle{color:var(--text-secondary)}[data-theme=dark] .drag-handle:hover{color:var(--text-primary)}[data-theme=dark] .numbered-preview{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .numbered-preview label{color:var(--text-primary)}[data-theme=dark] .preview-list{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .numbered-preview .text-muted{color:var(--text-secondary)}[data-theme=dark] .radio-option{background:var(--bg-secondary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .radio-option:hover{background:#3d8bfd26;border-color:var(--color-primary)}[data-theme=dark] .radio-option:has(input[type=radio]:checked){background:#3d8bfd26;border-color:var(--color-primary)}[data-theme=dark] .radio-option input[type=radio]:checked+span{color:var(--color-primary)}[data-theme=dark] .category-item[data-numbered=true]{background:linear-gradient(135deg,#3d8bfd26 0,var(--bg-secondary) 100%);border-left-color:var(--color-primary)}[data-theme=dark] .category-item[data-numbered=true] .category-name{color:var(--color-primary)}[data-theme=dark] .subcategory-container{border-left-color:var(--border-primary)}[data-theme=dark] .category-item.dragging{background:var(--bg-hover)}[data-theme=dark] .category-item.drag-over{background:#3d8bfd26;border-color:var(--color-primary)}.archived-section{border-top:2px solid #dee2e6;margin-top:30px;padding-top:20px}.archived-category-item{align-items:center;background:#fff;border:1px solid #dee2e6;border-radius:4px;display:flex;justify-content:space-between;margin-bottom:8px;padding:10px 15px}[data-theme=dark] .archived-section{border-top-color:var(--border-primary)!important}[data-theme=dark] .archived-section h3{color:var(--text-primary)!important}[data-theme=dark] .archived-categories-list>div,[data-theme=dark] .archived-questions-list>div{background:var(--bg-secondary)!important;background-color:var(--bg-secondary)!important}[data-theme=dark] .archived-category-item,[data-theme=dark] .archived-questions-list>div>div{background:var(--bg-card)!important;background-color:var(--bg-card)!important;border-color:var(--border-primary)!important;color:var(--text-primary)!important}[data-theme=dark] .archived-category-item div,[data-theme=dark] .archived-category-item span,[data-theme=dark] .archived-questions-list>div>div>div span{color:var(--text-primary)!important}[data-theme=dark] .archived-categories-list .empty-state,[data-theme=dark] .archived-questions-list>div:first-child,[data-theme=dark] .archived-section .empty-state{background:var(--bg-secondary)!important;background-color:var(--bg-secondary)!important}[data-theme=dark] .archived-categories-list .empty-state p,[data-theme=dark] .archived-section .empty-state p{color:var(--text-secondary)!important}[data-theme=dark] .archived-categories-list div[style],[data-theme=dark] .archived-section div[style]{background:var(--bg-secondary)!important;background-color:var(--bg-secondary)!important;border-color:var(--border-primary)!important}[data-theme=dark] .archived-category-item[style]{background:var(--bg-card)!important;background-color:var(--bg-card)!important;border-color:var(--border-primary)!important}[data-theme=dark] .bulk-actions-bar,[data-theme=dark] .bulk-actions-bar[style]{background:var(--bg-secondary)!important;background-color:var(--bg-secondary)!important;border-color:var(--border-primary)!important}[data-theme=dark] .bulk-actions-bar span{color:var(--text-primary)!important}.category-actions{align-items:stretch;gap:4px;justify-content:flex-end;min-width:160px}.category-actions .btn-stack-2,.category-actions .btn-stack-3{display:flex;flex-direction:column;gap:1px}.category-actions .btn-compact{font-size:10px;line-height:1.2;padding:1px 6px;white-space:nowrap}.category-actions .btn-stack-2 .btn-compact,.category-actions .btn-stack-3 .btn-compact{width:100%}@media (max-width:768px){.category-container{grid-template-columns:1fr}.parent-category-section{padding-left:15px}.parent-category-section .form-group:not(:first-child){margin-left:10px}.order-controls{align-items:flex-start;flex-direction:column}.drag-handle{font-size:16px}.creation-mode-options,.form-row{flex-direction:column;gap:10px}}.math-equation{font-size:1.1em;margin:0 4px}.math-equation.display-mode{display:block;margin:16px 0;overflow-x:auto;overflow-y:hidden;text-align:center}.math-equation.inline-mode{display:inline-block;vertical-align:middle}.math-loading{color:#6c757d;font-size:.9em;font-style:italic}.math-error{background-color:#ffe6e6;border-radius:3px;color:#c00;cursor:help;font-family:monospace;font-size:.9em;padding:2px 6px}.math-content-renderer{line-height:1.6}.math-inline-container{display:inline-block;margin:0 2px}.math-inline-container[data-display=true]{display:block;margin:12px 0;text-align:center}.katex{font-size:1.1em!important;text-rendering:auto}.katex-display{margin:.75em 0!important;overflow-x:auto;overflow-y:hidden;padding:.25em 0}.katex-display>.katex{display:inline-block;text-align:left;text-align:initial}.katex-display::-webkit-scrollbar{height:8px}.katex-display::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.katex-display::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.katex-display::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.equation-preview{align-items:center;background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;display:flex;justify-content:center;margin-top:8px;min-height:50px;padding:12px}.equation-preview.error{background-color:#ffe6e6;border-color:#fcc}.equation-preview .math-equation{margin:0}@media (max-width:768px){.katex{font-size:1em!important}.math-equation.display-mode{font-size:.95em;margin:12px -10px;padding:0 10px}}@media (prefers-color-scheme:dark){.math-content-renderer{color:#e9ecef}.math-error{background-color:#4a1f1f;color:#ff8080}.equation-preview{background-color:#2d3748;border-color:#4a5568}.equation-preview.error{background-color:#4a1f1f;border-color:#7a2f2f}}.math-input-container{position:relative}.math-input-container .mq-editable-field{background:#0000!important;font-size:16px;min-height:40px;padding:8px 12px}.math-input-container .mq-editable-field,.math-input-container .mq-editable-field.mq-focused{border:none!important;box-shadow:none!important}.math-input-container .mq-cursor{border-left:2px solid #3b82f6}.math-input-container .mq-selection .mq-matrixed{background:#3b82f64d!important}.math-input-container .mq-selection .mq-matrixed-container{filter:none!important}[data-theme=dark] .math-input-container .mq-editable-field,[data-theme=dark] .math-input-container .mq-math-mode{color:#e5e7eb!important}[data-theme=dark] .math-input-container .mq-cursor{border-left-color:#6ea8fe}[data-theme=dark] .math-input-container .mq-selection .mq-matrixed{background:#6ea8fe4d!important}.math-input-container button{transition:background-color .15s ease,transform .1s ease}.math-input-container button:hover{transform:translateY(-1px)}.math-input-container button:active{transform:translateY(0)}.mq-math-mode{font-size:inherit}.math-input-container .mq-fraction{vertical-align:middle}.math-input-container .mq-sqrt-prefix{vertical-align:top}.math-input-container .mq-sub,.math-input-container .mq-sup{font-size:.8em}.math-input-container .mq-binary-operator{padding:0 .2em}@media (max-width:768px){.math-input-container .mq-editable-field{font-size:14px;min-height:36px}.math-input-container button{font-size:12px;min-width:28px;padding:3px 6px}}.math-input-container .mq-editable-field.mq-empty:after{color:#9ca3af;content:attr(data-placeholder);font-style:italic}.math-input-container .mq-scaled.mq-paren{color:#6366f1}[data-theme=dark] .math-input-container .mq-scaled.mq-paren{color:#818cf8}.math-input-compact .math-input-container{padding:4px}.math-input-compact .math-input-container .mq-editable-field{font-size:14px;min-height:32px;padding:4px 8px}.multiple-choice-display{width:100%}.option-label{border:2px solid #dee2e6;border-radius:8px;padding:15px;transition:all .2s}.option-label:hover:not(.disabled){background:#e9ecef;border-color:#007bff}.option-label.disabled{cursor:not-allowed;opacity:.7}.option-checkbox,.option-radio{cursor:pointer;flex-shrink:0;height:20px;margin-right:12px;width:20px}.option-label.disabled .option-checkbox,.option-label.disabled .option-radio{cursor:not-allowed}.multiple-choice-display.multiple-answer-mode .option-label.selected{background:#e3f2fd;border-color:#2196f3}.multi-select-hint{color:#6c757d;font-size:14px;font-style:italic;margin-top:12px}.option-text{line-height:1.5}.true-false-display{width:100%}.true-false-options{justify-content:center;margin-top:20px}.tf-option{flex:1 1;font-weight:500;max-width:200px;text-align:center}.fill-in-blank-display{width:100%}.fill-blank-content{color:#333;font-size:18px;line-height:2}.question-text-part{margin:0 4px}.blank-input{background:#f0f8ff;border:2px solid #007bff;border-radius:4px;display:inline-block;font-size:16px;margin:0 8px;padding:8px 12px;transition:all .2s;width:200px}.blank-input:focus{border-color:#0056b3;box-shadow:0 0 0 3px #007bff1a;outline:none}.blank-input:disabled{background:#e9ecef;border-color:#ced4da;cursor:not-allowed}.short-answer-display{width:100%}.answer-input-container{position:relative}.short-answer-input{border:2px solid #ced4da;border-radius:8px;line-height:1.5;padding:12px;transition:border-color .2s}.short-answer-input:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.short-answer-input:disabled{background:#e9ecef;cursor:not-allowed}.char-count{color:#6c757d;font-size:13px;margin-top:5px;text-align:right}.essay-display{width:100%}.essay-requirements{background:#e7f3ff;border-left:4px solid #007bff;border-radius:4px;margin-bottom:20px;padding:15px}.essay-requirements h4{color:#0056b3;font-size:14px;letter-spacing:.5px;margin:0 0 8px;text-transform:uppercase}.essay-requirements p{color:#004085;font-size:14px;line-height:1.5;margin:0}.essay-input-container{position:relative}.essay-input{border:2px solid #ced4da;border-radius:8px;font-family:inherit;font-size:16px;line-height:1.6;min-height:300px;padding:15px;resize:vertical;transition:border-color .2s;width:100%}.essay-input:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a;outline:none}.essay-input:disabled{background:#e9ecef;cursor:not-allowed}.word-count{color:#6c757d;font-size:13px;margin-top:5px;text-align:right}.matching-display{width:100%}.matching-container{display:flex;gap:40px;margin-top:20px}.matching-column{flex:1 1}.matching-column h4{color:#495057;font-size:16px;letter-spacing:.5px;margin:0 0 15px;text-transform:uppercase}.matching-item{align-items:center;background:#f8f9fa;border-radius:6px;display:flex;gap:10px;margin-bottom:15px;padding:12px}.item-number{color:#007bff;font-weight:600;min-width:25px}.item-text{flex:1 1;font-size:15px;line-height:1.4}.matching-select{background:#fff;border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:6px 10px;width:180px}.matching-select:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff1a;outline:none}.matching-select:disabled{background:#e9ecef;cursor:not-allowed}.matching-option{align-items:flex-start;background:#fff;border:1px solid #dee2e6;border-radius:6px;display:flex;gap:10px;margin-bottom:15px;padding:12px}.option-letter{color:#6c757d;min-width:25px}.option-text{font-size:15px}.multi-part-display{width:100%}.multi-part-instructions{background:#f8f9fa;border-radius:6px;color:#495057;font-size:15px;line-height:1.5;margin-bottom:25px;padding:15px}.parts-container{display:flex;flex-direction:column;gap:30px}.multi-part-item{border:1px solid #dee2e6;border-radius:8px;overflow:hidden}.part-header{background:#f8f9fa;justify-content:space-between;padding:12px 20px}.part-label{font-size:16px}.part-points{font-weight:500}@media (max-width:768px){.question-text{font-size:16px}.option-text{font-size:15px}.true-false-options{align-items:center;flex-direction:column}.tf-option{max-width:100%;width:100%}.blank-input{font-size:14px;margin:4px;width:150px}.matching-container{flex-direction:column;gap:20px}.matching-select{margin-top:10px;width:100%}.matching-item{flex-wrap:wrap}.ordering-item-controls{flex-direction:row}.calculated-input-wrapper{flex-direction:column}.calculated-units{margin-left:0;margin-top:5px}}.ordering-display{width:100%}.ordering-instructions{background:#e7f3ff;border-left:4px solid #007bff;border-radius:4px;color:#004085;font-size:14px;margin-bottom:20px;padding:10px 15px}.ordering-items-container{display:flex;flex-direction:column;gap:10px}.ordering-item{background:#f8f9fa;border:2px solid #dee2e6;border-radius:8px;cursor:grab;padding:15px;transition:all .2s;-webkit-user-select:none;user-select:none}.ordering-item:hover:not(.disabled){background:#e9ecef;border-color:#007bff}.ordering-item.dragging{background:#e3f2fd;border-color:#007bff;opacity:.5}.ordering-item.disabled{cursor:default;opacity:.8}.ordering-item-number{align-items:center;background:#007bff;border-radius:50%;color:#fff;display:flex;font-size:16px;font-weight:600;height:36px;justify-content:center;margin-right:15px;min-width:36px}.ordering-item-content{color:#333;flex:1 1;font-size:16px;line-height:1.5}.ordering-item-controls{display:flex;flex-direction:column;gap:4px;margin-left:15px}.ordering-move-btn{background:#fff;border:1px solid #ced4da;border-radius:4px;color:#495057;cursor:pointer;font-size:12px;padding:4px 10px;transition:all .2s}.ordering-move-btn:hover:not(:disabled){background:#007bff;border-color:#007bff;color:#fff}.ordering-move-btn:disabled{cursor:not-allowed;opacity:.3}.calculated-display{width:100%}.calculated-answer-section{background:#f8f9fa;border-radius:8px;margin-top:25px;padding:20px}.calculated-input-container{display:flex;flex-direction:column;gap:10px}.calculated-label{color:#495057;font-size:15px;font-weight:600}.calculated-input-wrapper{align-items:center;display:flex;gap:10px}.calculated-input{border:2px solid #ced4da;border-radius:8px;font-family:Courier New,monospace;font-size:18px;padding:12px 15px;text-align:right;transition:border-color .2s;width:200px}.calculated-input:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a;outline:none}.calculated-input:disabled{background:#e9ecef;cursor:not-allowed}.calculated-units{color:#495057;font-size:16px;font-weight:500}.calculated-hint{color:#6c757d;font-size:13px;font-style:italic;margin-top:12px}.multi-part-display img,.part-question img,.question-content img,.question-text img{border-radius:4px;box-shadow:0 2px 8px #0000001a;display:block;height:auto;margin:8px 0}.multi-part-display img.img-small,.part-question img.img-small,.question-content img.img-small,.question-text img.img-small{max-width:100%;width:200px}.multi-part-display img.img-medium,.part-question img.img-medium,.question-content img.img-medium,.question-text img.img-medium{max-width:100%;width:400px}.multi-part-display img.img-large,.part-question img.img-large,.question-content img.img-large,.question-text img.img-large{max-width:100%;width:600px}.multi-part-display img.img-original,.part-question img.img-original,.question-content img.img-original,.question-text img.img-original{max-width:100%;width:auto}.option-label.selected{background:#e3f2fd;border-color:#1976d2}.option-label.selected .option-text{color:#1565c0;font-weight:500}.tf-option.selected .option-label{background:#e3f2fd;border-color:#1976d2}.tf-option.selected .option-label .option-text{color:#1565c0;font-weight:500}.instructions-box,.mcq-instructions,.question-instructions{background:#e7f3ff;border-left:4px solid #007bff;border-radius:4px;color:#004085;font-size:14px;margin-bottom:20px;padding:12px 16px}[data-theme=dark] .option-label{background:#3d4148;border-color:#495057;color:#e9ecef}[data-theme=dark] .option-label:hover:not(.disabled){background:#4d5158;border-color:#6ea8fe}[data-theme=dark] .option-text{color:#e9ecef}[data-theme=dark] .option-label.selected{background:#1e3a5f;border-color:#6ea8fe}[data-theme=dark] .option-label.selected .option-text{color:#fff;font-weight:500}[data-theme=dark] .multiple-choice-display.multiple-answer-mode .option-label.selected{background:#1e3a5f;border-color:#6ea8fe}[data-theme=dark] .multiple-choice-display.multiple-answer-mode .option-label.selected .option-text{color:#fff}[data-theme=dark] .tf-option .option-label{background:#3d4148;border-color:#495057}[data-theme=dark] .tf-option .option-label .option-text{color:#e9ecef}[data-theme=dark] .tf-option.selected .option-label{background:#1e3a5f;border-color:#6ea8fe}[data-theme=dark] .tf-option.selected .option-label .option-text{color:#fff;font-weight:500}[data-theme=dark] .essay-requirements,[data-theme=dark] .instructions-box,[data-theme=dark] .mcq-instructions,[data-theme=dark] .multi-part-instructions,[data-theme=dark] .ordering-instructions,[data-theme=dark] .question-instructions{background:#2d3748;border-left-color:#6ea8fe;color:#e9ecef}[data-theme=dark] .essay-requirements h4{color:#6ea8fe}[data-theme=dark] .essay-requirements p,[data-theme=dark] .fill-blank-content{color:#e9ecef}[data-theme=dark] .blank-input{background:#3d4148;border-color:#6ea8fe;color:#e9ecef}[data-theme=dark] .blank-input:focus{border-color:#80bdff;box-shadow:0 0 0 3px #6ea8fe33}[data-theme=dark] .blank-input:disabled{background:#2d3035;border-color:#495057;color:#6c757d}[data-theme=dark] .essay-input,[data-theme=dark] .short-answer-input{background:#3d4148;border-color:#495057;color:#e9ecef}[data-theme=dark] .essay-input:focus,[data-theme=dark] .short-answer-input:focus{border-color:#6ea8fe;box-shadow:0 0 0 3px #6ea8fe33}[data-theme=dark] .char-count,[data-theme=dark] .word-count{color:#adb5bd}[data-theme=dark] .matching-item{background:#3d4148}[data-theme=dark] .matching-column h4{color:#adb5bd}[data-theme=dark] .item-text{color:#e9ecef}[data-theme=dark] .matching-option{background:#25282c;border-color:#495057}[data-theme=dark] .matching-select{background:#3d4148;border-color:#495057;color:#e9ecef}[data-theme=dark] .matching-select:focus{border-color:#6ea8fe}[data-theme=dark] .ordering-item{background:#3d4148;border-color:#495057}[data-theme=dark] .ordering-item:hover:not(.disabled){background:#4d5158;border-color:#6ea8fe}[data-theme=dark] .ordering-item.dragging{background:#1e3a5f;border-color:#6ea8fe}[data-theme=dark] .ordering-item-content{color:#e9ecef}[data-theme=dark] .ordering-move-btn{background:#25282c;border-color:#495057;color:#e9ecef}[data-theme=dark] .ordering-move-btn:hover:not(:disabled){background:#6ea8fe;border-color:#6ea8fe;color:#000}[data-theme=dark] .calculated-answer-section{background:#3d4148}[data-theme=dark] .calculated-label{color:#e9ecef}[data-theme=dark] .calculated-input{background:#25282c;border-color:#495057;color:#e9ecef}[data-theme=dark] .calculated-input:focus{border-color:#6ea8fe}[data-theme=dark] .calculated-hint,[data-theme=dark] .calculated-units{color:#adb5bd}[data-theme=dark] .multi-part-item{border-color:#495057}[data-theme=dark] .part-header{background:#3d4148;border-color:#495057}[data-theme=dark] .part-label{color:#6ea8fe}[data-theme=dark] .part-points{color:#adb5bd}[data-theme=dark] .part-content{background:#25282c}[data-theme=dark] .multi-select-hint{color:#adb5bd}.label-image-display{width:100%}.label-image-instructions{background:#f8f9fa;border-radius:6px;color:#6c757d;font-size:14px;margin-bottom:16px;padding:10px 12px}.label-bank{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;margin-bottom:20px;padding:16px}.label-bank-title{color:#495057;font-weight:600;margin-bottom:12px}.label-bank-items{display:flex;flex-wrap:wrap;gap:8px}.label-bank-item{background:#fff;border:2px solid #007bff;border-radius:20px;color:#007bff;cursor:pointer;font-size:14px;font-weight:500;padding:8px 16px;transition:all .2s ease}.label-bank-item.selected,.label-bank-item:hover:not(.used):not(:disabled){background:#007bff;color:#fff}.label-bank-item.selected{box-shadow:0 0 0 3px #007bff4d}.label-bank-item.used{background:#e9ecef;border-color:#adb5bd;color:#6c757d;cursor:not-allowed;text-decoration:line-through}.label-image-container{border:2px solid #dee2e6;border-radius:8px;margin-bottom:20px;overflow:hidden;position:relative}.label-image-container img{display:block;height:auto;max-width:100%}.label-image-placeholder{background:#f8f9fa;border:2px dashed #dee2e6;border-radius:8px;color:#6c757d;padding:60px;text-align:center}.label-point{cursor:pointer;min-height:32px;min-width:32px;position:absolute;transform:translate(-50%,-50%);z-index:10}.label-point .point-number{align-items:center;background:#dc3545;border:3px solid #fff;border-radius:50%;box-shadow:0 2px 8px #0000004d;color:#fff;display:flex;font-size:14px;font-weight:700;height:32px;justify-content:center;transition:all .2s ease;width:32px}.label-point.clickable .point-number{animation:pulse 1.5s ease-in-out infinite}.label-point.answered .point-number{background:#28a745}.label-point .point-label{background:#28a745;color:#fff;font-size:12px;font-weight:500}.label-point .point-hint,.label-point .point-label{border-radius:4px;box-shadow:0 2px 4px #0003;left:36px;padding:4px 10px;position:absolute;top:50%;transform:translateY(-50%);white-space:nowrap}.label-point .point-hint{background:#ffc107;color:#212529;font-size:11px;font-style:italic}.label-point.correct .point-label,.label-point.correct .point-number{background:#28a745}.label-point.incorrect .point-label,.label-point.incorrect .point-number{background:#dc3545}.label-answers-summary{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;padding:16px}.summary-title{color:#495057;font-weight:600;margin-bottom:12px}.answer-row{align-items:center;border-bottom:1px solid #e9ecef;gap:8px;padding:8px 0}.answer-row:last-child{border-bottom:none}.answer-point-number{color:#495057;font-weight:600;min-width:24px}.answer-text{color:#212529;flex:1 1}.answer-text em{color:#6c757d;font-style:italic}.answer-row.correct .answer-text{color:#28a745}.answer-row.incorrect .answer-text{color:#dc3545;text-decoration:line-through}.correct-answer{color:#28a745;font-size:13px;margin-left:8px}[data-theme=dark] .label-image-instructions{background:#25282c;color:#adb5bd}[data-theme=dark] .label-bank{background:#25282c;border-color:#495057}[data-theme=dark] .label-bank-title{color:#e9ecef}[data-theme=dark] .label-bank-item{background:#1a1d21;border-color:#0d6efd;color:#6ea8fe}[data-theme=dark] .label-bank-item.selected,[data-theme=dark] .label-bank-item:hover:not(.used):not(:disabled){background:#0d6efd;color:#fff}[data-theme=dark] .label-bank-item.used{background:#2d3339;border-color:#6c757d;color:#6c757d}[data-theme=dark] .label-image-container{border-color:#495057}[data-theme=dark] .label-image-placeholder{background:#25282c;border-color:#495057;color:#adb5bd}[data-theme=dark] .label-answers-summary{background:#25282c;border-color:#495057}[data-theme=dark] .summary-title{color:#e9ecef}[data-theme=dark] .answer-row{border-bottom-color:#3d4349}[data-theme=dark] .answer-point-number{color:#adb5bd}[data-theme=dark] .answer-text{color:#e9ecef}[data-theme=dark] .answer-text em{color:#6c757d}.markers-to-place{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;margin-bottom:20px;padding:16px}.markers-title{color:#495057;font-weight:600;margin-bottom:12px}.markers-list{display:flex;flex-direction:column;gap:8px}.marker-to-place{align-items:center;background:#fff;border:2px solid #007bff;border-radius:8px;cursor:pointer;display:flex;gap:12px;padding:12px 16px;text-align:left;transition:all .2s ease}.marker-to-place:hover:not(:disabled){background:#e3f2fd;border-color:#0056b3}.marker-to-place.selected{background:#007bff;box-shadow:0 0 0 3px #007bff4d;color:#fff}.marker-to-place.selected .marker-letter{background:#fff;color:#007bff}.marker-to-place.placed{background:#e8f5e9;border-color:#28a745}.marker-to-place.placed .marker-letter{background:#28a745}.marker-to-place .marker-letter{align-items:center;background:#007bff;border-radius:4px;color:#fff;display:flex;flex-shrink:0;font-size:14px;font-weight:700;height:28px;justify-content:center;width:28px}.marker-to-place .marker-label{flex:1 1;font-size:15px}.marker-to-place .placed-indicator{color:#28a745;font-weight:700}.marker-to-place .review-indicator{font-size:18px;font-weight:700}.marker-to-place .review-indicator.correct{color:#28a745}.marker-to-place .review-indicator.incorrect{color:#dc3545}.marker-to-place.correct{background:#e8f5e9;border-color:#28a745}.marker-to-place.incorrect{background:#ffebee;border-color:#dc3545}.label-image-container.placing-mode{border-color:#ffc107;cursor:crosshair}.student-marker{align-items:center;background:#007bff;border:2px solid #fff;border-radius:4px;box-shadow:0 2px 6px #0000004d;color:#fff;display:flex;font-size:12px;font-weight:700;height:28px;justify-content:center;min-width:28px;padding:0 6px;position:absolute;transform:translate(-50%,-50%);z-index:10}.student-marker.correct{background:#28a745}.student-marker.incorrect{background:#dc3545}.correct-marker-position{align-items:center;background:#28a7454d;border:2px dashed #28a745;border-radius:4px;color:#28a745;display:flex;font-size:12px;font-weight:700;height:28px;justify-content:center;min-width:28px;padding:0 6px;position:absolute;transform:translate(-50%,-50%);z-index:5}[data-theme=dark] .markers-to-place{background:#25282c;border-color:#495057}[data-theme=dark] .markers-title{color:#e9ecef}[data-theme=dark] .marker-to-place{background:#1a1d21;border-color:#0d6efd;color:#e9ecef}[data-theme=dark] .marker-to-place:hover:not(:disabled){background:#252a33;border-color:#0d6efd}[data-theme=dark] .marker-to-place.selected{background:#0d6efd;color:#fff}[data-theme=dark] .marker-to-place.correct,[data-theme=dark] .marker-to-place.placed{background:#28a74526;border-color:#28a745}[data-theme=dark] .marker-to-place.incorrect{background:#dc354526;border-color:#dc3545}[data-theme=dark] .label-image-container.placing-mode{border-color:#ffc107}.label-area{background:#dc354533;border:2px solid #dc3545;cursor:pointer;position:absolute;transition:all .2s ease;z-index:10}.label-area:hover{background:#dc35454d}.label-area.clickable{animation:area-pulse 1.5s ease-in-out infinite}@keyframes area-pulse{0%,to{box-shadow:none}50%{box-shadow:0 0 0 4px #007bff4d}}.label-area.answered,.label-area.correct{background:#28a74533;border-color:#28a745}.label-area.incorrect{background:#dc354533;border-color:#dc3545}.label-area .area-number{align-items:center;background:#dc3545;border-radius:50%;box-shadow:0 2px 4px #0000004d;color:#fff;display:flex;font-size:12px;font-weight:700;height:24px;justify-content:center;left:4px;position:absolute;top:4px;width:24px}.label-area.answered .area-number{background:#28a745}.label-area .area-label-text{background:#28a745;color:#fff;font-size:11px;font-weight:500;left:32px;padding:4px 8px;top:4px}.label-area .area-hint,.label-area .area-label-text{border-radius:4px;box-shadow:0 2px 4px #0003;position:absolute;white-space:nowrap}.label-area .area-hint{background:#ffc107;bottom:4px;color:#212529;font-size:10px;font-style:italic;left:4px;padding:3px 8px}.correct-marker-area{background:#28a74526;border:2px dashed #28a745;position:absolute;z-index:5}.correct-marker-area .correct-area-label{background:#28a745cc;border-radius:4px;color:#fff;font-size:11px;font-weight:700;left:2px;padding:2px 6px;position:absolute;top:2px}[data-theme=dark] .label-area{background:#dc354526}[data-theme=dark] .label-area:hover{background:#dc354540}[data-theme=dark] .label-area.answered,[data-theme=dark] .label-area.correct{background:#28a74526}[data-theme=dark] .label-area.incorrect{background:#dc354526}[data-theme=dark] .correct-marker-area{background:#28a7451a}.label-polygon{z-index:10}.polygon-number-badge{align-items:center;background:#4a90d9;border:2px solid #fff;border-radius:4px;box-shadow:0 2px 4px #0003;color:#fff;display:flex;font-size:12px;font-weight:700;gap:6px;height:24px;justify-content:center;min-width:24px;padding:0 8px;white-space:nowrap}.polygon-number-badge .polygon-number{flex-shrink:0}.polygon-number-badge .polygon-label-text{font-size:11px;font-weight:400;max-width:100px;overflow:hidden;text-overflow:ellipsis}.polygon-number-badge.answered,.polygon-number-badge.correct{background:#28a745}.polygon-number-badge.incorrect{background:#dc3545}.polygon-hint{background:#ffc107e6;border-radius:4px;box-shadow:0 2px 4px #0003;color:#333;font-size:11px;padding:4px 8px;white-space:nowrap}[data-theme=dark] .polygon-number-badge{box-shadow:0 2px 4px #0006}[data-theme=dark] .polygon-hint{background:#ffc107cc}.multi-part-question-preview,.multi-part-question-preview *,.multi-part-question-preview :after,.multi-part-question-preview :before{direction:ltr!important;text-orientation:mixed!important;transform:none!important;writing-mode:horizontal-tb!important;-webkit-writing-mode:horizontal-tb!important;-ms-writing-mode:horizontal-tb!important}.multi-part-question-preview{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;contain:layout style;isolation:isolate;max-width:100%;overflow:hidden;padding:20px}.preview-header{align-items:center;border-bottom:2px solid #e9ecef;display:flex;justify-content:space-between;padding-bottom:15px}.preview-header h3{margin:0}.preview-controls label{align-items:center;cursor:pointer;display:flex;-webkit-user-select:none;user-select:none}.preview-controls input[type=checkbox]{margin-right:8px}.question-content-preview{font-size:16px;line-height:1.6;max-width:100%;overflow-x:auto}.question-context{background:#f8f9fa;border-left:4px solid #007bff;border-radius:6px;margin-bottom:25px;padding:20px}.context-text{color:#333;white-space:pre-wrap}.context-images{display:flex;flex-wrap:wrap;gap:15px}.context-images img{border-radius:4px;box-shadow:0 2px 4px #0000001a;height:auto;max-width:100%}.context-data{margin-top:15px}.context-data pre{background:#fff;border-radius:4px;font-size:14px;overflow-x:auto;padding:15px}.part-navigation{align-items:center;background:#f8f9fa;border-radius:6px;display:flex;gap:20px;justify-content:center;margin-bottom:20px;padding:15px}.nav-button{background:#007bff;border-radius:4px;color:#fff;font-size:14px;padding:8px 16px;transition:background-color .2s}.nav-button:hover:not(:disabled){background:#0056b3}.nav-button:disabled{background:#6c757d;opacity:.6}.part-indicator{color:#495057;font-weight:500}.parts-container{margin-bottom:20px}.question-part{background:#fff;border:1px solid #dee2e6;border-radius:6px;margin-bottom:30px;max-width:100%;overflow:hidden;padding:20px}.question-part.single-part-mode{background:#0000;border:none;margin-bottom:0;padding:0}.part-header{align-items:baseline;margin-bottom:15px}.part-label{color:#007bff;font-size:18px}.part-points{color:#6c757d;font-size:14px}.part-question{color:#333;font-size:16px;line-height:1.6;margin-bottom:20px}.part-answer-section{box-sizing:border-box;max-width:100%;padding-left:0}.options-list,.true-false-options{display:flex;flex-direction:column;gap:12px;max-width:100%}.option-label,.options-list,.true-false-options{transform:none!important;writing-mode:horizontal-tb!important}.option-label{background:#f8f9fa;border-radius:4px;box-sizing:border-box;cursor:pointer;flex-direction:row;padding:10px 15px;transition:background-color .2s;width:100%}.option-label:hover{background:#e9ecef}.multi-part-question-preview input[type=checkbox],.multi-part-question-preview input[type=radio],.option-label input[type=checkbox],.option-label input[type=radio]{-webkit-appearance:none!important;appearance:none!important;background-color:#fff;border:2px solid #6c757d;box-shadow:none;cursor:pointer;flex-shrink:0;height:20px;margin-right:12px;margin-top:0;min-height:20px;min-width:20px;outline:none;position:relative;transition:all .2s ease;width:20px}.multi-part-question-preview input[type=radio],.option-label input[type=radio]{border-radius:50%}.multi-part-question-preview input[type=checkbox],.option-label input[type=checkbox]{border-radius:4px}.multi-part-question-preview input[type=checkbox]:checked,.multi-part-question-preview input[type=radio]:checked,.option-label input[type=checkbox]:checked,.option-label input[type=radio]:checked{background-color:#007bff!important;border-color:#007bff!important}.multi-part-question-preview input[type=checkbox]:checked:after,.option-label input[type=checkbox]:checked:after{align-items:center;color:#fff;content:"✓";display:flex;font-size:14px;font-weight:700;justify-content:center;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.multi-part-question-preview input[type=checkbox]:hover,.multi-part-question-preview input[type=radio]:hover,.option-label input[type=checkbox]:hover,.option-label input[type=radio]:hover{border-color:#007bff}.multi-part-question-preview input[type=checkbox]:disabled,.multi-part-question-preview input[type=radio]:disabled,.option-label input[type=checkbox]:disabled,.option-label input[type=radio]:disabled{cursor:not-allowed;opacity:.6}[data-theme=dark] .multi-part-question-preview input[type=checkbox],[data-theme=dark] .multi-part-question-preview input[type=radio],[data-theme=dark] .option-label input[type=checkbox],[data-theme=dark] .option-label input[type=radio]{background-color:#2d3748;border-color:#6c757d}[data-theme=dark] .multi-part-question-preview input[type=checkbox]:checked,[data-theme=dark] .multi-part-question-preview input[type=radio]:checked,[data-theme=dark] .option-label input[type=checkbox]:checked,[data-theme=dark] .option-label input[type=radio]:checked{background-color:#007bff!important;border-color:#007bff!important}.option-text{font-size:16px;font-weight:400;text-orientation:mixed!important;transform:none!important;white-space:normal;word-break:break-word;writing-mode:horizontal-tb!important}.option-text.correct-answer{color:#28a745;font-weight:500}.correct-indicator{margin-left:10px}.fill-blank-input{border:2px solid #ced4da;border-radius:4px;font-size:16px;max-width:400px;padding:8px 12px;transition:border-color .2s;width:100%}.fill-blank-input:focus{border-color:#007bff;outline:none}.correct-answer-display{background:#d4edda;border:1px solid #c3e6cb;color:#155724;font-size:14px;margin-top:10px;padding:10px}.essay-input,.short-answer-input{border:2px solid #ced4da;border-radius:4px;font-family:inherit;font-size:16px;padding:10px 12px;resize:vertical;transition:border-color .2s;width:100%}.essay-input:focus,.short-answer-input:focus{border-color:#007bff;outline:none}.rubric-display{background:#e7f3ff;border:1px solid #bee5eb;border-radius:4px;color:#004085;font-size:14px;margin-top:15px;padding:12px}.rubric-display strong{display:block;margin-bottom:5px}.question-footer{border-top:2px solid #e9ecef;margin-top:20px;padding-top:20px}.multi-part-question-preview .total-points{color:#28a745;font-size:18px;font-weight:600}.progress-indicator{background:#f8f9fa;border-radius:20px;color:#6c757d;font-size:14px;padding:6px 12px}.multi-part-question-preview.student-mode{border:1px solid #dee2e6;box-shadow:none}@media (max-width:768px){.multi-part-question-preview,.question-context,.question-part{padding:15px}.part-answer-section{padding-left:10px}.fill-blank-input{max-width:100%}.part-navigation{flex-wrap:wrap;gap:10px}.nav-button{font-size:13px;padding:6px 12px}}[data-theme=dark] .multi-part-question-preview{background:var(--bg-card);box-shadow:0 2px 4px #0000004d}[data-theme=dark] .preview-header{border-bottom-color:var(--border-primary)}[data-theme=dark] .preview-header h3{color:var(--text-primary)}[data-theme=dark] .question-context{background:var(--bg-secondary);border-left-color:var(--color-primary)}[data-theme=dark] .context-text{color:var(--text-primary)}[data-theme=dark] .context-data pre{background:var(--bg-tertiary);color:var(--text-primary)}[data-theme=dark] .part-navigation{background:var(--bg-secondary)}[data-theme=dark] .part-indicator{color:var(--text-primary)}[data-theme=dark] .question-part{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .part-label{color:var(--color-primary)}[data-theme=dark] .part-points{color:var(--text-secondary)}[data-theme=dark] .part-question{color:var(--text-primary)}[data-theme=dark] .option-label{background:var(--bg-secondary);color:var(--text-primary)}[data-theme=dark] .option-label:hover{background:var(--bg-hover)}[data-theme=dark] .option-text{color:var(--text-primary)}[data-theme=dark] .essay-input,[data-theme=dark] .fill-blank-input,[data-theme=dark] .short-answer-input{background-color:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .essay-input:focus,[data-theme=dark] .fill-blank-input:focus,[data-theme=dark] .short-answer-input:focus{border-color:var(--color-primary)}[data-theme=dark] .correct-answer-display{background:#25a56433;border-color:var(--color-success);color:var(--color-success)}[data-theme=dark] .rubric-display{background:#0d6efd1a;border-color:var(--color-primary);color:var(--color-primary)}[data-theme=dark] .multi-part-question-preview .total-points{color:var(--color-success)}[data-theme=dark] .progress-indicator{background:var(--bg-secondary);color:var(--text-secondary)}[data-theme=dark] .multi-part-question-preview.student-mode{border-color:var(--border-primary)}.multi-part-question-preview img.img-small{height:auto;max-width:100%;width:200px}.multi-part-question-preview img.img-medium{height:auto;max-width:100%;width:400px}.multi-part-question-preview img.img-large{height:auto;max-width:100%;width:600px}.multi-part-question-preview img.img-original{height:auto;max-width:100%;width:auto}.unified-question-renderer{text-align:left!important}.unified-question-renderer *{text-align:inherit!important}.unified-question-renderer .question-text,.unified-question-renderer [style*="text-align: center"],.unified-question-renderer div,.unified-question-renderer p,.unified-question-renderer span{text-align:left!important}[dir=rtl] .unified-question-renderer{text-align:right!important}[dir=rtl] .unified-question-renderer *{text-align:inherit!important}.unified-question-renderer img{border-radius:4px;box-shadow:0 2px 4px #0000001a;display:block;height:auto;margin:8px 0;max-width:100%}.unified-question-renderer img.img-small{max-width:200px}.unified-question-renderer img.img-medium{max-width:400px}.unified-question-renderer img.img-large{max-width:600px}.unified-question-renderer img.img-original{max-width:100%}.unified-question-renderer p img,.unified-question-renderer span img{display:inline-block;margin:0 4px;vertical-align:middle}.unified-question-renderer p:has(>img:only-child){text-align:center!important}.unified-question-renderer .option-content img{margin:4px 0}.unified-question-renderer .question-content p{margin:0!important;padding:0!important}.unified-question-renderer>div>div:first-child{margin-bottom:0!important}[data-theme=dark] .unified-question-renderer{border-color:var(--border-primary)!important}[data-theme=dark] .unified-question-renderer [style*="background-color: #ffffff"],[data-theme=dark] .unified-question-renderer [style*="background-color:#ffffff"],[data-theme=dark] .unified-question-renderer [style*="backgroundColor: #ffffff"],[data-theme=dark] .unified-question-renderer [style*="backgroundColor:#ffffff"]{background-color:initial!important}[data-theme=dark] .unified-question-renderer .question-text,[data-theme=dark] .unified-question-renderer div,[data-theme=dark] .unified-question-renderer p,[data-theme=dark] .unified-question-renderer span{color:var(--text-primary)!important}[data-theme=dark] .unified-question-renderer img{box-shadow:0 2px 4px #0006}[data-theme=dark] .unified-question-renderer,[data-theme=dark] .unified-question-renderer *{color:#e9ecef!important}[data-theme=dark] .unified-question-renderer>div,[data-theme=dark] .unified-question-renderer>div>div{background-color:initial!important}[data-theme=dark] .unified-question-renderer input,[data-theme=dark] .unified-question-renderer select,[data-theme=dark] .unified-question-renderer textarea{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .unified-question-renderer input:focus,[data-theme=dark] .unified-question-renderer select:focus,[data-theme=dark] .unified-question-renderer textarea:focus{border-color:#6ea8fe!important;box-shadow:0 0 0 3px #6ea8fe33!important}[data-theme=dark] .unified-question-renderer input[type=checkbox],[data-theme=dark] .unified-question-renderer input[type=radio]{accent-color:#6ea8fe}[data-theme=dark] .unified-question-renderer button{color:#e9ecef!important}[data-theme=dark] .unified-question-renderer button,[data-theme=dark] .unified-question-renderer label{background-color:#3d4148!important;border-color:#495057!important}.version-history-viewer{background:#fff;border-radius:8px;box-shadow:0 2px 10px #0000001a;display:flex;flex-direction:column;max-height:90vh;overflow:hidden}.version-history-header{align-items:center;border-bottom:1px solid #e1e4e8;display:flex;justify-content:space-between;padding:20px}.version-history-header h2{color:#24292e;font-size:24px;margin:0}.version-history-toolbar{align-items:center;background-color:#f6f8fa;border-bottom:1px solid #e1e4e8;display:flex;justify-content:space-between;padding:12px 20px}.toolbar-info{color:#586069;font-size:14px}.version-history-loading{color:#586069;padding:40px;text-align:center}.version-list{flex:1 1;overflow-y:auto;padding:20px}.version-item{margin-bottom:24px;padding:20px}.version-item:hover{box-shadow:0 2px 8px #0000001a}.version-item.selected{background-color:#f0f7ff;border-color:#0366d6}.version-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:12px}.version-title{align-items:center;display:flex;gap:12px}.version-title h4{color:#24292e;font-size:18px;margin:0}.version-title input[type=checkbox]{cursor:pointer;height:18px;width:18px}.original-badge{background-color:#28a745;font-weight:600}.original-badge,.status-badge{border-radius:12px;font-size:12px}.status-badge{padding:2px 8px}.badge-draft{background-color:#6c757d;color:#fff}.badge-review{background-color:#ffc107;color:#000}.badge-approved{background-color:#28a745;color:#fff}.badge-deprecated{background-color:#dc3545;color:#fff}.badge-active{background-color:#0366d6;color:#fff}.version-date{color:#586069;font-size:14px}.version-details{margin-bottom:16px}.change-info{margin-bottom:8px}.change-type{border-radius:4px;font-size:14px;padding:4px 8px}.change-description{color:#24292e;font-size:14px}.version-tags{gap:8px;margin-top:8px}.tag{border-radius:12px;font-size:12px}.version-notes{background-color:#f6f8fa;border-radius:4px;color:#586069;font-size:14px;margin-top:8px;padding:8px}.version-preview{border-radius:6px;margin-top:16px;padding:16px}.version-comparison{background-color:#f6f8fa;border:1px solid #e1e4e8;border-radius:8px;margin:20px;padding:20px}.version-comparison h3{color:#24292e;font-size:20px;margin:0 0 16px}.comparison-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:1fr 1fr}.comparison-column{background-color:#fff;border:1px solid #e1e4e8;border-radius:6px;padding:16px}.comparison-column h4{color:#24292e;font-size:16px;margin:0 0 12px}.comparison-field{border-radius:4px;margin-bottom:12px;padding:8px;transition:background-color .2s}.comparison-field.different{background-color:#fff3cd;border:1px solid #ffeaa7}.comparison-field strong{color:#586069;display:block;font-size:12px;margin-bottom:4px}.field-value{color:#24292e;font-size:14px;word-break:break-word}.btn-primary:hover{background-color:#0256c7;border-color:#0256c7}.hierarchical-category-selector{display:flex;flex-wrap:wrap}.question-bank{margin:0 auto;max-width:1200px;min-height:calc(100vh - 200px)}.question-group-header{background:#e3f2fd;border-left:4px solid #2196f3;border-radius:4px;margin:15px 0 5px;padding:8px 12px}.group-header-content{align-items:center;display:flex;gap:8px}.group-toggle-btn{background:none;border:none;border-radius:3px;color:#1976d2;cursor:pointer;font-size:12px;padding:2px 6px;transition:background-color .2s}.group-toggle-btn:hover{background-color:#bbdefb}.group-indicator{color:#1976d2;font-size:14px;font-weight:600}.question-card-wrapper.grouped-question{border-left:2px solid #bbdefb;margin-bottom:8px;margin-left:20px;padding-left:10px}.question-card-wrapper.standalone-question{margin-bottom:12px}.question-group-header.standalone{background:#f5f5f5;border-left-color:#9e9e9e}.question-group-header.standalone .group-indicator{color:#616161}.question-bank-header{align-items:center;border-bottom:2px solid #e1e5e9;display:flex;justify-content:space-between;margin-bottom:20px;padding-bottom:15px}.question-bank-header h1{color:#333;margin:0}.filter-section,.sort-section{margin-bottom:20px}.filter-section:last-child,.sort-section:last-child{margin-bottom:0}.checkbox-filter{align-items:center;display:flex;flex:0 0 auto;min-width:auto}.checkbox-filter input[type=checkbox]{margin-right:5px}.loading-spinner{border:3px solid #f3f3f3;margin:0 auto}.error-message{margin-bottom:20px}.empty-message{color:#6c757d;padding:40px;text-align:center}.questions-list{grid-gap:20px;display:grid;gap:20px}.question-group-container{background-color:#fafafa;border:2px solid #e0e0e0;border-radius:12px;box-shadow:0 2px 4px #0000000d;display:flex;flex-direction:column;padding:16px;transition:all .2s ease}.question-group-container:hover{border-color:#2196f3;box-shadow:0 4px 8px #0000001a}.question-item{word-wrap:break-word;background-color:#fff!important;display:flex!important;flex-direction:column!important;margin-bottom:0;overflow:hidden;overflow-wrap:break-word;padding:16px;text-align:left!important;word-break:break-word}.question-item>.question-header{width:100%!important}.question-item>.question-actions{margin-top:12px;width:100%!important}.version-item{word-wrap:break-word;overflow:hidden;overflow-wrap:break-word;word-break:break-word}.question-item *{text-align:inherit!important}.question-content-wrapper{display:flex;flex-direction:column;gap:8px}.question-card{word-wrap:break-word;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;overflow-wrap:break-word;transition:all .2s ease;word-break:break-word}.question-card:hover{box-shadow:0 4px 8px #00000026}.question-card.selected{background:#f0f8ff;border-color:#007bff}.question-card.grouped-question{border:none;box-shadow:none}.question-card.grouped-question:hover{box-shadow:none}.version-group-main .question-card{margin-bottom:0}.question-header{gap:8px;width:100%}.question-header input[type=checkbox]{align-self:flex-start;flex-shrink:0;margin-top:0}.question-checkbox-container{align-items:center;display:flex;flex-shrink:0;margin-right:12px}.question-info{word-wrap:break-word;align-self:flex-start;flex:1 1 auto;flex-direction:column;gap:0;overflow-wrap:break-word;text-align:left;word-break:break-word}.question-meta{font-size:.85rem;gap:12px;margin-top:4px}.question-meta .question-type{background-color:#f1f3f4;border-radius:12px;color:#5f6368;font-weight:500;padding:3px 10px}.question-meta .question-category{color:#6c757d}.question-version-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.version-tag-badge{border-radius:12px;display:inline-block;font-size:11px;font-weight:500;padding:2px 10px;text-transform:capitalize}.version-tag-badge.quiz{background-color:#e3f2fd;color:#1565c0}.version-tag-badge.exam{background-color:#fce4ec;color:#c2185b}.version-tag-badge.practice{background-color:#e8f5e9;color:#2e7d32}.version-tag-badge.clicker{background-color:#fff3e0;color:#ef6c00}.version-tag-badge.custom,.version-tag-badge.other{background-color:#f3e5f5;color:#7b1fa2}.question-checkbox{margin-right:10px}.question-text{font-size:16px;max-width:100%;overflow-wrap:break-word;word-break:break-word}.question-text p{margin:0;text-align:left}.question-text p:not(:last-child){margin-bottom:.5em}.question-text pre{background-color:#f5f5f5;border-radius:4px;overflow-x:auto;padding:10px}.question-text code{background-color:#f5f5f5;border-radius:3px;font-family:Courier New,monospace;padding:2px 4px}.question-text img{display:block;height:auto;margin:10px 0;max-width:100%}.answer{padding:5px 0}.answer.correct{color:#28a745;font-weight:500}.answer.incorrect{color:#6c757d}.answer input[type=checkbox],.answer input[type=radio]{margin-right:8px}.question-metadata{color:#6c757d;font-size:14px;gap:15px;margin-top:10px}.question-category,.question-difficulty,.question-type{display:inline-block}.question-actions{gap:10px;margin-top:10px}.pagination{align-items:center;display:flex;gap:5px;justify-content:center;margin-top:30px}.pagination button{background:#fff;border:1px solid #dee2e6;border-radius:4px;color:#007bff;cursor:pointer;padding:8px 12px;transition:all .2s}.pagination button:hover:not(:disabled){background:#e9ecef}.pagination button:disabled{color:#6c757d;cursor:not-allowed}.pagination button.active{background:#007bff;border-color:#007bff;color:#fff}.pagination .page-info{color:#6c757d;margin:0 15px}.page-size-selector{justify-content:center;margin-top:15px}.question-details{border-top:1px solid #e9ecef;margin-top:15px;padding-top:15px}.expand-btn{background:none;border:none;color:#007bff;cursor:pointer;font-size:14px;padding:0;text-decoration:underline}.expand-btn:hover{color:#0056b3}.bulk-actions{align-items:center;background:#f8f9fa;border-radius:4px;justify-content:space-between;margin-bottom:20px;padding:15px}.bulk-actions .selection-info{font-weight:500}.bulk-actions .actions{display:flex;gap:10px}.modal{background:#fff;border-radius:8px;max-height:80vh;max-width:500px;overflow-y:auto;padding:20px;width:90%}.modal-header{margin-bottom:20px}.modal-close:hover{color:#000}@media (max-width:768px){.filter-row{flex-direction:column}.filter-row>*{min-width:0;width:100%}.sort-controls{align-items:stretch;flex-direction:column}.sort-controls select{max-width:100%}.question-bank-header{align-items:flex-start;flex-direction:column;gap:15px}.header-actions{justify-content:flex-start;width:100%}.question-metadata{flex-wrap:wrap}.bulk-actions{flex-direction:column;gap:10px}}.version-group{border:1px solid #dee2e6}.version-group-header{align-items:center;background:#f8f9fa;border-bottom:1px solid #dee2e6;cursor:pointer;display:flex;justify-content:space-between;padding:12px 15px}.version-group-header:hover{background:#e9ecef}.version-group-content{align-items:center;display:flex;gap:10px}.version-expand-icon{transition:transform .2s}.version-group.expanded .version-expand-icon{transform:rotate(90deg)}.version-count{background:#007bff;color:#fff}.version-actions{gap:5px}.version-group-body{background:#fafbfc;padding:15px}.versions-list{grid-gap:10px;display:grid;gap:10px}.version-item:hover{border-color:#0366d6}.version-number{background:#e1e4e8;border-radius:4px;font-size:12px;font-weight:500;padding:4px 8px}.version-actions{align-items:center;gap:6px}.version-actions .btn,.version-actions .btn-sm{font-size:12px!important;line-height:1.2;padding:4px 8px!important;white-space:nowrap}.original-badge{background:#28a745;border-radius:4px;color:#fff;font-size:11px;margin-left:5px;padding:2px 8px}.question-card-wrapper{transition:all .2s ease}.question-card-wrapper.expanded{background:#f8f9fa;border-radius:8px;margin:10px 0;padding:10px}.unified-question-renderer{word-wrap:break-word;max-width:100%;overflow-wrap:break-word;width:100%;word-break:break-word}.unified-question-renderer p{margin:0 0 .5em;text-align:left}.unified-question-renderer p:last-child{margin-bottom:0}.question-type-badge{background:#e9ecef;border-radius:4px;color:#495057;display:inline-block;font-size:12px;font-weight:500;margin-right:8px;padding:3px 8px}.version-controls button{border:1px solid #0000;border-radius:4px;cursor:pointer;font-size:12px;padding:4px 10px;transition:all .2s}.link-version-btn{background:#f0f9ff;border-color:#0969da;color:#0969da}.link-version-btn:hover{background:#0969da;color:#fff}.unlink-version-btn{background:#fff5f5;border-color:#d1242f;color:#d1242f}.unlink-version-btn:hover{background:#d1242f;color:#fff}.version-badge{background:#dbeafe;color:#1e40af;font-size:11px;margin-left:8px;padding:2px 6px}.question-bank *{box-sizing:border-box}.question-info *{text-align:left!important}.version-group-questions{background:#f8fafb;border-radius:0 0 8px 8px;padding:10px}.version-group-main{border-bottom:2px solid #0969da;margin-bottom:10px;padding-bottom:10px}.version-list{width:100%}.question-item.expanded .version-list{display:flex;flex-direction:column;gap:12px;width:100%}.version-list .version-item{box-sizing:border-box;margin-top:0;width:100%}.linked-version{background:#e7f3ff;border:1px solid #b3d9ff}.question-bank-item{width:100%}.question-bank-item p{margin:0;padding:0;text-align:left!important}.question-bank-item .unified-question-renderer{padding:0}.question-info .unified-question-renderer>div{margin:0!important;padding:0!important}.question-info .unified-question-renderer p{margin:0 0 8px!important}.question-info .unified-question-renderer p:last-child{margin-bottom:0!important}.question-info .unified-question-renderer .options-container,.question-info .unified-question-renderer .true-false-container{margin-bottom:0!important;margin-top:8px!important}.question-info .unified-question-renderer>div:first-child{margin-bottom:0!important;padding-bottom:0!important}.question-info .unified-question-renderer div[style*=marginBottom]{margin-bottom:8px!important}.question-info .unified-question-renderer div[style*="display: flex"]{margin-top:8px!important}.question-bank-item.unified-question-renderer{background:#0000!important;border:none!important;margin:0!important;padding:0!important}.question-info .unified-question-renderer>div>div:first-child{margin-bottom:0!important}.question-info .force-left-align{margin:0!important;padding:0!important}.question-text{text-align:left!important}.question-text,.question-text-wrapper{margin:0!important;padding:0!important;width:100%}.question-text-wrapper{display:block;height:auto!important;min-height:0!important}[dir=rtl] .question-text{text-align:end;text-align:right}.question-answers{display:flex;flex-direction:column;gap:5px}.answer{background:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;padding:8px 12px;transition:all .2s}.answer:hover{background:#e9ecef;border-color:#adb5bd}.answer.correct{background:#d4edda;border-color:#c3e6cb;color:#155724}.answer-checkbox,.answer-radio{margin-right:8px}.question-metadata{border-top:1px solid #e9ecef;display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;padding-top:12px}.metadata-item{align-items:center;color:#6c757d;display:flex;font-size:13px;gap:5px}.metadata-label{font-weight:500}.metadata-value{color:#495057}.difficulty-badge{border-radius:4px;font-size:12px;padding:2px 8px}.difficulty-easy{background:#d4edda;color:#155724}.difficulty-medium{background:#fff3cd;color:#856404}.difficulty-hard{background:#f8d7da;color:#721c24}.question-bank .version-count-badge,.question-bank .version-indicator{background-color:#2196f3;border:none!important;border-radius:12px;color:#fff;display:inline-block;font-size:11px;font-weight:500;height:auto;line-height:16px;margin:0;min-width:75px;padding:2px 8px;text-align:center;white-space:nowrap}.question-bank .version-indicator{background-color:#e8f0fe;border:1px solid #dadce0!important;color:#202124}.question-bank-text,.question-bank-text *{font-size:14px!important;line-height:1.4!important}.question-bank-text p{font-size:14px!important;margin:0!important;padding:0!important}@media (max-width:768px){.question-actions{flex-wrap:wrap}.question-metadata{font-size:12px}.version-group-header{font-size:14px}}.questions-loading{align-items:center;display:flex;justify-content:center;min-height:200px}.no-questions{color:#6c757d;padding:40px}.no-questions-icon{font-size:48px;margin-bottom:16px;opacity:.5}.select-all-container{align-items:center;background:#e7f3ff;border:1px solid #b3d9ff;border-radius:4px;display:flex;gap:12px;margin-bottom:16px;padding:12px}.select-all-checkbox{align-items:center;display:flex;font-weight:500;gap:8px}.selection-count{color:#0056b3;font-size:14px;margin-left:auto}.question-actions{align-items:center;border-top:1px solid #e9ecef;flex-wrap:wrap;justify-content:flex-start;margin-top:8px;padding-top:8px;width:100%}.question-actions .btn,.question-actions .btn-sm{font-size:12px!important;line-height:1.2;padding:4px 8px!important;white-space:nowrap}.category-path{color:#6c757d;font-size:14px}.search-highlight{background-color:#fff3cd;border-radius:2px;padding:2px 0}.question-info{align-items:flex-start!important}[data-theme=dark] .question-bank{background:#0000}[data-theme=dark] .question-bank-header h1{color:var(--text-primary)}[data-theme=dark] .filter-container{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .filter-section h3,[data-theme=dark] .filter-section label,[data-theme=dark] .sort-section h3{color:var(--text-primary)}[data-theme=dark] .filter-container input,[data-theme=dark] .filter-container select,[data-theme=dark] .filter-row input,[data-theme=dark] .filter-row select{background:var(--input-bg)!important;border-color:var(--border-primary)!important;color:var(--text-primary)!important}[data-theme=dark] .filter-container input:focus,[data-theme=dark] .filter-container select:focus,[data-theme=dark] .filter-row input:focus,[data-theme=dark] .filter-row select:focus{background:var(--input-bg)!important;border-color:var(--border-active)!important}[data-theme=dark] .question-card{background:var(--bg-card)!important;border-color:var(--border-primary)!important}[data-theme=dark] .question-card:hover{box-shadow:var(--shadow-md)!important}[data-theme=dark] .question-card.selected{background:#3d8bfd33!important;border-color:var(--color-primary)!important}[data-theme=dark] .question-header,[data-theme=dark] .question-text{color:var(--text-primary)}[data-theme=dark] .question-footer,[data-theme=dark] .question-meta{color:var(--text-secondary)}[data-theme=dark] .version-tag-badge{opacity:.9}[data-theme=dark] .version-tag-badge.quiz{background-color:#1565c04d;color:#64b5f6}[data-theme=dark] .version-tag-badge.exam{background-color:#c2185b4d;color:#f48fb1}[data-theme=dark] .version-tag-badge.practice{background-color:#2e7d324d;color:#81c784}[data-theme=dark] .version-tag-badge.clicker{background-color:#ef6c004d;color:#ffb74d}[data-theme=dark] .version-tag-badge.custom,[data-theme=dark] .version-tag-badge.other{background-color:#7b1fa24d;color:#ce93d8}[data-theme=dark] .pagination{border-top-color:var(--border-primary)}[data-theme=dark] .pagination button{background:var(--bg-secondary)!important;border-color:var(--border-primary)!important;color:var(--color-primary)!important}[data-theme=dark] .pagination button:hover:not(:disabled){background:var(--bg-hover)!important}[data-theme=dark] .pagination button.active{background:var(--color-primary)!important;border-color:var(--color-primary)!important;color:#fff!important}[data-theme=dark] .pagination button:disabled{background:var(--bg-tertiary)!important;color:var(--text-tertiary)!important}[data-theme=dark] .pagination .page-info{color:var(--text-secondary)}[data-theme=dark] .pagination-info{background:#0000!important;background-color:initial!important;color:var(--text-secondary)}[data-theme=dark] .question-group-header{background:#3d8bfd26;border-left-color:var(--color-primary)}[data-theme=dark] .group-indicator,[data-theme=dark] .group-toggle-btn{color:var(--color-primary)}[data-theme=dark] .group-toggle-btn:hover{background-color:#3d8bfd33}[data-theme=dark] .question-card-wrapper.grouped-question{border-left-color:var(--border-primary)}[data-theme=dark] .question-group-header.standalone{background:var(--bg-secondary);border-left-color:var(--border-primary)}[data-theme=dark] .question-group-header.standalone .group-indicator{color:var(--text-secondary)}[data-theme=dark] .version-badge{background:var(--bg-tertiary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .question-bank .version-count-badge,[data-theme=dark] .question-bank .version-indicator{background-color:#1e3a5f;border-color:#3b82f6;color:#93c5fd}[data-theme=dark] .question-bank .version-indicator{background-color:#1e3a5f;border:1px solid #3b82f6;color:#93c5fd}[data-theme=dark] .answer{background:var(--bg-secondary);color:var(--text-primary)}[data-theme=dark] .answer.correct{background-color:#25a56426}[data-theme=dark] .select-all-container{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .stats-display{color:var(--text-secondary)}[data-theme=dark] .category-badge,[data-theme=dark] .difficulty-badge,[data-theme=dark] .type-badge{background:var(--bg-tertiary);color:var(--text-primary)}[data-theme=dark] .page-size-selector{color:var(--text-primary)}[data-theme=dark] .page-size-selector select{background:var(--input-bg)!important;border-color:var(--border-primary)!important;color:var(--text-primary)!important}[data-theme=dark] .question-actions .btn-primary,[data-theme=dark] .version-actions .btn-primary{background:#0d6efd!important;border-color:#0d6efd!important;color:#fff!important}[data-theme=dark] .question-actions .btn-secondary,[data-theme=dark] .version-actions .btn-secondary{background:#6c757d!important;border-color:#6c757d!important;color:#fff!important}[data-theme=dark] .question-actions .btn-warning,[data-theme=dark] .version-actions .btn-warning{background:#ffc107!important;border-color:#ffc107!important;color:#212529!important}[data-theme=dark] .question-actions .btn-danger,[data-theme=dark] .version-actions .btn-danger{background:#dc3545!important;border-color:#dc3545!important;color:#fff!important}[data-theme=dark] .question-actions .btn-info,[data-theme=dark] .version-actions .btn-info{background:#17a2b8!important;border-color:#17a2b8!important;color:#fff!important}[data-theme=dark] .version-controls{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .version-controls button{color:var(--text-primary)}[data-theme=dark] .question-stats{color:var(--text-secondary)}[data-theme=dark] .bulk-actions{background:var(--bg-secondary);border:1px solid var(--border-primary)}[data-theme=dark] .bulk-actions .selection-info{color:var(--text-primary)}[data-theme=dark] .loading{color:var(--text-secondary)}[data-theme=dark] .version-item{border-color:var(--border-primary)!important}[data-theme=dark] .modal,[data-theme=dark] .version-item{background:var(--bg-card)!important}[data-theme=dark] .modal-header{border-bottom-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .modal-body{color:var(--text-primary)}[data-theme=dark] .modal-footer{border-top-color:var(--border-primary)}[data-theme=dark] .order-controls button{background:var(--bg-secondary)!important;border-color:var(--border-primary)!important;color:var(--text-primary)!important}[data-theme=dark] .order-controls button:hover{background:var(--bg-hover)!important}[data-theme=dark] .question-item{background-color:var(--bg-card)!important;border:1px solid var(--border-primary)}[data-theme=dark] .question-item:hover{box-shadow:var(--shadow-md)}[data-theme=dark] .question-group-container{background-color:var(--bg-secondary)!important;border-color:var(--border-primary)!important}[data-theme=dark] .question-group-container:hover{border-color:var(--color-primary)!important;box-shadow:var(--shadow-md)}[data-theme=dark] .pagination-controls{background:#0000!important}[data-theme=dark] .unified-question-renderer,[data-theme=dark] .unified-question-renderer>div{background:#0000!important;background-color:initial!important}[data-theme=dark] .unified-question-renderer>div{border-color:var(--border-primary)!important}[data-theme=dark] .question-meta .question-type{background-color:var(--bg-tertiary)!important;color:var(--text-primary)!important}[data-theme=dark] .question-bank-text,[data-theme=dark] .question-info,[data-theme=dark] .question-item [style*=backgroundColor],[data-theme=dark] .question-item [style*=background],[data-theme=dark] .question-item div,[data-theme=dark] .question-item span,[data-theme=dark] .question-text,[data-theme=dark] .question-text-wrapper{background-color:initial!important;background:#0000!important}[data-theme=dark] .question-item *{color:var(--text-primary)!important}[data-theme=dark] .archived-questions-list>div{background:var(--bg-secondary)!important}[data-theme=dark] .archived-questions-list>div>div{background:var(--bg-card)!important;border-color:var(--border-primary)!important}[data-theme=dark] .archived-questions-list>div>div>div{color:var(--text-primary)!important}[data-theme=dark] .archived-questions-list>div>div>div span{color:var(--text-secondary)!important}[data-theme=dark] .archived-questions-list>div>div>div>div:first-child,[data-theme=dark] .question-bank>div[style*=borderTop] h3{color:var(--text-primary)!important}[data-theme=dark] .question-bank>div[style*=borderTop]{border-top-color:var(--border-primary)!important}[data-theme=dark] .no-questions{background-color:var(--bg-secondary)!important;color:var(--text-secondary)!important}.copy-category-modal{background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;max-width:450px;padding:0;width:90%}.copy-category-modal .modal-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:0;padding:16px 20px}.copy-category-modal .modal-header h3{font-size:18px;font-weight:600;margin:0}.copy-category-modal .close-btn{background:none;border:none;color:#6c757d;cursor:pointer;font-size:24px;line-height:1;padding:0}.copy-category-modal .close-btn:hover{color:#000}.copy-category-modal .modal-body{padding:20px}.copy-category-modal .copy-description{color:#495057;margin:0 0 16px}.copy-category-modal .copy-option{margin-bottom:16px}.copy-category-modal .radio-label{align-items:center;cursor:pointer;display:flex;font-size:14px;gap:8px}.copy-category-modal .radio-label input[type=radio]{cursor:pointer;margin:0}.copy-category-modal .category-select{background-color:#fff;border:1px solid #ced4da;border-radius:4px;font-size:14px;margin-top:10px;padding:10px 12px;width:100%}.copy-category-modal .category-select:disabled{background-color:#e9ecef;cursor:not-allowed}.copy-category-modal .modal-footer{border-top:1px solid #e9ecef;display:flex;gap:10px;justify-content:flex-end;padding:16px 20px}[data-theme=dark] .copy-category-modal{background:var(--bg-card)}[data-theme=dark] .copy-category-modal .modal-header{border-bottom-color:var(--border-primary)}[data-theme=dark] .copy-category-modal .modal-header h3{color:var(--text-primary)}[data-theme=dark] .copy-category-modal .close-btn{color:var(--text-secondary)}[data-theme=dark] .copy-category-modal .close-btn:hover{color:var(--text-primary)}[data-theme=dark] .copy-category-modal .copy-description{color:var(--text-secondary)}[data-theme=dark] .copy-category-modal .radio-label{color:var(--text-primary)}[data-theme=dark] .copy-category-modal .category-select{background-color:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .copy-category-modal .category-select:disabled{background-color:var(--bg-tertiary)}[data-theme=dark] .copy-category-modal .modal-footer{border-top-color:var(--border-primary)}.cascade-selectors{margin-left:24px;margin-top:12px}.cascade-level{margin-bottom:12px}.cascade-level label{color:#666;display:block;font-size:13px;font-weight:500;margin-bottom:4px}.cascade-level .category-select{width:100%}.selected-path-display{background:#e8f5e9;border-left:3px solid #4caf50;border-radius:4px;color:#2e7d32;font-size:13px;margin-left:24px;margin-top:12px;padding:10px 12px}.selected-path-display strong{color:#1b5e20}[data-theme=dark] .cascade-level label{color:var(--text-secondary)}[data-theme=dark] .selected-path-display{background:#4caf5026;border-left-color:#66bb6a;color:#81c784}[data-theme=dark] .selected-path-display strong{color:#a5d6a7}.clone-category-modal{background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;max-width:500px;padding:0;width:90%}.clone-category-modal .modal-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:0;padding:16px 20px}.clone-category-modal .modal-header h3{font-size:18px;font-weight:600;margin:0}.clone-category-modal .close-btn{background:none;border:none;color:#6c757d;cursor:pointer;font-size:24px;line-height:1;padding:0}.clone-category-modal .modal-body{padding:20px}.clone-category-modal .clone-description{color:#495057;margin:0 0 16px}.clone-category-modal .form-group{margin-bottom:16px}.clone-category-modal .form-group label{color:#495057;display:block;font-weight:500;margin-bottom:6px}.clone-category-modal .form-control{border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:10px 12px;width:100%}.clone-category-modal .checkbox-group{background:#f8f9fa;border-radius:4px;padding:12px}.clone-category-modal .checkbox-label{align-items:center;cursor:pointer;display:flex;font-weight:500;gap:8px}.clone-category-modal .checkbox-label input{cursor:pointer;height:16px;width:16px}.clone-category-modal .help-text{color:#6c757d;display:block;font-size:12px;margin-top:6px}.clone-category-modal .clone-summary{background:#e8f4fd;border:1px solid #bee5eb;border-radius:4px;margin-top:16px;padding:12px}.clone-category-modal .clone-summary h4{color:#0c5460;font-size:14px;margin:0 0 8px}.clone-category-modal .clone-summary ul{color:#0c5460;font-size:13px;margin:0;padding-left:20px}.clone-category-modal .clone-summary li{margin-bottom:4px}.clone-category-modal .modal-footer{border-top:1px solid #e9ecef;display:flex;gap:10px;justify-content:flex-end;padding:16px 20px}.clone-category-btn{font-size:12px;margin-left:8px;padding:6px 12px;white-space:nowrap}[data-theme=dark] .clone-category-modal{background:var(--bg-card)}[data-theme=dark] .clone-category-modal .modal-header{border-bottom-color:var(--border-primary)}[data-theme=dark] .clone-category-modal .modal-header h3{color:var(--text-primary)}[data-theme=dark] .clone-category-modal .clone-description,[data-theme=dark] .clone-category-modal .close-btn{color:var(--text-secondary)}[data-theme=dark] .clone-category-modal .clone-description strong,[data-theme=dark] .clone-category-modal .form-group label{color:var(--text-primary)}[data-theme=dark] .clone-category-modal .form-control{background-color:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .clone-category-modal .checkbox-group{background:var(--bg-tertiary)}[data-theme=dark] .clone-category-modal .checkbox-label{color:var(--text-primary)}[data-theme=dark] .clone-category-modal .help-text{color:var(--text-secondary)}[data-theme=dark] .clone-category-modal .clone-summary{background:#17a2b81a;border-color:#17a2b84d}[data-theme=dark] .clone-category-modal .clone-summary h4,[data-theme=dark] .clone-category-modal .clone-summary ul{color:#5bc0de}[data-theme=dark] .clone-category-modal .modal-footer{border-top-color:var(--border-primary)}.modal-backdrop{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.modal-content{overflow:hidden}.modal-header h2{color:#2c3e50}.modal-body{max-height:calc(80vh - 140px);overflow-y:auto;padding:20px}.form-group input[type=number]{border:1px solid #ced4da;border-radius:4px;font-size:1rem;padding:8px 12px;transition:border-color .15s ease-in-out;width:100%}.form-group input[type=number]:focus{border-color:#007bff;box-shadow:0 0 0 .2rem #007bff40;outline:none}.topic-checkboxes{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;display:flex;flex-direction:column;gap:10px;max-height:200px;overflow-y:auto;padding:10px}.topic-info{color:#6c757d;font-size:.875rem;margin-top:8px}.distribution-info{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;padding:15px}.distribution-info p{font-weight:500;margin:0 0 10px}.distribution-info ul{list-style-type:disc;margin:10px 0 0}.distribution-info li{color:#495057;font-size:.9rem;margin-bottom:5px}.checkbox-label{border:1px solid #e9ecef;border-radius:4px;padding:8px 12px;transition:background-color .2s ease}.checkbox-label:hover{background-color:#f8f9fa}.checkbox-label input[type=checkbox]{height:18px;margin-right:10px;width:18px}.checkbox-label span{color:#495057;-webkit-user-select:none;user-select:none}.checkbox-label.danger span{color:#dc3545;font-weight:500}.result-message{border-radius:4px;font-weight:500;margin-top:20px;padding:12px 16px}.result-message.success{background-color:#d4edda;border:1px solid #c3e6cb;color:#155724}.result-message.error{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24}.modal-footer{background-color:#f8f9fa}.btn{align-items:center;display:inline-flex;gap:8px}.btn:disabled{opacity:.65}.btn-primary:hover:not(:disabled){background-color:#0056b3;border-color:#004085}.btn-secondary:hover:not(:disabled){background-color:#545b62;border-color:#3d4246}.spinner{animation:spin .8s linear infinite;border:2px solid #ffffff4d;border-top-color:#fff;height:14px;width:14px}@media (max-width:600px){.modal-content{max-height:90vh;width:95%}.modal-body{max-height:calc(90vh - 140px)}}.select-all-header{background:#f8f9fa;border-bottom:2px solid #dee2e6;font-weight:600;gap:10px;padding:15px;position:-webkit-sticky;position:sticky;top:0;z-index:10}.select-all-header input[type=checkbox]{cursor:pointer;height:18px;width:18px}.select-all-label{color:#495057;-webkit-user-select:none;user-select:none}[data-theme=dark] .select-all-header{background:var(--bg-card);border-bottom-color:var(--border-primary)}[data-theme=dark] .select-all-label{color:var(--text-primary)}.question-preview-container{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;max-width:100%;overflow:hidden}.qp-header{align-items:center;background:#f8f9fa;border-bottom:2px solid #e9ecef;display:flex;justify-content:space-between;padding:16px 20px}.qp-header h3{color:#333;font-size:18px;font-weight:600;margin:0}.qp-type-badge{color:#6c757d;font-size:14px;font-weight:500}.qp-body{padding:20px}.qp-question-content{font-size:16px;line-height:1.6}.qp-question-text{color:#333;margin-bottom:20px}.qp-options-list{display:flex;flex-direction:column;gap:12px;margin-top:16px}.qp-option-label{align-items:flex-start;background:#f8f9fa;border-radius:6px;cursor:default;display:flex;gap:12px;padding:12px 16px;transition:background-color .2s}.qp-option-label:hover{background:#e9ecef}.qp-option-label input[type=checkbox],.qp-option-label input[type=radio]{flex-shrink:0;margin-top:3px}.qp-option-text{color:#333;display:flex;flex:1 1;font-size:16px;gap:8px}.qp-option-text.correct{color:#28a745;font-weight:500}.qp-option-letter{font-weight:600;min-width:24px}.qp-correct-indicator{color:#28a745;flex-shrink:0;font-weight:700;margin-left:auto}.qp-hint{color:#6c757d;display:block;font-size:14px;margin-bottom:4px;margin-top:8px}.qp-inline-blank{background:#fff;border:1px solid #ced4da;border-radius:4px;display:inline-block;font-size:14px;margin:0 4px;padding:4px 8px;vertical-align:initial}.qp-matching-container{display:flex;flex-wrap:wrap;gap:40px;margin-top:16px}.qp-matching-left{flex:1 1 300px}.qp-matching-right{flex:0 0 auto;min-width:200px}.qp-matching-item{align-items:center;display:flex;gap:12px;margin-bottom:12px}.qp-matching-input{background:#fff;border:1px solid #ced4da;border-radius:4px;font-size:14px;font-weight:700;padding:6px 8px;text-align:center;width:50px}.qp-matching-text{color:#333;flex:1 1}.qp-matching-answer{color:#28a745;font-size:12px;font-weight:500;margin-left:8px}.qp-matching-header{color:#6c757d;font-weight:700;margin-bottom:12px}.qp-matching-option{display:flex;gap:8px;margin-bottom:8px}.qp-ordering-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.qp-ordering-item{align-items:center;background:#f8f9fa;border:1px solid #dee2e6;border-radius:6px;display:flex;gap:12px;padding:12px}.qp-ordering-number{color:#495057;font-weight:700;min-width:28px}.qp-ordering-text{color:#333;flex:1 1}.qp-ordering-arrows{display:flex;flex-direction:column;gap:2px}.qp-arrow-btn{background:#e9ecef;border:1px solid #ced4da;border-radius:3px;color:#6c757d;cursor:not-allowed;font-size:12px;padding:2px 8px}.qp-calculated-example{color:#17a2b8;font-size:14px;margin-bottom:12px}.qp-calculated-info{background:#e7f3ff;border-radius:6px;color:#004085;font-size:14px;margin-top:16px;padding:12px}.qp-formula,.qp-variables{margin-top:8px}.qp-calculated-input{border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:8px 12px;width:150px}.qp-units{color:#6c757d;margin-left:8px}.qp-answer-input-container{margin-top:16px}.qp-short-answer-input{max-width:400px;padding:10px 12px}.qp-essay-input,.qp-short-answer-input{border:2px solid #ced4da;border-radius:6px;font-size:16px;width:100%}.qp-essay-input{font-family:inherit;padding:12px;resize:vertical}.qp-word-limit{color:#6c757d;font-size:13px;margin-top:8px}.qp-correct-answer-display{background:#d4edda;border:1px solid #c3e6cb;border-radius:6px;color:#155724;font-size:14px;margin-top:16px;padding:12px}.qp-rubric-display,.qp-sample-answer{background:#e7f3ff;border:1px solid #bee5eb;border-radius:6px;color:#004085;font-size:14px;margin-top:12px;padding:12px}.qp-empty-message{color:#6c757d;font-style:italic;padding:20px;text-align:center}[data-theme=dark] .question-preview-container{background:#1e1e1e;background:var(--bg-card,#1e1e1e);box-shadow:0 2px 4px #0000004d}[data-theme=dark] .qp-header{background:#2d2d2d;background:var(--bg-secondary,#2d2d2d);border-bottom-color:#3d3d3d;border-bottom-color:var(--border-primary,#3d3d3d)}[data-theme=dark] .qp-header h3{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .qp-type-badge{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .qp-matching-text,[data-theme=dark] .qp-option-text,[data-theme=dark] .qp-ordering-text,[data-theme=dark] .qp-question-text{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .qp-option-label{background:#2d2d2d;background:var(--bg-secondary,#2d2d2d)}[data-theme=dark] .qp-option-label:hover{background:#3d3d3d;background:var(--bg-hover,#3d3d3d)}[data-theme=dark] .qp-ordering-item{background:#2d2d2d;background:var(--bg-secondary,#2d2d2d);border-color:#3d3d3d;border-color:var(--border-primary,#3d3d3d)}[data-theme=dark] .qp-calculated-input,[data-theme=dark] .qp-essay-input,[data-theme=dark] .qp-inline-blank,[data-theme=dark] .qp-matching-input,[data-theme=dark] .qp-short-answer-input{background:#2d2d2d;background:var(--input-bg,#2d2d2d);border-color:#3d3d3d;border-color:var(--border-primary,#3d3d3d);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .qp-correct-answer-display{background:#25a56433;border-color:#28a745;border-color:var(--color-success,#28a745);color:#28a745;color:var(--color-success,#28a745)}[data-theme=dark] .qp-calculated-info,[data-theme=dark] .qp-rubric-display,[data-theme=dark] .qp-sample-answer{background:#0d6efd1a;border-color:#0d6efd;border-color:var(--color-primary,#0d6efd);color:#6ea8fe;color:var(--color-primary,#6ea8fe)}@media (max-width:768px){.qp-header{align-items:flex-start;flex-direction:column;gap:8px}.qp-matching-container{flex-direction:column;gap:20px}.qp-matching-right{min-width:100%}.qp-short-answer-input{max-width:100%}}.category-selector{margin-bottom:15px}.category-selector-header{margin-bottom:10px}.input-mode-toggle{gap:5px;margin-bottom:10px}.mode-btn{align-items:center;background:#f8f9fa;border:1px solid #ddd;color:#495057;cursor:pointer;display:flex;flex:1 1;font-size:14px;gap:5px;justify-content:center;padding:8px 12px;transition:all .2s}.mode-btn:first-child{border-radius:4px 0 0 4px}.mode-btn:last-child{border-left:none;border-radius:0 4px 4px 0}.mode-btn.active{background:#007bff;border-color:#007bff;color:#fff}.mode-btn:hover:not(.active){background:#e9ecef}.mode-btn span{font-size:16px}.text-input-mode{width:100%}.category-text-input{background-color:#fff;border:1px solid #ced4da;border-radius:4px;color:#495057;font-size:14px;line-height:1.5;padding:8px 12px;transition:border-color .15s ease-in-out;width:100%}.category-text-input:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.select-mode{width:100%}.category-dropdown{margin-bottom:10px}.category-select{border:1px solid #ced4da;color:#495057;line-height:1.5;transition:border-color .15s ease-in-out;width:100%}.category-select:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.selected-path{align-items:center;background:#f8f9fa;border-radius:4px;color:#495057;display:flex;font-size:14px;justify-content:space-between;margin-top:10px;padding:10px}.selected-path strong{color:#343a40}.btn-add-subcategories{background-color:#28a745;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;margin-left:10px;padding:4px 12px;white-space:nowrap}.btn-add-subcategories:hover{background-color:#218838}.additional-categories-input{background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;margin-top:15px;padding:15px}.additional-categories-input .category-text-input{margin-bottom:10px}.additional-buttons{display:flex;gap:10px}.empty-message,.error-message,.loading-message{border-radius:4px;font-size:14px;padding:15px;text-align:center}.loading-message{background:#d1ecf1;border:1px solid #bee5eb;color:#0c5460}.error-message{border:1px solid #f5c6cb}.empty-message{background:#fff3cd;border:1px solid #ffeaa7;color:#856404}@media (max-width:576px){.mode-btn{font-size:12px;padding:6px 10px}.mode-btn span{font-size:14px}}.version-dialog-overlay{align-items:center;background-color:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.version-dialog{background:#fff;border-radius:8px;box-shadow:0 4px 6px #0000001a;display:flex;flex-direction:column;max-height:90vh;max-width:500px;overflow:hidden;width:90%}.version-dialog-header{align-items:center;border-bottom:1px solid #e1e4e8;display:flex;justify-content:space-between;padding:20px}.version-dialog-header h3{color:#24292e;font-size:20px;margin:0}.close-btn{color:#586069}.close-btn:hover{color:#24292e}.version-dialog-body{flex:1 1;overflow-y:auto;padding:20px}.form-group label{color:#24292e}.form-control{background-color:#fff;border:1px solid #e1e4e8;border-radius:6px;color:#24292e;padding:8px 12px;transition:border-color .15s ease-in-out}.form-control:focus{border-color:#0366d6;box-shadow:0 0 0 3px #0366d61a}.form-control::placeholder{color:#959da5}textarea.form-control{min-height:60px}.version-info{background-color:#f6f8fa;border:1px solid #e1e4e8;border-radius:6px;margin-top:20px}.info-text{color:#586069}.info-text+.info-text{margin-top:8px}.version-dialog-footer{border-top:1px solid #e1e4e8;display:flex;gap:12px;justify-content:flex-end;padding:20px}.btn{transition:all .15s ease-in-out}.btn-primary{background-color:#0366d6;border-color:#0366d6}.btn-primary:hover:not(:disabled){background-color:#0256c7;border-color:#0256c7}.btn-primary:disabled{opacity:.6}.btn-secondary{background-color:#fafbfc;border-color:#e1e4e8;color:#24292e}.btn-secondary:hover{background-color:#f3f4f6;border-color:#d1d5da}.version-tag-selector{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:6px;margin:15px 0;padding:12px}.version-tag-selector.compact{margin:10px 0;padding:8px}.tag-selector-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.tag-selector-header label{color:#333;font-size:14px;font-weight:600}.tag-default-hint{color:#6c757d;font-size:12px;font-style:italic}.predefined-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.tag-checkbox{align-items:center;background:#fff;border:1px solid #dee2e6;border-radius:20px;cursor:pointer;display:inline-flex;font-size:13px;padding:6px 12px;transition:all .2s ease}.tag-checkbox:hover{background:#e9ecef;border-color:#adb5bd}.tag-checkbox.selected{background:#007bff;border-color:#007bff;color:#fff}.tag-checkbox.selected:hover{background:#0056b3;border-color:#0056b3}.tag-checkbox input[type=checkbox]{display:none}.tag-label{-webkit-user-select:none;user-select:none}.custom-tags-section{border-top:1px solid #dee2e6;margin-top:12px;padding-top:12px}.custom-tags-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.custom-tags-title{color:#555;font-size:13px;font-weight:500}.add-custom-tag-btn{background:#28a745;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;padding:4px 10px;transition:background .2s}.add-custom-tag-btn:hover:not(:disabled){background:#218838}.add-custom-tag-btn:disabled{background:#6c757d;cursor:not-allowed}.custom-tags-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.tag-checkbox.custom{padding-right:8px;position:relative}.tag-checkbox.custom.selected{background:#6f42c1;border-color:#6f42c1}.tag-checkbox.custom.selected:hover{background:#5a32a3;border-color:#5a32a3}.delete-tag-btn{background:#0000;border:none;color:inherit;cursor:pointer;font-size:16px;line-height:1;margin-left:6px;opacity:.6;padding:0 4px;transition:opacity .2s}.delete-tag-btn:hover{opacity:1}.tag-checkbox.custom.selected .delete-tag-btn:hover{color:#fcc}.new-tag-input-container{align-items:center;display:flex;gap:8px;margin-top:8px}.new-tag-input{border:1px solid #ced4da;border-radius:4px;flex:1 1;font-size:14px;padding:8px 12px}.new-tag-input:focus{border-color:#80bdff;box-shadow:0 0 0 2px #007bff40;outline:none}.save-tag-btn{background:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:13px;padding:8px 16px;transition:background .2s}.save-tag-btn:hover:not(:disabled){background:#0056b3}.save-tag-btn:disabled{background:#6c757d;cursor:not-allowed}.cancel-tag-btn{background:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:13px;padding:8px 16px;transition:background .2s}.cancel-tag-btn:hover{background:#5a6268}.no-custom-tags{color:#6c757d;font-size:12px;font-style:italic;margin:0}.tag-error{align-items:center;background:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;color:#721c24;display:flex;font-size:13px;justify-content:space-between;margin-top:10px;padding:8px 12px}.tag-error button{background:none;border:none;color:#721c24;cursor:pointer;font-size:18px;line-height:1;padding:0 4px}.tag-loading{color:#6c757d;font-size:12px;margin-top:8px}@media (prefers-color-scheme:dark){.version-tag-selector{background:#2d2d2d;border-color:#444}.tag-selector-header label{color:#e0e0e0}.tag-default-hint{color:#888}.tag-checkbox{background:#333;border-color:#555;color:#e0e0e0}.tag-checkbox:hover{background:#444;border-color:#666}.tag-checkbox.selected{background:#0d6efd;border-color:#0d6efd}.custom-tags-section{border-top-color:#444}.custom-tags-title{color:#aaa}.new-tag-input{background:#333;border-color:#555;color:#e0e0e0}.new-tag-input:focus{border-color:#0d6efd}.no-custom-tags{color:#888}.tag-error{background:#5c2626;border-color:#7a3333}.tag-error,.tag-error button{color:#f8d7da}.tag-loading{color:#888}}.dark-mode .version-tag-selector,[data-theme=dark] .version-tag-selector{background:#2d2d2d;border-color:#444}.dark-mode .tag-selector-header label,[data-theme=dark] .tag-selector-header label{color:#e0e0e0}.dark-mode .tag-checkbox,[data-theme=dark] .tag-checkbox{background:#333;border-color:#555;color:#e0e0e0}.dark-mode .tag-checkbox:hover,[data-theme=dark] .tag-checkbox:hover{background:#444;border-color:#666}.dark-mode .tag-checkbox.selected,[data-theme=dark] .tag-checkbox.selected{background:#0d6efd;border-color:#0d6efd;color:#fff}.dark-mode .custom-tags-section,[data-theme=dark] .custom-tags-section{border-top-color:#444}.dark-mode .new-tag-input,[data-theme=dark] .new-tag-input{background:#333;border-color:#555;color:#e0e0e0}.editor-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:15px}.instructions{background-color:#f8f9fa;border-left:4px solid #007bff;border-radius:4px;margin-bottom:20px;padding:15px}.modal-overlay{background-color:#0009}.modal-content{max-width:600px}.blank-insertion-modal{min-width:500px}.modal-header{padding:20px 24px 16px}.modal-header h3{color:#333;font-size:1.25rem;font-weight:600;margin:0}.modal-close{border-radius:50%;font-size:24px;transition:background-color .2s}.modal-close:hover{background-color:#f8f9fa;color:#495057}.modal-body{padding:20px 24px}.modal-footer{border-top:1px solid #e9ecef;padding:16px 24px 20px}.sample-answer-input{border:2px solid #e9ecef;border-radius:6px;font-size:14px;padding:10px 12px;transition:border-color .2s,box-shadow .2s;width:100%}.sample-answer-input:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a;outline:none}.form-hint{color:#6c757d;display:block;margin-top:4px}.length-mode-tabs{border-bottom:1px solid #e9ecef;display:flex;margin-bottom:24px}.tab-button{background:none;border:none;border-bottom:2px solid #0000;color:#6c757d;flex:1 1;font-size:14px;padding:12px 16px;transition:all .2s}.tab-button:hover{background-color:#f8f9fa;color:#495057}.tab-button.active{background-color:#f8f9ff;border-bottom-color:#007bff;color:#007bff}.length-controls{margin-bottom:24px;min-height:200px}.mode-description{color:#6c757d;font-size:14px;margin-bottom:16px}.auto-mode-controls .auto-explanation{background-color:#e8f4f8;border:1px solid #b8daff;border-radius:6px;margin-bottom:16px;padding:16px}.smart-suggestion{background-color:#d1ecf1;border-left:4px solid #17a2b8;border-radius:0 4px 4px 0;margin-top:12px;padding:12px}.suggested-type{color:#17a2b8;font-weight:600}.checkbox-group{margin-top:16px}.checkbox-label{font-size:14px}.checkbox-label input[type=checkbox]{margin-right:8px}.type-grid{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.type-option{background:#f8f9fa;border:2px solid #e9ecef;border-radius:8px;cursor:pointer;padding:16px;text-align:center;transition:all .2s}.type-option:hover{background-color:#f0f8ff;border-color:#007bff}.type-option.selected{background-color:#e7f3ff;border-color:#007bff;box-shadow:0 0 0 1px #007bff}.type-name{color:#333;font-size:14px;font-weight:600;margin-bottom:4px}.type-description{color:#6c757d;font-size:12px;margin-bottom:6px}.type-example{color:#17a2b8;font-size:11px;font-style:italic}.size-buttons{display:flex;flex-wrap:wrap;gap:12px}.size-button{background:#f8f9fa;border:2px solid #e9ecef;border-radius:8px;cursor:pointer;min-width:80px;padding:12px 16px;text-align:center;transition:all .2s}.size-button:hover{background-color:#f0f8ff;border-color:#007bff}.size-button.selected{background-color:#e7f3ff;border-color:#007bff;box-shadow:0 0 0 1px #007bff}.size-name{color:#333;font-size:16px;font-weight:600;margin-bottom:4px}.size-chars{color:#6c757d;font-size:11px;margin-bottom:6px}.size-preview{border-bottom:1px solid #333;color:#495057;font-family:monospace;font-size:12px;margin:0 auto;min-height:1px}.custom-length-input{max-width:300px}.custom-length-input label{margin-bottom:8px}.length-input{border:2px solid #e9ecef;border-radius:6px;font-size:14px;margin-bottom:16px;padding:8px 12px;width:100px}.length-input:focus{border-color:#007bff;outline:none}.length-slider,.slider{width:100%}.slider{-webkit-appearance:none;background:#e9ecef;border-radius:3px;height:6px;outline:none}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#007bff;border-radius:50%;cursor:pointer;height:20px;width:20px}.slider::-moz-range-thumb{background:#007bff;border:none;border-radius:50%;cursor:pointer;height:20px;width:20px}.blank-preview-section{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px}.blank-preview-section h4{color:#333;font-size:16px;font-weight:600;margin:0 0 16px}.preview-text{background:#fff;border:1px solid #dee2e6;border-radius:4px;font-size:16px;line-height:1.5;margin-bottom:16px;padding:12px}.blank-preview-visual{border-bottom:2px solid #333;margin:0 3px;position:relative}.preview-details{grid-gap:12px;display:grid;font-size:13px;gap:12px;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.detail-item{flex-direction:column}.detail-label{color:#6c757d;font-weight:600;margin-bottom:2px}.detail-value{color:#333}.underscore-preview{background-color:#e9ecef;border-radius:3px;font-family:monospace;padding:2px 6px}.btn{border-radius:6px}.btn-primary{background-color:#007bff}.btn-primary:hover{background-color:#0056b3}.btn-secondary:hover{background-color:#545b62}.blank-type-indicator{background-color:#e7f3ff;border:1px solid #b8daff;border-radius:3px;color:#007bff;font-size:11px;font-weight:500;margin-left:6px;padding:2px 6px}[data-theme=dark] .blank-type-indicator{background-color:#1a3a52;border-color:#375a7f;color:#6ea8fe}.toolbar-hint{color:var(--text-secondary,#6c757d);font-size:12px;font-style:italic}.answer-section{border-top:1px solid #e9ecef;margin-top:20px;padding-top:16px}.blank-answers{gap:12px}.blank-answer{flex-direction:column;gap:4px}.blank-answer label{align-items:center;display:flex}.blank-answer label,.blank-answer-input{color:#333;color:var(--text-primary,#333);font-size:14px}.blank-answer-input{background-color:#fff;background-color:var(--input-bg,#fff);border:2px solid #e9ecef;border:2px solid var(--border-secondary,#e9ecef);padding:8px 12px;transition:border-color .2s}.blank-answer-input:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff1a;outline:none}.no-blanks-message{background-color:#f8f9fa;background-color:var(--bg-secondary,#f8f9fa);border:1px dashed #dee2e6;border:1px dashed var(--border-primary,#dee2e6);border-radius:4px;color:var(--text-secondary,#6c757d);font-size:14px;padding:20px;text-align:center}.editor-toolbar{margin-bottom:10px}button{background-color:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;margin-right:10px;padding:8px 12px}button:hover{background-color:#0069d9}.toggle-instructions-btn{background-color:#6c757d}.toggle-instructions-btn:hover{background-color:#5a6268}.fill-in-blank-editor{margin-bottom:30px}.fill-in-blank-editor .editor-toolbar{align-items:center;display:flex;gap:10px;margin-bottom:15px;margin-top:10px}.fill-in-blank-textarea{border:1px solid #ced4da;border-radius:4px;font-size:16px;margin-bottom:20px;min-height:120px;padding:12px;width:100%}.insert-blank-btn{background-color:#28a745}.insert-blank-btn:hover{background-color:#218838}.toolbar-hint{color:#6c757d;font-size:14px}.answer-section{margin-top:15px}.blank-answers{display:flex;flex-direction:column;gap:10px;margin-top:10px}.blank-answer{align-items:center;display:flex;gap:10px}.blank-answer label{font-weight:500;min-width:120px}.blank-answer-input{border:1px solid #ced4da;border-radius:4px;flex:1 1;padding:8px}.no-blanks-message{color:#6c757d;font-style:italic}.matching-editor{margin-bottom:30px}.matching-pairs-container{margin-bottom:20px;width:100%}.matching-pair{align-items:center;display:flex;gap:20px;margin-bottom:10px}.matching-pair-input{border:1px solid #ced4da;border-radius:4px;flex:1 1;padding:8px}.remove-pair-btn{background-color:#dc3545;padding:5px 10px}.remove-pair-btn:hover{background-color:#c82333}.add-pair-btn{background-color:#28a745;margin-top:10px}.question-preview{background-color:#f8f9fa;border:1px solid #ced4da;border-radius:4px;margin-top:30px;padding:20px}.question-preview-header{align-items:center;border-bottom:1px solid #dee2e6;display:flex;justify-content:space-between;margin-bottom:15px;padding-bottom:10px}.preview-fill-blank{line-height:1.6}.preview-blank{border-bottom:1px solid #000;display:inline-block;height:1em;margin:0 5px;min-width:100px;text-align:center}.preview-matching-pair{display:flex;margin-bottom:10px}.preview-matching-left,.preview-matching-right{background-color:#fff;border:1px solid #dee2e6;border-radius:4px;flex:1 1;margin:0 10px;padding:10px}.preview-matching-connector{align-items:center;color:#6c757d;display:flex}.advanced-options{border-top:1px solid #dee2e6;margin-top:30px;padding-top:20px}.advanced-option{background-color:#fff;border:1px solid #dee2e6;border-radius:4px;margin-bottom:20px;padding:15px}.option-toggle{align-items:center;display:flex;gap:10px;margin-bottom:10px}.option-toggle label{cursor:pointer;font-weight:500}.option-description{color:#6c757d;font-size:.9rem;font-style:italic;margin-bottom:15px}.distractors-container,.multi-columns-container,.subset-container{margin-top:15px}.distractor-row{align-items:center;display:flex;gap:10px;margin-bottom:10px}.distractor-row input{border:1px solid #ced4da;border-radius:4px;flex:1 1;padding:8px}.column-header-row{align-items:center;display:flex;gap:10px;margin-bottom:10px}.column-header-row input{border:1px solid #ced4da;border-radius:4px;flex:1 1;padding:8px}.remove-column-btn,.remove-distractor-btn{background-color:#dc3545;padding:5px 10px}.add-column-btn,.add-distractor-btn{background-color:#28a745;margin-top:10px}.columns-list{margin-bottom:15px}.subset-inputs{display:flex;gap:20px}.subset-input{display:flex;flex-direction:column;gap:5px}.subset-input label{font-weight:400}.subset-input input{border:1px solid #ced4da;border-radius:4px;padding:8px;width:80px}.matching-header{font-weight:700;margin-bottom:10px}.mb-3{margin-bottom:15px}.alert{margin-bottom:1rem}.options-container{margin-top:15px}.option-row{gap:15px;margin-bottom:12px}.option-row input[type=radio]{cursor:pointer;margin:0}.option-row input[type=text]{border:1px solid #ced4da;font-size:14px;padding:8px 12px;transition:border-color .15s ease-in-out}.option-row input[type=text]:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.option-row input[type=text]:disabled{background-color:#fff;color:#495057;cursor:default;opacity:1}.option-row .btn-danger{align-items:center;background-color:#dc3545;border:none;border-radius:4px;color:#fff;cursor:pointer;display:flex;font-size:16px;height:28px;justify-content:center;line-height:1;min-width:28px;padding:4px 8px;transition:all .2s}.option-row .btn-danger:hover{background-color:#c82333;transform:scale(1.05)}.option-row .btn-danger:active{transform:scale(.95)}.option-row .btn-danger:disabled{background-color:#6c757d;cursor:not-allowed;opacity:.65;transform:none}.add-option-btn{background-color:#28a745}.add-option-btn:hover{background-color:#218838}.btn-sm{border-radius:3px;line-height:1.5}.btn-danger.btn-sm{height:26px;min-width:30px}.question-bank{padding:20px}.question-item{margin-bottom:20px}.question-header{margin-bottom:10px}.question-footer{align-items:center;border-top:1px solid #dee2e6;display:flex;justify-content:space-between;margin-top:15px}.category-info{color:#6c757d;font-size:.9rem}.uncategorized{color:#dc3545;font-style:italic;font-weight:500}.question-actions{display:flex;gap:6px}.question-actions .btn{align-items:center;border:1px solid #0000;border-radius:4px;cursor:pointer;display:inline-flex;font-size:12px!important;font-weight:500;justify-content:center;line-height:1.2;padding:4px 8px!important;transition:all .2s;white-space:nowrap}.question-actions .btn-info{background-color:#17a2b8;border-color:#17a2b8;color:#fff}.question-actions .btn-info:hover{background-color:#138496;border-color:#117a8b}.question-actions .btn-danger{background-color:#dc3545;border-color:#dc3545;color:#fff}.question-actions .btn-danger:hover{background-color:#c82333;border-color:#bd2130}.question-filters h2{color:#333;margin-bottom:20px}.filter-row{margin-bottom:15px}.filter-row input[type=text]{flex:1 1;min-width:200px}.filter-row input[type=text],.filter-row select{border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:8px 12px}.filter-row select{background-color:#fff;cursor:pointer;min-width:150px}.filter-row select:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.empty-state h3{color:#6c757d;margin-bottom:15px}.empty-state p{color:#6c757d;margin-bottom:20px}.loading-container{padding:60px 20px;text-align:center}.loading-spinner{animation:spin 1s ease-in-out infinite;border:4px solid #0000001a;display:inline-block}.question-group{background-color:#fff;border:2px solid #007bff;border-radius:8px;margin-bottom:25px;overflow:hidden}.version-header{background-color:#0056b3;color:#fff;font-size:16px;font-weight:700;padding:15px}.version-item{background-color:#f8f9ff;border-top:1px solid #007bff}.version-item:hover{background-color:#e7f0ff}.version-badge{background-color:#007bff;border-radius:4px;font-size:12px;font-weight:500;margin-right:10px;padding:2px 8px}.version-list{background-color:#f8f9fa;border-radius:4px;margin-top:10px;padding:10px}.version-item-list{color:#666;font-size:14px;padding:5px 0}.version-indicator{background-color:#e7f3ff;border:1px solid #b3d9ff;border-radius:6px;padding:15px}.version-indicator h3{color:#0056b3}.version-indicator p{color:#495057;margin-bottom:10px}.question-counts{margin-top:15px}.count-display{display:flex;justify-content:center;margin-bottom:10px}.total-count{background-color:#e9ecef;border:1px solid #ced4da;border-radius:20px;color:#495057}.filtered-count,.total-count{font-size:16px;padding:8px 16px}.filtered-count{background-color:#e7f3ff;border:1px solid #b3d9ff;border-radius:20px;color:#007bff}.filters-header{justify-content:space-between;margin-bottom:20px}.filter-results-count,.filters-header{align-items:center;display:flex}.count-badge{border-radius:16px;font-size:14px;font-weight:600;min-width:80px;padding:6px 12px;text-align:center}.count-badge.total{background-color:#28a745;border:2px solid #1e7e34;color:#fff}.count-badge.filtered{background-color:#007bff;border:2px solid #0056b3;color:#fff}[data-theme=dark] .modal-content{background:#25282c!important}[data-theme=dark] .modal-header h3{color:#e9ecef!important}[data-theme=dark] .modal-footer{border-top-color:#495057!important}[data-theme=dark] .form-group label{color:#e9ecef!important}[data-theme=dark] .sample-answer-input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .sample-answer-input:focus{border-color:#3d8bfd!important}[data-theme=dark] .tab-button{color:#adb5bd!important}[data-theme=dark] .tab-button:hover{background-color:#35393e!important;color:#e9ecef!important}[data-theme=dark] .tab-button.active{background-color:#1e3a5f!important;color:#3d8bfd!important}[data-theme=dark] .type-option{background-color:#2d3035!important;border-color:#495057!important}[data-theme=dark] .type-option:hover{background-color:#35393e!important;border-color:#3d8bfd!important}[data-theme=dark] .type-option.selected{background-color:#1e3a5f!important;border-color:#3d8bfd!important}[data-theme=dark] .type-name{color:#e9ecef!important}[data-theme=dark] .type-description{color:#adb5bd!important}[data-theme=dark] .size-button{background-color:#2d3035!important;border-color:#495057!important}[data-theme=dark] .size-button:hover{background-color:#35393e!important;border-color:#3d8bfd!important}[data-theme=dark] .size-button.selected{background-color:#1e3a5f!important;border-color:#3d8bfd!important}[data-theme=dark] .size-name{color:#e9ecef!important}[data-theme=dark] .size-chars{color:#adb5bd!important}[data-theme=dark] .blank-preview-section{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .blank-preview-section h4{color:#e9ecef!important}[data-theme=dark] .preview-text{background-color:#2d3035!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .detail-label{color:#adb5bd!important}[data-theme=dark] .detail-value{color:#e9ecef!important}[data-theme=dark] .underscore-preview{background-color:#3d4148!important;color:#e9ecef!important}[data-theme=dark] .matching-editor h4,[data-theme=dark] .matching-header>div{color:#e9ecef!important}[data-theme=dark] .column-header-row input,[data-theme=dark] .distractor-row input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .distractors-container,[data-theme=dark] .multi-columns-container,[data-theme=dark] .subset-container{color:#e9ecef!important}[data-theme=dark] .question-preview{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .question-preview-header{border-bottom-color:#495057!important}[data-theme=dark] .preview-matching-left,[data-theme=dark] .preview-matching-right{background-color:#2d3035!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .form-hint,[data-theme=dark] .preview-matching-connector{color:#adb5bd!important}[data-theme=dark] .length-input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .length-input:focus{border-color:#3d8bfd!important}[data-theme=dark] .slider{background:#495057!important}[data-theme=dark] .auto-explanation{background-color:#1e3a5f!important;border-color:#3d8bfd!important}[data-theme=dark] .smart-suggestion{background-color:#1a4a5f!important;border-left-color:#17a2b8!important}[data-theme=dark] .alert-danger{background-color:#dc354533!important;border-color:#dc354566!important;color:#f5a5a5!important}[data-theme=dark] .question-item{background-color:#25282c!important}[data-theme=dark] .question-footer{border-top-color:#495057!important}[data-theme=dark] .category-info{color:#adb5bd!important}[data-theme=dark] .filter-row input[type=text],[data-theme=dark] .filter-row select{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .empty-state{background-color:#25282c!important}[data-theme=dark] .empty-state h3,[data-theme=dark] .empty-state p{color:#adb5bd!important}[data-theme=dark] .version-indicator{background-color:#1e3a5f!important;border-color:#3d8bfd!important}[data-theme=dark] .version-indicator h3{color:#6ea8fe!important}[data-theme=dark] .version-indicator p{color:#e9ecef!important}[data-theme=dark] .version-list{background-color:#2d3035!important}[data-theme=dark] .version-item-list{color:#adb5bd!important}.label-image-editor{display:flex;flex-direction:column;gap:20px}.image-upload-area{background:#f8f9fa;border:2px dashed #ced4da;border-radius:8px;padding:40px 20px;text-align:center;transition:all .2s ease}.image-upload-area:hover{background:#e8f4fd;border-color:#4a90d9}.hidden-file-input{display:none}.upload-btn{background:#4a90d9;border-radius:6px;color:#fff;cursor:pointer;display:inline-block;font-weight:500;padding:12px 24px;transition:background .2s ease}.upload-btn:hover{background:#357abd}.upload-hint{color:#6c757d;font-size:13px;margin-top:10px}.image-preview-section{display:flex;flex-direction:column;gap:12px}.image-actions{display:flex;flex-wrap:wrap;gap:10px}.placing-hint{background:#fff3cd;border:1px solid #ffc107;border-radius:6px;color:#856404;font-size:14px;padding:10px 16px}.image-container{background:#f8f9fa;border:2px solid #dee2e6;border-radius:8px;overflow:hidden;position:relative}.image-container.placing-mode{border-color:#ffc107;cursor:crosshair}.image-container img{display:block;height:auto;max-width:100%}.label-point-marker{align-items:center;background:#dc3545;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 6px #0000004d;color:#fff;cursor:pointer;display:flex;font-size:12px;font-weight:700;height:28px;justify-content:center;position:absolute;transform:translate(-50%,-50%);transition:all .2s ease;width:28px;z-index:10}.label-point-marker:hover{background:#c82333;transform:translate(-50%,-50%) scale(1.15)}.label-point-marker.selected{background:#28a745;border-color:#ffc107;transform:translate(-50%,-50%) scale(1.2)}.selection-type-toggle{border-radius:4px;display:inline-flex;margin-right:8px;overflow:hidden}.selection-type-toggle .btn{border-radius:0;margin:0}.selection-type-toggle .btn:first-child{border-radius:4px 0 0 4px}.selection-type-toggle .btn:last-child{border-radius:0 4px 4px 0}.area-preview{background:#4a90d94d;border:2px dashed #4a90d9;pointer-events:none;position:absolute;z-index:15}.label-area-marker{background:#dc354540;border:2px solid #dc3545;cursor:pointer;position:absolute;transition:all .2s ease;z-index:10}.label-area-marker:hover{background:#dc354559;border-color:#c82333}.label-area-marker.selected{background:#28a74540;border-color:#28a745}.label-area-marker .area-label{align-items:center;background:#dc3545;border-radius:50%;color:#fff;display:flex;font-size:11px;font-weight:700;height:20px;justify-content:center;left:2px;min-width:20px;position:absolute;top:2px}.label-area-marker.selected .area-label{background:#28a745}.image-container.drawing-area{cursor:crosshair}.image-container.drawing-area img{-webkit-user-select:none;user-select:none}.label-points-list{display:flex;flex-direction:column;gap:10px}.label-point-item{align-items:flex-start;background:#f8f9fa;border:1px solid #dee2e6;border-radius:6px;cursor:pointer;display:flex;gap:12px;padding:12px;transition:all .2s ease}.label-point-item:hover{background:#e9ecef}.label-point-item.selected{background:#e8f5e9;border-color:#28a745}.point-number{align-items:center;background:#dc3545;border-radius:50%;color:#fff;display:flex;flex-shrink:0;font-size:12px;font-weight:700;height:28px;justify-content:center;width:28px}.label-point-item.selected .point-number{background:#28a745}.point-details{display:flex;flex:1 1;flex-direction:column;gap:8px}.point-details .hint-input{font-size:13px}.available-labels-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.available-label-item{align-items:center;background:#f8f9fa;border:1px solid #dee2e6;border-radius:6px;display:flex;gap:12px;padding:10px 12px}.available-label-item.distractor{background:#fff8e1;border-color:#ffc107}.available-label-item .form-control{flex:1 1}.distractor-toggle{align-items:center;color:#6c757d;display:flex;font-size:12px;gap:4px;white-space:nowrap}.distractor-toggle input[type=checkbox]{margin:0}.label-add-buttons{display:flex;gap:10px}.config-section{background:#f8f9fa;border-radius:8px;padding:16px}.config-options{display:flex;flex-direction:column;gap:10px}.config-option{margin-bottom:16px}.checkbox-label{align-items:center;cursor:pointer;display:flex;gap:8px}.checkbox-label input[type=checkbox]{cursor:pointer;height:16px;width:16px}.inline-hint{display:inline;margin-left:8px}.label-image-summary{background:#e8f5e9;border:1px solid #c8e6c9;border-radius:6px;color:#2e7d32;font-size:14px;padding:12px 16px}[data-theme=dark] .image-upload-area{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .image-upload-area:hover{background:#4a90d91a;border-color:#4a90d9}[data-theme=dark] .upload-hint{color:var(--text-secondary)}[data-theme=dark] .placing-hint{background:#ffc10726;border-color:#ffc10780;color:#ffc107}[data-theme=dark] .image-container{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .label-point-item{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .label-point-item:hover{background:var(--bg-secondary)}[data-theme=dark] .label-point-item.selected{background:#28a74526;border-color:#28a745}[data-theme=dark] .available-label-item{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .available-label-item.distractor{background:#ffc1071a;border-color:#ffc10780}[data-theme=dark] .config-section{background:var(--bg-tertiary)}[data-theme=dark] .distractor-toggle{color:var(--text-secondary)}[data-theme=dark] .label-image-summary{background:#28a74526;border-color:#28a7454d;color:#81c784}.mode-selector{display:flex;flex-wrap:wrap;gap:16px}.mode-option{align-items:flex-start;gap:12px;padding:16px}.mode-option:hover{background:#f8f9fa;border-color:#4a90d9}.mode-option.selected{background:#e8f4fd;border-color:#4a90d9}.mode-option input[type=radio]{flex-shrink:0;margin-top:4px}.mode-content{display:flex;flex-direction:column;gap:4px}.mode-content strong{color:#333;font-size:15px}.mode-content span{color:#6c757d;font-size:13px}.marker-position{align-items:center;background:#007bff;border:2px solid #fff;border-radius:4px;box-shadow:0 2px 6px #0000004d;color:#fff;cursor:pointer;display:flex;font-size:11px;font-weight:700;height:24px;justify-content:center;min-width:24px;padding:0 6px;position:absolute;transform:translate(-50%,-50%);transition:all .2s ease;white-space:nowrap;z-index:10}.marker-position:hover{background:#0056b3;transform:translate(-50%,-50%) scale(1.1)}.marker-position.selected{background:#28a745;border-color:#ffc107;transform:translate(-50%,-50%) scale(1.15)}.marker-area{background:#007bff33;border:2px solid #007bff;cursor:pointer;position:absolute;transition:all .2s ease;z-index:10}.marker-area:hover{background:#007bff4d;border-color:#0056b3}.marker-area.selected{background:#28a74533;border-color:#28a745}.marker-area .marker-area-label{background:#007bff;border-radius:4px;color:#fff;font-size:11px;font-weight:700;left:2px;padding:2px 6px;position:absolute;top:2px;white-space:nowrap}.marker-area.selected .marker-area-label{background:#28a745}.marker-items-list{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}.marker-item{align-items:flex-start;background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;display:flex;gap:12px;padding:14px;transition:all .2s ease}.marker-item.selected{background:#e8f5e9;border-color:#28a745}.marker-letter{align-items:center;background:#007bff;border-radius:6px;color:#fff;display:flex;flex-shrink:0;font-size:14px;font-weight:700;height:32px;justify-content:center;width:32px}.marker-item.selected .marker-letter{background:#28a745}.marker-details{display:flex;flex:1 1;flex-direction:column;gap:10px}.marker-position-row{align-items:center;display:flex;flex-wrap:wrap;gap:12px}.position-status{border-radius:4px;font-size:13px;padding:4px 10px}.position-status.set{background:#d4edda;color:#155724}.position-status.not-set{background:#f8d7da;color:#721c24}.tolerance-setting{align-items:center;display:flex;flex-wrap:wrap;gap:10px;padding:10px 0}.tolerance-setting>label{font-weight:500}.tolerance-input{width:70px!important}.tolerance-setting .form-text{margin-top:4px;width:100%}.label-image-summary .warning{color:#dc3545}[data-theme=dark] .mode-option{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .mode-option:hover{background:var(--bg-secondary);border-color:#4a90d9}[data-theme=dark] .mode-option.selected{background:#4a90d926;border-color:#4a90d9}[data-theme=dark] .mode-content strong{color:var(--text-primary)}[data-theme=dark] .mode-content span{color:var(--text-secondary)}[data-theme=dark] .marker-item{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .marker-item.selected{background:#28a74526;border-color:#28a745}[data-theme=dark] .position-status.set{background:#28a74533;color:#81c784}[data-theme=dark] .position-status.not-set{background:#dc354533;color:#f48fb1}@media (max-width:768px){.label-point-item{align-items:flex-start;flex-direction:column}.point-number{left:10px;position:absolute;top:10px}.point-details{padding-left:40px;width:100%}.available-label-item{flex-wrap:wrap}.available-label-item .form-control{width:100%}.label-add-buttons{flex-wrap:wrap}}.image-uploader-overlay{align-items:center;background-color:#000000b3;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.image-uploader-modal{background:#fff;background:var(--modal-bg,#fff);border:1px solid #dee2e6;border:1px solid var(--border-primary,#dee2e6);border-radius:8px;box-shadow:0 4px 20px #00000026;display:flex;flex-direction:column;max-height:90vh;max-width:800px;overflow:hidden;width:90%}.image-uploader-header{align-items:center;background-color:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:16px 20px}.image-uploader-header h3{color:#495057;font-size:18px;font-weight:600;margin:0}.close-btn{transition:all .2s ease}.image-uploader-content{display:flex;flex:1 1;flex-direction:column;gap:20px;overflow-y:auto;padding:20px}.upload-area{background-color:#f8f9fa;border:2px dashed #ced4da;border-radius:8px;cursor:pointer;padding:40px 20px;text-align:center;transition:all .3s ease}.upload-area:hover{background-color:#e3f2fd;border-color:#80bdff}.upload-area.drag-over{background-color:#cce7ff;border-color:#007bff;transform:scale(1.02)}.upload-icon{margin-bottom:16px}.upload-area h4{color:#495057;font-size:18px;font-weight:600;margin:0 0 12px}.upload-area p{color:#6c757d;font-size:14px;margin:4px 0}.upload-tips{background-color:#e8f4fd;border-radius:6px;margin-top:20px;padding:16px;text-align:left}.upload-tips ul{margin:8px 0 0;padding-left:20px}.upload-tips li{color:#495057;font-size:13px;margin:4px 0}.upload-status{align-items:center;display:flex;flex-direction:column;gap:12px}.spinner{border:3px solid #f3f3f3;height:32px;width:32px}.image-editor-view{display:flex;flex-direction:column;gap:20px}.image-preview-container{align-items:center;overflow:hidden}.image-preview-container img{max-height:350px;max-width:100%;object-fit:contain}.image-info{align-items:center;border-top:1px solid #e9ecef;display:flex;gap:10px;padding-top:10px}.image-info .image-name{color:#495057;font-size:14px;font-weight:600;word-break:break-word}.image-info .image-size{color:#6c757d;font-size:12px}.change-image-btn{background-color:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;margin-left:auto;padding:6px 12px;transition:background-color .2s ease}.change-image-btn:hover{background-color:#5a6268}.image-uploader-footer{background-color:#f8f9fa;border-top:1px solid #e9ecef;display:flex;gap:10px;justify-content:flex-end;padding:16px 20px}.image-uploader-footer p{color:#6c757d;flex:1 1;font-size:12px;margin:0;text-align:center}@media (max-width:768px){.image-uploader-modal{max-height:95vh;width:95%}.upload-area{padding:30px 15px}.upload-icon{font-size:36px}.upload-area h4{font-size:16px}.dimension-controls{flex-wrap:wrap}.dimension-input{min-width:120px}}@media (max-width:480px){.image-uploader-modal{border-radius:0;height:100vh;max-height:100vh;width:100%}.upload-area{padding:20px 10px}.upload-tips{padding:12px}.image-preview-container{max-height:250px}}[data-theme=dark] .image-uploader-modal{background:var(--modal-bg);border-color:var(--border-primary);box-shadow:0 4px 20px #00000080}[data-theme=dark] .image-uploader-header{background-color:var(--bg-secondary);border-bottom-color:var(--border-primary)}[data-theme=dark] .image-uploader-header h3{color:var(--text-primary)}[data-theme=dark] .close-btn{color:var(--text-secondary)}[data-theme=dark] .close-btn:hover{background-color:var(--bg-hover);color:var(--text-primary)}[data-theme=dark] .image-uploader-content{background-color:var(--modal-bg)}[data-theme=dark] .upload-area{background-color:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .upload-area:hover{background-color:var(--bg-hover);border-color:var(--color-primary)}[data-theme=dark] .upload-area.drag-over{background-color:var(--bg-tertiary);border-color:var(--color-primary)}[data-theme=dark] .upload-area h4,[data-theme=dark] .upload-area p{color:var(--text-primary)}[data-theme=dark] .upload-tips{background-color:var(--bg-tertiary)}[data-theme=dark] .upload-tips li{color:var(--text-primary)}[data-theme=dark] .image-preview-container{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .image-preview-container img{border-color:var(--border-primary);max-height:350px;max-width:100%;object-fit:contain}[data-theme=dark] .aspect-ratio-info label,[data-theme=dark] .dimension-input label{color:var(--text-primary)}[data-theme=dark] .dimension-input input{background:var(--bg-tertiary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .dimension-input input:focus{border-color:var(--color-primary)}[data-theme=dark] .lock-btn{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .lock-btn:hover{background:var(--bg-hover);border-color:var(--color-primary)}[data-theme=dark] .image-info{border-top-color:var(--border-primary)}[data-theme=dark] .image-info .image-name{color:var(--text-primary)}[data-theme=dark] .image-info .image-size{color:var(--text-secondary)}[data-theme=dark] .image-uploader-footer{background-color:var(--bg-secondary);border-top-color:var(--border-primary)}[data-theme=dark] .image-uploader-footer p{color:var(--text-secondary)}.image-editor-overlay{align-items:center;background-color:#000000b3;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1001}.image-editor-modal{background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;display:flex;flex-direction:column;max-height:90vh;max-width:800px;overflow:hidden;width:90%}.image-editor-header{align-items:center;background-color:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:16px 20px}.image-editor-header h3{color:#495057;font-size:18px;margin:0}.close-btn{font-size:28px}.close-btn:hover{background-color:#e9ecef;color:#495057}.image-editor-content{display:flex;flex:1 1;flex-direction:column;gap:20px;overflow-y:auto;padding:20px}.image-preview-container{align-items:flex-start;background:#f8f9fa;border:2px dashed #dee2e6;border-radius:8px;display:flex;justify-content:center;max-height:400px;min-height:200px;overflow:auto;padding:20px;position:relative}.image-preview-container img{border:1px solid #dee2e6;border-radius:4px;display:block}.resize-handle{align-items:center;background:#007bff;border-radius:4px;bottom:10px;box-shadow:0 2px 4px #0003;color:#fff;cursor:nwse-resize;display:flex;font-size:20px;height:30px;justify-content:center;position:absolute;right:10px;transition:background-color .2s;-webkit-user-select:none;user-select:none;width:30px}.resize-handle:hover{background:#0056b3}.resize-handle:active{background:#004085}.image-controls{display:flex;flex-direction:column;gap:15px}.dimension-controls{align-items:flex-end;display:flex;gap:10px}.dimension-input{display:flex;flex:1 1;flex-direction:column;gap:5px}.dimension-input label{color:#495057;font-size:14px;font-weight:500}.dimension-input input{border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:8px 12px;width:100%}.dimension-input input:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:none}.aspect-ratio-toggle{padding-bottom:2px}.aspect-ratio-toggle,.lock-btn{align-items:center;display:flex}.lock-btn{background:#f8f9fa;border:1px solid #ced4da;border-radius:4px;cursor:pointer;font-size:18px;height:38px;justify-content:center;transition:all .2s;width:40px}.lock-btn:hover{background:#e9ecef;border-color:#adb5bd}.lock-btn.locked{background:#d4edda;border-color:#28a745}.lock-btn.unlocked{background:#f8d7da;border-color:#dc3545}.aspect-ratio-info,.aspect-ratio-info label{align-items:center;display:flex}.aspect-ratio-info label{color:#495057;cursor:pointer;font-size:14px;gap:8px;-webkit-user-select:none;user-select:none}.aspect-ratio-info input[type=checkbox]{cursor:pointer}.image-editor-footer{background-color:#f8f9fa;border-top:1px solid #e9ecef;display:flex;gap:10px;justify-content:flex-end;padding:16px 20px}.btn{transition:all .2s}[data-theme=dark] .image-editor-modal{background:#2c3e50}[data-theme=dark] .image-editor-header{background-color:#1a252f;border-bottom-color:#34495e}[data-theme=dark] .image-editor-header h3{color:#ecf0f1}[data-theme=dark] .close-btn{color:#bdc3c7}[data-theme=dark] .close-btn:hover{background-color:#34495e;color:#ecf0f1}[data-theme=dark] .image-preview-container{background:#1a252f;border-color:#4a5f7f}[data-theme=dark] .image-preview-container img{border-color:#4a5f7f}[data-theme=dark] .aspect-ratio-info label,[data-theme=dark] .dimension-input label{color:#ecf0f1}[data-theme=dark] .dimension-input input{background:#34495e;border-color:#4a5f7f;color:#ecf0f1}[data-theme=dark] .dimension-input input:focus{border-color:#5dade2;box-shadow:0 0 0 .2rem #5dade240}[data-theme=dark] .lock-btn{background:#34495e;border-color:#4a5f7f}[data-theme=dark] .lock-btn:hover{background:#3d5a80;border-color:#5dade2}[data-theme=dark] .lock-btn.locked{background:#1b4332;border-color:#2ecc71}[data-theme=dark] .lock-btn.unlocked{background:#4a1c1c;border-color:#e74c3c}[data-theme=dark] .image-editor-footer{background-color:#1a252f;border-top-color:#34495e}@media (max-width:600px){.image-editor-modal{max-height:95vh;width:95%}.dimension-controls{flex-wrap:wrap}.dimension-input{min-width:120px}}.multi-part-editor{background-color:#f8f9fa;border-radius:8px;padding:20px}.context-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px;padding:20px}.context-section h3{color:#333;margin-bottom:15px;margin-top:0}.context-type-selector{margin-bottom:15px}.context-type-selector label{display:inline-block;font-weight:500;margin-right:10px}.context-type-selector select{border:1px solid #ddd;border-radius:4px;font-size:14px;padding:5px 10px}.context-content textarea{margin-top:10px}.parts-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px;padding:20px}.part-points{margin-bottom:10px;margin-top:10px}.part-points label{display:inline-block;font-size:14px;font-weight:500;margin-right:10px}.part-points input{border:1px solid #ddd;border-radius:4px;font-size:14px;padding:5px 10px}.part-scoring-config{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;margin-top:10px;padding:10px}.part-scoring-config label{display:inline-block;font-size:14px;font-weight:500;margin-right:10px}.part-scoring-config select{border:1px solid #ddd;border-radius:4px;font-size:14px;margin-bottom:5px;padding:5px 10px}.section-header h3{color:#333}.add-part-btn{background-color:#28a745;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;padding:8px 16px;transition:background-color .2s}.add-part-btn:hover{background-color:#218838}.collapse-all-btn{background-color:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:13px;padding:6px 12px;transition:background-color .2s}.collapse-all-btn:hover{background-color:#5a6268}.add-part-container{display:flex;justify-content:center;margin-bottom:10px;margin-top:20px}.part-editor{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;margin-bottom:15px;overflow:hidden;transition:box-shadow .2s}.part-editor:hover{box-shadow:0 2px 8px #0000001a}.part-editor.dragging{box-shadow:0 4px 12px #00000026;opacity:.8}.part-header{background:#e9ecef;border-bottom:1px solid #dee2e6;gap:10px;padding:12px 15px}.drag-handle,.part-header{align-items:center;display:flex}.drag-handle{flex-shrink:0;justify-content:center;margin-right:5px;min-height:24px;min-width:24px;padding:4px 8px}.drag-handle:hover{background:#0000000d;border-radius:4px}.reorder-buttons{display:flex;flex-direction:column;gap:2px;margin-right:8px}.reorder-btn{background:#e9ecef;border:1px solid #ced4da;border-radius:3px;color:#495057;cursor:pointer;font-size:12px;line-height:1;padding:2px 8px;transition:all .2s}.reorder-btn:hover:not(:disabled){background:#007bff;border-color:#007bff;color:#fff}.reorder-btn:disabled{cursor:not-allowed;opacity:.3}.collapse-toggle-btn{background:none;border:none;color:#6c757d;cursor:pointer;flex-shrink:0;font-size:12px;min-width:24px;padding:4px 8px;transition:color .2s}.collapse-toggle-btn:hover{color:#007bff}.part-type-badge{background:#e9ecef;border-radius:12px;color:#495057;flex-shrink:0;font-size:12px;font-weight:500;margin-right:10px;padding:3px 10px}.part-editor.collapsed{background:#fff}.part-editor.collapsed .part-header{border-bottom:none}.part-label{color:#495057;font-weight:600;margin-right:auto}.points-input{border:1px solid #ced4da;border-radius:4px;padding:4px 8px;width:60px}.points-label{color:#6c757d;font-size:14px}.remove-part-btn{background:#dc3545;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:16px;line-height:1;padding:4px 8px;transition:background-color .2s}.remove-part-btn:hover{background:#c82333}.part-content{padding:20px}.part-question{margin-bottom:15px;margin-top:15px}.part-question label,.part-type label{color:#495057;display:block;font-weight:500;margin-bottom:5px}.part-type{margin-bottom:15px}.part-type select{border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:6px 10px;width:200px}.part-type-content{background:#fff;border:1px solid #e9ecef;border-radius:6px;padding:15px}.part-type-content label{color:#495057;display:block;font-weight:500;margin-bottom:8px}.options-editor{margin-top:10px}.option-row{margin-bottom:10px}.option-row.rich-option{align-items:flex-start}.option-row.rich-option .option-content{flex:1 1;min-width:0}.option-row input[type=radio]{margin-top:8px}.option-input{border:1px solid #ced4da;border-radius:4px;flex:1 1;font-size:14px;padding:6px 10px}.remove-option-btn{background:#dc3545;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;padding:4px 8px;transition:background-color .2s}.remove-option-btn:hover{background:#c82333}.add-option-btn{background:#17a2b8;border:none;font-size:14px;padding:6px 12px;transition:background-color .2s}.add-option-btn:hover{background:#138496}.display-settings{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:20px}.display-settings h3{color:#333;margin-bottom:15px;margin-top:0}.display-settings label{cursor:pointer;display:block;margin-bottom:10px;-webkit-user-select:none;user-select:none}.display-settings input[type=checkbox]{margin-right:8px}.multi-part-question-editor .total-points{background:#e8f5e9;border-radius:6px;color:#28a745;font-size:18px;font-weight:600;margin-top:15px;padding:10px 15px;text-align:right}.context-images{margin-top:15px}.context-images .btn-secondary{align-items:center;background:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;display:inline-flex;font-size:14px;gap:6px;padding:8px 16px;transition:background-color .2s}.context-images .btn-secondary:hover{background:#5a6268}.uploaded-images{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));margin-top:15px}.image-preview{background:#fff;border:1px solid #dee2e6;border-radius:6px;overflow:hidden;position:relative;transition:box-shadow .2s}.image-preview:hover{box-shadow:0 2px 8px #0000001a}.image-preview img{display:block;height:120px;object-fit:cover;width:100%}.edit-image-btn{align-items:center;background:#007bffe6;border:none;border-radius:50%;bottom:4px;color:#fff;cursor:pointer;display:flex;font-size:16px;height:28px;justify-content:center;left:4px;line-height:1;padding:0;position:absolute;transition:background-color .2s;width:28px}.edit-image-btn:hover{background:#0056b3}.remove-image-btn{align-items:center;background:#dc3545e6;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;padding:0;position:absolute;right:4px;top:4px;transition:background-color .2s;width:24px}.remove-image-btn:hover{background:#c82333}.full-width{box-sizing:border-box}.help-text{margin-bottom:0}textarea{font-family:inherit;padding:8px 12px;width:100%}select,textarea{border:1px solid #ced4da;border-radius:4px;font-size:14px}select{background:#fff;cursor:pointer;padding:6px 10px}input[type=number],input[type=text]{font-family:inherit}[data-theme=dark] .multi-part-editor{background-color:#1a252f}[data-theme=dark] .context-section,[data-theme=dark] .display-settings,[data-theme=dark] .parts-section{background:#2c3e50;box-shadow:0 2px 4px #0000004d}[data-theme=dark] .context-section h3,[data-theme=dark] .context-type-selector label,[data-theme=dark] .display-settings h3,[data-theme=dark] .part-points label,[data-theme=dark] .part-question label,[data-theme=dark] .part-scoring-config label,[data-theme=dark] .part-type label,[data-theme=dark] .part-type-content label,[data-theme=dark] .section-header h3{color:#ecf0f1}[data-theme=dark] .context-type-selector select,[data-theme=dark] .part-type select,[data-theme=dark] select{background:#34495e;border-color:#4a5f7f;color:#ecf0f1}[data-theme=dark] .part-editor{background:#34495e;border-color:#4a5f7f}[data-theme=dark] .part-header{background:#1a252f;border-bottom-color:#4a5f7f}[data-theme=dark] .part-label,[data-theme=dark] .points-label{color:#ecf0f1}[data-theme=dark] .drag-handle{color:#95a5a6}[data-theme=dark] .drag-handle:hover{background:#ffffff1a}[data-theme=dark] .reorder-btn{background:#4a5f7f;border-color:#5a6f8f;color:#ecf0f1}[data-theme=dark] .reorder-btn:hover:not(:disabled){background:#3498db;border-color:#3498db}[data-theme=dark] .collapse-all-btn{background-color:#4a5f7f}[data-theme=dark] .collapse-all-btn:hover{background-color:#5a6f8f}[data-theme=dark] .collapse-toggle-btn{color:#95a5a6}[data-theme=dark] .collapse-toggle-btn:hover{color:#3498db}[data-theme=dark] .part-type-badge{background:#4a5f7f;color:#ecf0f1}[data-theme=dark] .part-editor.collapsed{background:#2c3e50}[data-theme=dark] .points-input{background:#34495e;border-color:#4a5f7f;color:#ecf0f1}[data-theme=dark] .part-content{background:#2c3e50}[data-theme=dark] .option-input,[data-theme=dark] .part-type-content{background:#34495e;border-color:#4a5f7f}[data-theme=dark] .option-input{color:#ecf0f1}[data-theme=dark] .part-scoring-config{background-color:#1a252f;border-color:#4a5f7f}[data-theme=dark] textarea{background:#34495e;border-color:#4a5f7f;color:#ecf0f1}[data-theme=dark] .context-images .btn-secondary{background:#5a6268}[data-theme=dark] .context-images .btn-secondary:hover{background:#4a5057}[data-theme=dark] .image-preview{background:#34495e;border-color:#4a5f7f}[data-theme=dark] .edit-image-btn{background:#3498dbe6}[data-theme=dark] .edit-image-btn:hover{background:#2980b9}[data-theme=dark] .multi-part-question-editor .total-points{background:#1b4332;color:#2ecc71}[data-theme=dark] .help-text{color:#95a5a6}@media (max-width:768px){.context-section,.display-settings,.multi-part-editor,.parts-section{padding:15px}.part-header{flex-wrap:wrap}.points-input{width:50px}.uploaded-images{gap:10px;grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.image-preview img{height:100px}}.loading-editor{background:#f8f9fa;border:1px dashed #dee2e6;border-radius:8px;color:#6c757d;font-style:italic;padding:40px 20px;text-align:center}.rich-option{align-items:flex-start;background-color:#fafafa;border:1px solid #e9ecef;border-radius:8px;display:flex;gap:12px;margin-bottom:15px;padding:15px}.rich-option input[type=radio]{flex-shrink:0;margin-top:8px}.option-content{flex:1 1;min-width:0}.rich-option .rich-text-editor{margin:0}.rich-option .editor-content{font-size:14px;min-height:80px}.rich-option .btn-danger{flex-shrink:0;margin-top:8px}.options-container{margin:20px 0}.options-container>label{color:#495057;display:block;font-weight:700;margin-bottom:15px}.add-option-btn{background-color:#007bff;border:1px solid #007bff;border-radius:4px;color:#fff;cursor:pointer;margin-top:10px;padding:8px 16px}.add-option-btn:hover{background-color:#0056b3;border-color:#0056b3}.saved-questions-list{list-style:none;margin:10px 0;padding:0}.saved-questions-list li{background-color:#f8f9fa;border-left:4px solid #28a745;border-radius:4px;margin-bottom:8px;padding:10px}.saved-questions-list li strong{color:#495057;margin-right:10px}.action-buttons{flex-wrap:wrap}.btn-success{border:1px solid #28a745}.btn-success:disabled{background-color:#6c757d;border-color:#6c757d;cursor:not-allowed}.btn-info{border:1px solid #17a2b8}.btn-info:hover{border-color:#117a8b}.btn-info:disabled{background-color:#6c757d;border-color:#6c757d;cursor:not-allowed}.action-buttons .btn{min-width:150px;padding:10px 20px}.content-section h3{color:#28a745;font-size:1.2rem;margin-bottom:15px}.bulk-mode-selector{background-color:#f8f9fa;border-radius:8px;margin-bottom:30px;padding:30px}.mode-options{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px}.mode-option{background:#fff;border:2px solid #dee2e6;border-radius:8px;min-width:250px;padding:30px;text-align:center;transition:all .3s ease}.mode-option:hover{border-color:#007bff;box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.mode-option.active{background-color:#e7f1ff;border-color:#007bff}.mode-icon{display:block;font-size:3em;margin-bottom:15px}.mode-title{color:#333;display:block;font-size:1.2em;font-weight:600;margin-bottom:10px}.mode-desc{color:#6c757d;display:block;font-size:.9em}.bulk-setup{padding:40px;text-align:center}.bulk-setup label{color:#495057;display:block;font-size:1.1em;margin-bottom:20px}.number-selector{align-items:center;display:flex;gap:15px;justify-content:center}.number-selector input[type=number]{border:2px solid #ced4da;border-radius:4px;font-size:1.2em;padding:10px;text-align:center;width:80px}.bulk-progress{margin-bottom:30px}.progress-bar{background-color:#e9ecef;border-radius:10px;height:20px;margin:15px 0;width:100%}.progress-fill{background-color:#28a745}.question-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.question-tab{background-color:#fff;border:2px solid #dee2e6;border-radius:4px;cursor:pointer;font-weight:500;padding:8px 16px;transition:all .2s ease}.question-tab:hover{background-color:#f8f9fa;border-color:#007bff}.question-tab.active{background-color:#007bff;border-color:#007bff;color:#fff}.question-tab.saved{border-color:#28a745;color:#28a745}.question-tab.saved.active{background-color:#28a745;border-color:#28a745;color:#fff}.bulk-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:15px}.expanded-questions-view{background-color:#f8f9fa;border-radius:8px;margin-top:20px;padding:20px}.expanded-questions-list{display:flex;flex-direction:column;gap:15px;margin-top:20px}.expanded-question-item{background-color:#fff;border:2px solid #dee2e6;border-radius:8px;padding:20px;transition:all .2s ease}.expanded-question-item.current{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.expanded-question-item.saved{border-color:#28a745}.expanded-question-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:15px;padding-bottom:15px}.expanded-question-header h4{color:#333;margin:0}.expanded-question-content{color:#495057}.expanded-question-content p{margin:8px 0}.expanded-question-content ul{margin:10px 0;padding-left:25px}.expanded-question-content em{color:#6c757d}.radio-group-inline{align-items:center;display:flex;gap:30px;margin-top:10px}.radio-inline{align-items:center;cursor:pointer;display:flex;font-weight:400;gap:8px}.radio-inline input[type=radio]{cursor:pointer;margin:0}.radio-inline span{cursor:pointer;-webkit-user-select:none;user-select:none}.version-info{color:#1976d2;display:inline-block;font-size:.9em;margin:5px 0;padding:5px 10px}.version-indicator{background-color:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;margin-bottom:20px;padding:20px}.version-indicator h3{color:#856404;margin-bottom:10px}.version-list{margin-top:15px}.version-item-list{background-color:#fef9e7;border-left:3px solid #f39c12;font-size:.9em;margin-bottom:8px;padding:8px 12px}.version-badge{background-color:#1976d2;border-radius:20px;color:#fff;display:inline-block;font-size:.8em;font-weight:400;margin-left:15px;padding:4px 12px;vertical-align:middle}.question-text-with-blank{position:relative}.question-text-with-blank textarea{padding-right:120px;width:100%}.insert-blank-btn{background-color:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:.85em;padding:5px 10px;position:absolute;right:10px;top:10px;transition:background-color .2s}.insert-blank-btn:hover{background-color:#5a6268}.text-muted{color:#6c757d;display:block;font-size:.875em;margin-top:5px}.blank-preview-info{background-color:#e7f3ff;border:1px solid #b3d9ff;border-radius:4px;margin-top:10px;padding:10px 15px}.blank-preview-info strong{color:#0056b3;display:block;margin-bottom:5px}.navigation-buttons{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:12px 16px}.navigation-buttons .btn{min-width:100px}.navigation-buttons span{font-weight:500;white-space:nowrap}@media (max-width:768px){.action-buttons{flex-direction:column}.action-buttons .btn{width:100%}.mode-options{flex-direction:column}.mode-option{min-width:100%}.navigation-buttons{flex-direction:column;gap:10px}.navigation-buttons .btn{width:100%}}.ordering-items-container{margin-bottom:15px}.ordering-item{align-items:center;background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;cursor:move;display:flex;margin-bottom:10px;padding:10px}.ordering-item.dragging{background-color:#e3f2fd}.ordering-item-number{color:#6c757d;font-weight:700;margin-right:10px;min-width:30px}.ordering-item-input{flex:1 1;margin-right:10px}.ordering-grading-info{background-color:#fff3cd;border-radius:4px;margin-top:15px;padding:10px}[data-theme=dark] .rich-option{background-color:#2d3035!important;border-color:#495057!important}[data-theme=dark] .rich-option:hover{background-color:#35393e!important}[data-theme=dark] .option-content{background-color:initial!important}[data-theme=dark] .rich-option .editor-content{color:#e9ecef!important}[data-theme=dark] .matching-pair{background-color:#2d3035!important}[data-theme=dark] .matching-pair-input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .matching-pair-input::placeholder{color:#6c757d!important}[data-theme=dark] .matching-pair-input:focus{background-color:#3d4148!important;border-color:#3d8bfd!important;box-shadow:0 0 0 .2rem #3d8bfd40!important}[data-theme=dark] .matching-header{color:#e9ecef!important}[data-theme=dark] .column-header-row input,[data-theme=dark] .distractor-row input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .column-header-row input:focus,[data-theme=dark] .distractor-row input:focus{border-color:#3d8bfd!important}[data-theme=dark] .subset-input input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .advanced-option{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .advanced-options{border-top-color:#495057!important}[data-theme=dark] .instructions{background-color:#1e3a5f!important;border-left-color:#3d8bfd!important;color:#e9ecef!important}[data-theme=dark] .instructions em,[data-theme=dark] .instructions li,[data-theme=dark] .instructions ol,[data-theme=dark] .instructions p{color:#e9ecef!important}[data-theme=dark] .ordering-item{background-color:#2d3035!important;border-color:#495057!important}[data-theme=dark] .ordering-item:hover{background-color:#35393e!important}[data-theme=dark] .ordering-item.dragging{background-color:#1e3a5f!important}[data-theme=dark] .ordering-item-number{color:#adb5bd!important}[data-theme=dark] .ordering-item-input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .ordering-item-input:focus{border-color:#3d8bfd!important}[data-theme=dark] .ordering-grading-info{background-color:#5a4d20!important;color:#f9e7a0!important}[data-theme=dark] .option-description{color:#adb5bd!important}[data-theme=dark] .option-toggle label{color:#e9ecef!important}[data-theme=dark] .saved-questions-list li{background-color:#2d3035;background-color:var(--bg-secondary,#2d3035);border-left-color:#28a745}[data-theme=dark] .saved-questions-list li,[data-theme=dark] .saved-questions-list li strong{color:#e9ecef;color:var(--text-primary,#e9ecef)}[data-theme=dark] .saved-questions-list li span{color:#adb5bd!important;color:var(--text-secondary,#adb5bd)!important}.online-settings-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:1000}.online-settings-modal{background:var(--modal-bg);border:1px solid var(--border-primary);border-radius:12px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;max-height:90vh;max-width:800px;overflow:hidden;width:100%}.online-settings-header{background:var(--sidebar-bg);border-bottom:1px solid var(--border-primary);padding:20px 24px;position:relative}.online-settings-header h2{color:var(--text-primary);font-size:20px;font-weight:600;margin:0 0 4px}.settings-subtitle{color:var(--text-secondary);font-size:14px;margin:0}.close-btn{font-size:24px;line-height:1;padding:4px 8px;position:absolute;right:16px;top:16px;transition:all .2s}.close-btn:hover{background:var(--bg-hover)}.online-settings-content{display:flex;flex:1 1;overflow:hidden}.settings-sidebar{background:var(--sidebar-bg);border-right:1px solid var(--border-primary);flex-shrink:0;padding:16px 0;width:160px}.sidebar-btn{background:none;border:none;border-left:3px solid #0000;color:var(--text-secondary);cursor:pointer;display:block;font-size:14px;padding:12px 20px;text-align:left;transition:all .2s;width:100%}.sidebar-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.sidebar-btn.active{background:var(--bg-info);border-left-color:var(--color-primary);color:var(--color-primary);font-weight:500}.settings-panel{background:var(--modal-bg);flex:1 1;overflow-y:auto;padding:24px}.settings-section h3{color:var(--text-primary);font-size:18px;font-weight:600;margin:0 0 4px}.section-description{color:var(--text-secondary);margin:0 0 24px}.setting-item{align-items:center;border-bottom:1px solid var(--border-secondary);display:flex;justify-content:space-between;padding:16px 0}.setting-item:last-child{border-bottom:none}.setting-info{flex:1 1;padding-right:20px}.setting-info label{color:var(--text-primary);display:block;font-size:14px;font-weight:500;margin-bottom:2px}.setting-help{color:var(--text-secondary);display:block;font-size:12px}.toggle-switch{flex-shrink:0;height:26px;width:48px}.toggle-slider{background-color:var(--border-primary);border-radius:26px}.toggle-slider:before{box-shadow:0 2px 4px #0003;height:20px;width:20px}.toggle-switch input:checked+.toggle-slider{background-color:var(--color-primary)}.toggle-switch input:checked+.toggle-slider:before{transform:translateX(22px)}.toggle-switch input:disabled+.toggle-slider{cursor:not-allowed;opacity:.5}.setting-select{background:var(--input-bg);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);cursor:pointer;font-size:14px;min-width:180px;padding:8px 12px}.setting-select:hover{border-color:var(--text-tertiary)}.setting-select:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #0d6efd26;outline:none}.setting-input-group{align-items:center;display:flex;gap:10px}.setting-number-input{background:var(--input-bg);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);font-size:14px;padding:8px 12px;text-align:center;width:80px}.setting-number-input:hover{border-color:var(--text-tertiary)}.setting-number-input:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #0d6efd26;outline:none}.setting-number-input:disabled{cursor:not-allowed;opacity:.5}.setting-checkbox-label{align-items:center;cursor:pointer;display:flex!important;font-size:14px;gap:6px;white-space:nowrap}.setting-checkbox{cursor:pointer;height:16px!important;margin:0!important;width:16px!important}.setting-divider{border-top:1px solid var(--border-secondary);margin:16px 0 8px}.template-bar{background-color:#f8f9fa;border-bottom:1px solid var(--border-primary);display:flex;gap:12px;padding:12px 24px}.template-btn{align-items:center;background:#fff;border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);cursor:pointer;display:flex;font-size:14px;gap:8px;padding:8px 14px;transition:all .2s}.template-btn:hover{background-color:#e9ecef}.template-btn.secondary{background:#0000;border-color:#0000;color:var(--text-secondary)}.template-btn.secondary:hover{background-color:#0000000d}.template-icon{font-size:16px}.dropdown-arrow{font-size:10px;margin-left:4px}.template-panel{background:#fff;border:1px solid var(--border-primary);border-top:none;box-shadow:0 4px 12px #00000026;left:0;max-height:350px;overflow-y:auto;position:absolute;right:0;top:auto;z-index:100}.template-panel-header{align-items:center;border-bottom:1px solid var(--border-secondary);display:flex;justify-content:space-between;padding:12px 16px}.template-panel-header h4{font-size:14px;font-weight:600;margin:0}.template-panel-close{background:none;border:none;color:var(--text-tertiary);cursor:pointer;font-size:20px;line-height:1;padding:0}.template-list{padding:8px}.template-item{align-items:center;border:1px solid #0000;border-radius:6px;display:flex;justify-content:space-between;padding:10px 12px;transition:all .2s}.template-item:hover{background-color:#f0f4f8;border-color:var(--border-secondary)}.template-item-info{display:flex;flex:1 1;flex-direction:column;gap:4px}.template-name{font-size:14px;font-weight:500}.template-description{color:var(--text-tertiary);font-size:12px}.template-badge{border-radius:10px;display:inline-block;font-size:10px;font-weight:600;margin-left:8px;padding:2px 8px;text-transform:uppercase}.template-badge.default{background-color:#e3f2fd;color:#1976d2}.template-item-actions{display:flex;gap:4px}.template-action-btn{background:#0000;border:none;border-radius:4px;color:var(--text-tertiary);cursor:pointer;font-size:16px;height:28px;transition:all .2s;width:28px}.template-action-btn:hover{background-color:#e9ecef;color:var(--text-primary)}.template-action-btn.delete:hover{background-color:#fee;color:#d32f2f}.template-action-btn.small{font-size:14px;height:22px;width:22px}.auto-apply-section{background-color:#f8f9fa;border-top:1px solid var(--border-secondary);padding:12px 16px}.auto-apply-section h5{color:var(--text-secondary);font-size:13px;font-weight:600;margin:0 0 10px}.auto-apply-list{display:flex;flex-direction:column;gap:6px}.auto-apply-rule{align-items:center;background-color:#fff;border-radius:4px;display:flex;font-size:13px;justify-content:space-between;padding:8px 10px}.template-modal-overlay{align-items:center;background-color:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.template-modal{background:#fff;border-radius:12px;box-shadow:0 8px 32px #0003;max-width:90vw;padding:24px;width:400px}.template-modal h3{font-size:18px;margin:0 0 8px}.template-modal>p{color:var(--text-secondary);font-size:14px;margin:0 0 20px}.template-form{display:flex;flex-direction:column;gap:12px}.template-form label{font-size:14px;font-weight:500;margin-bottom:-8px}.template-input,.template-select,.template-textarea{border:1px solid var(--border-primary);border-radius:6px;font-family:inherit;font-size:14px;padding:10px 12px}.template-input:focus,.template-select:focus,.template-textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #0d6efd26;outline:none}.template-textarea{min-height:60px;resize:vertical}.template-modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.security-warning{align-items:flex-start;background:#ffc10726;border:1px solid var(--color-warning);border-radius:8px;color:var(--color-warning);display:flex;font-size:13px;gap:10px;margin-top:20px;padding:12px 16px}.warning-icon{align-items:center;background:var(--color-warning);border-radius:50%;color:#212529;display:flex;flex-shrink:0;font-size:12px;font-weight:700;height:20px;justify-content:center;width:20px}.online-settings-footer{align-items:center;background:var(--sidebar-bg);border-top:1px solid var(--border-primary);display:flex;justify-content:space-between;padding:16px 24px}.btn-reset{background:none;border:1px solid var(--color-danger);border-radius:6px;color:var(--color-danger);cursor:pointer;font-size:14px;padding:8px 16px;transition:all .2s}.btn-reset:hover{background:var(--color-danger);color:#fff}.footer-actions{display:flex;gap:12px}.btn-cancel{background:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);cursor:pointer;font-size:14px;padding:8px 20px;transition:all .2s}.btn-cancel:hover{background:var(--bg-hover);border-color:var(--text-tertiary)}.btn-save{background:var(--color-primary);border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:8px 24px;transition:all .2s}.btn-save:hover{background:var(--link-hover)}html[data-theme=dark] .online-settings-modal{background-color:#25282c!important;border-color:#495057!important}html[data-theme=dark] .online-settings-header{background-color:#1e2124!important;border-bottom-color:#495057!important}html[data-theme=dark] .online-settings-header h2{color:#e9ecef!important}html[data-theme=dark] .online-settings-modal .close-btn,html[data-theme=dark] .settings-subtitle{color:#adb5bd!important}html[data-theme=dark] .settings-sidebar{background-color:#1e2124!important;border-right-color:#495057!important}html[data-theme=dark] .sidebar-btn{color:#adb5bd!important}html[data-theme=dark] .sidebar-btn:hover{background-color:#3d4148!important;color:#e9ecef!important}html[data-theme=dark] .sidebar-btn.active{background-color:#0d6efd33!important;border-left-color:#6ea8fe!important;color:#6ea8fe!important}html[data-theme=dark] .online-settings-modal .settings-panel,html[data-theme=dark] .online-settings-modal .settings-section{background-color:#25282c!important}html[data-theme=dark] .settings-section h3{color:#e9ecef!important}html[data-theme=dark] .online-settings-modal .section-description{color:#adb5bd!important}html[data-theme=dark] .setting-item{border-bottom-color:#3d4148!important}html[data-theme=dark] .setting-info label{color:#e9ecef!important}html[data-theme=dark] .online-settings-modal .setting-help{color:#adb5bd!important}html[data-theme=dark] .setting-select{border-color:#495057!important}html[data-theme=dark] .setting-select,html[data-theme=dark] .setting-select option{background-color:#3d4148!important;color:#e9ecef!important}html[data-theme=dark] .online-settings-footer{background-color:#1e2124!important;border-top-color:#495057!important}html[data-theme=dark] .online-settings-modal .btn-reset{color:#f8d7da!important}html[data-theme=dark] .online-settings-modal .btn-cancel{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}html[data-theme=dark] .online-settings-modal .btn-cancel:hover{background-color:#4d5158!important}html[data-theme=dark] .setting-number-input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}html[data-theme=dark] .setting-number-input:disabled{background-color:#2d3035!important}html[data-theme=dark] .setting-checkbox-label{color:#e9ecef!important}html[data-theme=dark] .setting-divider{border-color:#495057!important}html[data-theme=dark] .template-bar{background-color:#1e2124!important;border-color:#495057!important}html[data-theme=dark] .template-btn{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}html[data-theme=dark] .template-btn:hover{background-color:#4d5158!important}html[data-theme=dark] .template-btn.secondary{background-color:initial!important;border-color:#0000!important;color:#adb5bd!important}html[data-theme=dark] .template-panel{background-color:#25282c!important;border-color:#495057!important}html[data-theme=dark] .template-panel-header{border-color:#495057!important}html[data-theme=dark] .template-item:hover{background-color:#3d4148!important}html[data-theme=dark] .template-badge.default{background-color:#0d6efd33!important;color:#6ea8fe!important}html[data-theme=dark] .auto-apply-section{background-color:#1e2124!important;border-color:#495057!important}html[data-theme=dark] .auto-apply-rule{background-color:#3d4148!important}html[data-theme=dark] .template-modal{background-color:#25282c!important}@media (max-width:640px){.online-settings-content{flex-direction:column}.settings-sidebar{border-bottom:1px solid var(--border-primary);border-right:none;display:flex;overflow-x:auto;padding:0;width:100%}.sidebar-btn{border-bottom:3px solid #0000;border-left:none;flex:1 1;padding:12px 8px;text-align:center;white-space:nowrap}.sidebar-btn.active{border-bottom-color:var(--color-primary);border-left-color:#0000}.settings-panel{padding:16px}.setting-item{align-items:flex-start;flex-direction:column;gap:12px}.setting-info{padding-right:0}.online-settings-footer{flex-direction:column;gap:12px}.footer-actions{justify-content:flex-end;width:100%}}.quiz-bank{margin:0 auto;max-width:1200px;min-height:calc(100vh - 200px);padding:20px}.quiz-bank-header{align-items:center;border-bottom:2px solid #e1e5e9;display:flex;justify-content:space-between;margin-bottom:20px;padding-bottom:15px}.quiz-bank-header h1{color:#333;margin:0}.header-actions{gap:10px}.filter-container{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px}.filter-container,.filter-section{margin-bottom:20px}.filter-section:last-child{margin-bottom:0}.filter-row>*{flex:1 1;min-width:200px}.filter-row label{align-items:center;color:#555;display:flex;flex:0 0 auto;font-weight:500;margin-right:10px;min-width:auto}.filter-row input[type=text],.filter-row select{font-size:14px}.filter-row input[type=text]:focus,.filter-row select:focus{outline:none}.sort-controls{align-items:center;display:flex;gap:15px}.sort-controls select{flex:1 1;max-width:200px}.order-controls{display:flex;gap:10px}.order-controls button{background:#fff;border:1px solid #ced4da;border-radius:4px;cursor:pointer;padding:6px 12px;transition:all .2s}.order-controls button:hover{background:#f8f9fa}.order-controls button.active{background:#007bff;border-color:#007bff;color:#fff}.top-controls{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:15px;padding:10px 0}.version-controls{display:flex;gap:8px}.page-size-selector{align-items:center;display:flex;gap:10px}.page-size-selector select{border:1px solid #ced4da;border-radius:4px;padding:5px 10px}.pagination-controls{background-color:#f8f9fa;border-radius:8px;margin-bottom:20px;padding:15px}.pagination-info{color:#6c757d;font-weight:500;margin-bottom:10px;text-align:center}.pagination-buttons{display:flex;gap:5px;justify-content:center;margin-top:10px}.pagination-btn{background:#fff;border:1px solid #dee2e6;border-radius:4px;color:#007bff;cursor:pointer;padding:8px 12px;transition:all .2s}.pagination-btn:hover:not(:disabled){background:#e9ecef}.pagination-btn:disabled{color:#6c757d;cursor:not-allowed}.pagination-btn.active{background:#007bff;border-color:#007bff;color:#fff}.page-indicator{color:#6c757d;margin:0 15px}.quizzes-list{grid-gap:20px;display:grid;gap:20px}.quiz-group-container{background-color:#fafafa;border:2px solid #e0e0e0;border-radius:12px;box-shadow:0 2px 4px #0000000d;padding:16px;transition:all .2s ease}.quiz-group-container:hover{border-color:#2196f3;box-shadow:0 4px 8px #0000001a}.quiz-item{background-color:#fff;border-radius:8px;margin-bottom:0;padding:16px;text-align:left!important;transition:all .2s ease}.quiz-item.has-versions{border-color:#2196f3}.quiz-header{gap:8px;width:100%}.quiz-header input[type=checkbox]{align-self:flex-start;flex-shrink:0;margin-top:0}.version-badges{align-items:flex-start;align-self:flex-start;display:flex;flex-direction:column;flex-shrink:0;gap:4px}.quiz-bank .version-count-badge,.quiz-bank .version-indicator{background-color:#2196f3;border:none!important;border-radius:12px;color:#fff;display:inline-block;font-size:11px;font-weight:500;height:auto;line-height:16px;margin:0;min-width:75px;padding:2px 8px;text-align:center;white-space:nowrap}.quiz-bank .version-indicator{background-color:#e8f0fe;border:1px solid #dadce0!important;color:#202124}.quiz-info{align-self:flex-start;display:flex;flex:1 1;flex-direction:column;gap:0;min-width:0;text-align:left}.quiz-title{color:#333;font-size:16px;font-weight:600;margin:0 0 4px}.quiz-description{color:#6c757d;font-size:14px;margin:0 0 8px}.quiz-meta{align-items:center;font-size:.85rem;gap:12px;margin-top:4px}.quiz-meta .quiz-category{color:#6c757d}.quiz-meta .question-count{background-color:#f1f3f4;border-radius:12px;color:#5f6368;font-weight:500;padding:3px 10px}.quiz-actions{border-top:1px solid #e9ecef;flex-wrap:wrap;gap:8px;margin-top:8px;padding-top:8px}.btn{padding:6px 12px}.btn-info{background:#17a2b8}.btn-info:hover{background:#138496}.btn-light{background:#f8f9fa;border:1px solid #dee2e6}.btn-light:hover{background:#e2e6ea;border-color:#dae0e5}.quiz-actions .btn-sm{font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;margin:0;padding:6px 12px}.quiz-actions .btn-sm,.quiz-actions button.btn-sm{align-items:center;box-sizing:border-box;display:inline-flex}.quiz-actions button.btn-sm{-webkit-appearance:none;appearance:none;border:none;font:inherit;justify-content:center;line-height:1.5!important;padding:6px 12px!important;vertical-align:middle}.quiz-actions button.btn-sm:focus{box-shadow:none;outline:none}.select-all-header{align-items:center;background:#e7f3ff;border:1px solid #b3d9ff;border-radius:4px;display:flex;gap:12px;margin-bottom:16px;padding:12px}.select-all-label{color:#0056b3;font-weight:500}.version-list{border-top:1px solid #e0e0e0;display:none;margin-top:16px;padding-top:16px}.quiz-item.expanded .version-list{display:block}.version-item{background:#fff;border:1px solid #e1e4e8;border-radius:8px;margin-top:12px;padding:16px;transition:all .2s ease}.version-item:hover{border-color:#2196f3;box-shadow:0 2px 4px #0000001a}.version-item-header{align-items:flex-start;display:flex;gap:8px;width:100%}.version-item-header input[type=checkbox]{align-self:flex-start;flex-shrink:0;margin-top:0}.version-actions{border-top:1px solid #e9ecef;display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;padding-top:8px}.loading-spinner,.no-quizzes{padding:40px}.no-quizzes{color:#6c757d;text-align:center}@media (max-width:768px){.filter-row{flex-direction:column}.filter-row>*{min-width:0;width:100%}.quiz-bank-header{align-items:flex-start;flex-direction:column;gap:15px}.header-actions{justify-content:flex-start;width:100%}}.published-badge{background-color:#28a745;border-radius:12px;color:#fff;font-size:11px;font-weight:500;margin-left:8px;padding:2px 8px}[data-theme=dark] .quiz-bank-header h1{color:#e9ecef}[data-theme=dark] .quiz-bank-header{border-bottom-color:#495057}[data-theme=dark] .filter-container{background:#2d3035;border-color:#495057}[data-theme=dark] .filter-row label{color:#adb5bd}[data-theme=dark] .filter-row input[type=text],[data-theme=dark] .filter-row select{background-color:#1a1d21;border-color:#495057;color:#e9ecef}[data-theme=dark] .filter-row input[type=text]:focus,[data-theme=dark] .filter-row select:focus{border-color:#3d8bfd;box-shadow:0 0 0 .2rem #3d8bfd40}[data-theme=dark] .order-controls button{background:#2d3035;border-color:#495057;color:#e9ecef}[data-theme=dark] .order-controls button:hover{background:#3d4450}[data-theme=dark] .order-controls button.active{background:#0d6efd;border-color:#0d6efd;color:#fff}[data-theme=dark] .top-controls{border-bottom-color:#495057}[data-theme=dark] .page-size-selector select{background-color:#1a1d21;border-color:#495057;color:#e9ecef}[data-theme=dark] .pagination-controls{background-color:#2d3035}[data-theme=dark] .pagination-info{color:#adb5bd}[data-theme=dark] .pagination-btn{background:#1a1d21;border-color:#495057;color:#6ea8fe}[data-theme=dark] .pagination-btn:hover:not(:disabled){background:#2d3035}[data-theme=dark] .pagination-btn:disabled{color:#6c757d}[data-theme=dark] .pagination-btn.active{background:#0d6efd;border-color:#0d6efd;color:#fff}[data-theme=dark] .page-indicator{color:#adb5bd}[data-theme=dark] .quiz-group-container{background-color:#25282c;border-color:#495057;box-shadow:0 2px 4px #0003}[data-theme=dark] .quiz-group-container:hover{border-color:#3d8bfd;box-shadow:0 4px 8px #0000004d}[data-theme=dark] .quiz-item{background-color:#1a1d21}[data-theme=dark] .quiz-title{color:#e9ecef}[data-theme=dark] .quiz-meta .quiz-category{color:#adb5bd}[data-theme=dark] .quiz-meta .question-count{background-color:#495057;color:#e9ecef}[data-theme=dark] .quiz-actions{border-top-color:#495057}[data-theme=dark] .quiz-actions .btn-info{background:#0dcaf0;color:#000!important}[data-theme=dark] .quiz-actions .btn-info:hover{background:#31d2f2;color:#000!important}[data-theme=dark] .quiz-actions .btn-primary{background:#0d6efd;color:#fff!important}[data-theme=dark] .quiz-actions .btn-primary:hover{background:#3d8bfd;color:#fff!important}[data-theme=dark] .quiz-actions .btn-success{background:#198754;color:#fff!important}[data-theme=dark] .quiz-actions .btn-success:hover{background:#20c997;color:#000!important}[data-theme=dark] .quiz-actions .btn-secondary{background:#6c757d;color:#fff!important}[data-theme=dark] .quiz-actions .btn-secondary:hover{background:#8c959d;color:#fff!important}[data-theme=dark] .quiz-actions .btn-danger{background:#dc3545;color:#fff!important}[data-theme=dark] .quiz-actions .btn-danger:hover{background:#e35d6a;color:#fff!important}[data-theme=dark] .quiz-actions .btn-light{background:#495057;border-color:#6c757d;color:#e9ecef!important}[data-theme=dark] .quiz-actions .btn-light:hover{background:#5c636a;color:#fff!important}[data-theme=dark] .select-all-header{background:#2b4a6b;border-color:#3d8bfd}[data-theme=dark] .select-all-label{color:#6ea8fe}[data-theme=dark] .version-list{border-top-color:#495057}[data-theme=dark] .version-item{background:#1a1d21;border-color:#495057}[data-theme=dark] .version-item:hover{border-color:#3d8bfd;box-shadow:0 2px 4px #0000004d}[data-theme=dark] .version-actions{border-top-color:#495057}[data-theme=dark] .quiz-bank .version-indicator{background-color:#2b4a6b;border-color:#3d8bfd!important;color:#6ea8fe}[data-theme=dark] .no-quizzes{color:#adb5bd}.section-settings-modal{align-items:center;background-color:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:1000}.section-settings-content{background:#fff;border-radius:8px;box-shadow:0 4px 16px #0003;display:flex;flex-direction:column;max-height:90vh;max-width:700px;width:100%}.section-settings-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:20px}.section-settings-header h3{color:#333;font-size:20px;margin:0}.close-button{color:#6c757d;font-size:28px;transition:all .2s}.close-button:hover{background:#f8f9fa;color:#333}.section-settings-tabs{background:#f8f9fa;border-bottom:2px solid #e9ecef;display:flex}.tab{background:none;border:none;border-bottom:2px solid #0000;color:#6c757d;cursor:pointer;flex:1 1;font-size:14px;font-weight:500;margin-bottom:-2px;padding:12px 20px;transition:all .2s}.tab:hover{background:#e9ecef;color:#495057}.tab.active{background:#fff;border-bottom-color:#007bff;color:#007bff}.section-settings-body{flex:1 1;overflow-y:auto;padding:20px}.settings-panel{max-width:600px}.form-group label{color:#333}.form-group input[type=number],.form-group input[type=text],.form-group select,.form-group textarea{border:1px solid #ced4da;font-size:14px}.form-group input[type=number]:focus,.form-group input[type=text]:focus,.form-group select:focus,.form-group textarea:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff1a;outline:none}.form-group label input[type=checkbox]{margin-right:8px;vertical-align:middle}.help-text{font-size:13px;line-height:1.4;margin-top:5px}.warning-text{background:#fff3cd;border:1px solid #ffeaa7;border-radius:4px;color:#856404;line-height:1.4;margin-top:8px;padding:8px 12px}.section-settings-footer{background:#f8f9fa;border-top:1px solid #e9ecef;display:flex;gap:10px;justify-content:flex-end;padding:20px}.section-settings-footer button{border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;padding:8px 20px;transition:all .2s}@media (max-width:768px){.section-settings-content{border-radius:0;height:100%;max-height:100%;max-width:100%}.section-settings-tabs{flex-wrap:wrap}.tab{flex:1 1 50%;font-size:13px;padding:10px}.section-settings-body{padding:15px}}.section-question-selector-modal{align-items:center;background-color:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:1000}.section-question-selector-content{background:#fff;border-radius:8px;box-shadow:0 4px 16px #0003;display:flex;flex-direction:column;height:90vh;max-width:1200px;width:100%}.selector-header{border-bottom:2px solid #e9ecef;padding:20px}.selector-header h3{color:#333;font-size:20px;margin:0}.selector-body{display:flex;flex:1 1;overflow:hidden}.available-questions-panel,.selected-questions-panel{display:flex;flex:1 1;flex-direction:column;overflow:hidden}.available-questions-panel{border-right:1px solid #e9ecef}.panel-header{align-items:center;background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:15px 20px}.panel-header h4{color:#333;font-size:16px;margin:0}.question-count{font-size:14px}.clear-all-btn{background:none;border:none;color:#dc3545;cursor:pointer;font-size:14px;text-decoration:underline}.clear-all-btn:hover{color:#c82333}.filters{background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;flex-wrap:wrap;gap:10px;padding:15px 20px}.search-input{min-width:200px}.search-input,.type-filter{border:1px solid #ced4da;border-radius:4px;padding:6px 12px}.type-filter{background:#fff;font-size:14px}.filter-checkbox{align-items:center;cursor:pointer;display:flex;font-size:14px}.filter-checkbox input{margin-right:6px}.bulk-actions{border-bottom:1px solid #e9ecef;display:flex;gap:15px;padding:10px 20px}.btn-link{color:#007bff;font-size:14px}.btn-link:hover{color:#0056b3}.section-question-selector .questions-list{flex:1 1;overflow-y:auto;padding:10px}.question-item{align-items:flex-start;margin-bottom:8px;padding:12px 15px}.question-item:hover{border-color:#adb5bd}.question-item.in-other-section{opacity:.7}.question-checkbox{margin-right:12px;margin-top:2px}.section-question-selector .question-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333;display:-webkit-box;font-size:14px;margin-bottom:5px;overflow:hidden;text-overflow:ellipsis}.question-type{color:#495057}.difficulty{font-size:12px}.section-assignment{color:#6c757d;font-size:12px;font-style:italic}.selected-list{flex:1 1;overflow-y:auto;padding:10px}.selected-question-item{align-items:center;background:#fff;border:1px solid #dee2e6;border-radius:6px;display:flex;margin-bottom:8px;padding:10px 12px;transition:all .2s}.selected-question-item:hover{box-shadow:0 2px 4px #0000001a}.selected-question-item.dragging{box-shadow:0 4px 8px #00000026;opacity:.8}.drag-handle{font-size:16px;margin-right:10px}.question-number{color:#007bff;text-align:center;width:30px}.question-info{margin:0 10px;min-width:0}.question-info .question-text{margin-bottom:3px}.question-info .question-type{display:inline-block;font-size:11px}.remove-btn{opacity:.6;padding:0 5px;transition:opacity .2s}.remove-btn:hover{opacity:1}.empty-state{height:100%}.empty-state p{margin:5px 0}.empty-state .help-text{font-size:14px}.selector-footer{background:#f8f9fa;border-top:2px solid #e9ecef;display:flex;gap:10px;justify-content:flex-end;padding:20px}.selector-footer button{border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;padding:8px 20px;transition:all .2s}@media (max-width:1024px){.selector-body{flex-direction:column}.available-questions-panel{border-bottom:2px solid #e9ecef;border-right:none}.available-questions-panel,.selected-questions-panel{height:50%}}@media (max-width:768px){.section-question-selector-content{border-radius:0;height:100%;max-width:100%}.filters{flex-direction:column}.search-input{min-width:0}}.section-manager{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin:20px 0;padding:20px}.section-manager-header{border-bottom:2px solid #e9ecef;margin-bottom:20px;padding-bottom:15px}.section-manager-header h3{font-size:24px}.add-section-btn{background-color:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;transition:background-color .2s}.add-section-btn:hover{background-color:#0056b3}.weight-summary{background:#f8f9fa;border-radius:6px;font-size:16px;margin-bottom:15px;padding:12px 16px;text-align:center}.weight-warning{color:#dc3545;font-weight:500;margin-left:10px}.sections-summary{color:#6c757d;font-size:14px;margin-bottom:20px;text-align:center}.section-card{background:#f8f9fa;border:1px solid #dee2e6;padding:20px;transition:all .2s}.section-card:hover{box-shadow:0 4px 8px #0000001a}.section-card.dragging{box-shadow:0 8px 16px #00000026;opacity:.8;transform:rotate(2deg)}.section-header{gap:15px}.drag-handle{padding-top:5px}.section-info{flex:1 1}.section-info h4{color:#333;font-size:18px;margin:0 0 10px}.section-stats{flex-wrap:wrap;gap:15px}.stat{font-size:14px}.section-actions button{border:none;border-radius:4px;cursor:pointer;font-size:13px;padding:4px 12px;transition:all .2s}.btn-secondary:hover{background:#5a6268}.btn-danger{background:#dc3545}.btn-danger:hover{background:#c82333}.section-description{border-top:1px solid #dee2e6;color:#6c757d;font-size:14px;line-height:1.5;margin-top:12px;padding-top:12px}@media (max-width:768px){.section-manager{padding:15px}.section-header{flex-wrap:wrap}.section-info{margin-bottom:10px;width:100%}.section-actions{justify-content:flex-start;margin-left:35px;width:100%}.section-stats{gap:10px}.stat{font-size:13px}}.generation-options{display:flex;gap:20px;margin-bottom:30px}.option-card{border:2px solid #dee2e6;border-radius:8px;cursor:pointer;flex:1 1;padding:30px;text-align:center;transition:all .3s ease}.option-card:hover{border-color:#007bff;box-shadow:0 4px 12px #007bff26;transform:translateY(-2px)}.option-card.selected{background-color:#f0f8ff;border-color:#007bff}.option-card h3{color:#333;margin-bottom:10px}.option-card p{color:#666;margin:0}.quiz-form-section{background:#f8f9fa;border-radius:8px;margin-bottom:30px;padding:25px}.category-selection-group{display:flex;flex-direction:column;gap:8px}.category-selection-group select{background-color:#fff;border:1px solid #ced4da;border-radius:4px;padding:8px 12px;transition:border-color .15s ease-in-out}.category-selection-group select:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.form-row{display:flex;margin-top:20px}.form-row .form-group{flex:1 1}.question-filters h4{color:#495057;margin-bottom:15px;margin-top:0}.filter-row{align-items:center;display:flex;flex-wrap:wrap;gap:15px}.filter-row input[type=text],.filter-row select{background-color:#fff;border:1px solid #ced4da;border-radius:4px;min-width:150px;padding:8px 12px;transition:border-color .15s ease-in-out}.filter-row input[type=text]:focus,.filter-row select:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}.question-list{padding:10px}.question-item{border:1px solid #dee2e6;padding:10px;transition:all .2s ease}.question-item:hover{box-shadow:0 2px 4px #007bff1a}.question-item label{align-items:flex-start;cursor:pointer;display:flex;margin:0}.question-item input[type=checkbox]{cursor:pointer;margin-right:10px;margin-top:2px}.question-text{display:block}.badge{display:inline-block;margin-right:5px}.question-item.selected{background-color:#e7f3ff}.action-buttons{border-top:2px solid #e9ecef;margin-top:30px;padding-top:20px;text-align:center}.action-buttons .btn{margin:0 10px}.question-preview-item{background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;margin-bottom:10px;padding:15px}.question-preview-item .question-number{color:#007bff;font-size:18px;font-weight:700;margin-right:15px}.question-preview-item .question-content{flex:1 1}.question-preview-item .question-text{font-size:16px;margin-bottom:8px}.question-preview-item .question-meta{align-items:center;display:flex;gap:10px}.question-preview-item .points{color:#28a745;font-weight:700;margin-left:auto}.empty-filter-message{color:#6c757d;font-style:italic;padding:40px;text-align:center}@media (max-width:768px){.filter-row,.form-row,.generation-options{flex-direction:column}.filter-row input[type=text],.filter-row select{width:100%}}.alert{border:1px solid #0000;border-radius:4px;padding:15px}.alert-success{background-color:#d4edda;border-color:#c3e6cb}.alert-info{background-color:#d1ecf1;border-color:#bee5eb;color:#0c5460}.hierarchical-category-selector-wrapper{width:100%}.selected-category-path{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;margin-bottom:10px;padding:8px 12px}.selected-category-path small{color:#495057;font-weight:500}.hierarchical-category-selector{grid-gap:10px;align-items:center;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));max-width:600px}.category-level-selector{position:relative}.category-select{background-color:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer;font-size:14px;min-width:150px;padding:8px 12px;transition:border-color .2s}.category-select:hover{border-color:#999}.category-select:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff1a;outline:none}.category-level-selector:not(:first-child):before{color:#999;content:"›";font-size:16px;left:-15px;position:absolute;top:50%;transform:translateY(-50%)}.category-range-selectors .hierarchical-category-selector{margin-bottom:10px}[data-theme=dark] .selected-category-path{background:#2d3136;border-color:#495057}[data-theme=dark] .selected-category-path small{color:#e9ecef}[data-theme=dark] .category-select{background-color:#3d4148;border-color:#495057;color:#e9ecef}[data-theme=dark] .category-select:hover{border-color:#6c757d}[data-theme=dark] .category-select:focus{border-color:#6cb2eb;box-shadow:0 0 0 2px #6cb2eb33}[data-theme=dark] .category-select option{background-color:#2d3136;color:#e9ecef}[data-theme=dark] .category-level-selector:not(:first-child):before{color:#6c757d}@media (max-width:768px){.hierarchical-category-selector{align-items:stretch;flex-direction:column;gap:8px}.category-level-selector:not(:first-child):before{display:none}.category-select{width:100%}}.multi-category-selector{margin-bottom:15px;width:100%}.multi-category-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.multi-category-label{color:#333;font-size:14px;font-weight:500}.selected-count{background:#e9ecef;border-radius:10px;color:#666;font-size:13px;padding:2px 8px}.no-selection-hint{background:#fff3cd;border-radius:10px;color:#856404;font-size:13px;font-style:italic;padding:2px 10px}.category-rows{display:flex;flex-direction:column;gap:10px}.category-row{align-items:center;background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;display:flex;gap:10px;padding:8px 12px;transition:background-color .2s,border-color .2s}.category-row:hover{background:#f0f4f8;border-color:#dee2e6}.category-selector-wrapper{flex:1 1;min-width:0}.category-row .hierarchical-category-selector-wrapper{width:100%}.category-row .hierarchical-category-selector{max-width:none}.category-row .selected-category-path{display:none}.category-path-display{background:#e9ecef;border-radius:4px;color:#495057;flex-shrink:0;font-size:13px;max-width:250px;overflow:hidden;padding:4px 8px;text-overflow:ellipsis;white-space:nowrap}.remove-category-btn{align-items:center;background:#dc3545;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;flex-shrink:0;font-size:18px;font-weight:700;height:28px;justify-content:center;line-height:1;padding:0;transition:background-color .2s,transform .1s;width:28px}.remove-category-btn:hover{background:#c82333;transform:scale(1.1)}.remove-category-btn:active{transform:scale(.95)}.selected-categories-summary{background:#e7f3ff;border:1px solid #b3d7ff;border-radius:6px;margin-top:12px;padding:10px}.summary-label{color:#0056b3;display:block;font-size:12px;margin-bottom:6px}.selected-categories-list{display:flex;flex-wrap:wrap;gap:6px}.selected-category-chip{background:#0d6efd;border-radius:12px;color:#fff;display:inline-block;font-size:12px;font-weight:500;padding:3px 10px}[data-theme=dark] .multi-category-label{color:#e9ecef}[data-theme=dark] .selected-count{background:#495057;color:#e9ecef}[data-theme=dark] .no-selection-hint{background:#ffc10733;color:#ffc107}[data-theme=dark] .category-row{background:#2d3136;border-color:#495057}[data-theme=dark] .category-row:hover{background:#3d4148;border-color:#5a6268}[data-theme=dark] .category-path-display{background:#495057;color:#e9ecef}[data-theme=dark] .remove-category-btn{background:#dc3545}[data-theme=dark] .remove-category-btn:hover{background:#bd2130}[data-theme=dark] .selected-categories-summary{background:#1a3a5c;border-color:#2c5282}[data-theme=dark] .summary-label{color:#6cb2eb}[data-theme=dark] .selected-category-chip{background:#3182ce}@media (max-width:768px){.category-row{flex-wrap:wrap}.category-selector-wrapper{flex:none;width:100%}.category-path-display{flex-grow:1;max-width:100%;order:3}.remove-category-btn{order:2}}.modal-content{position:relative}.insufficient-questions-dialog{max-width:700px;width:90%}.modal-header{border-bottom:1px solid #e1e4e8}.modal-header h2{color:#24292e;font-size:24px}.close-button{align-items:center;background:none;border:none;border-radius:4px;color:#586069;cursor:pointer;display:flex;font-size:24px;height:32px;padding:0;transition:background-color .2s;width:32px}.close-button:hover{background-color:#f6f8fa}.shortfall-summary{background-color:#fff8dc;border:1px solid #ffe4b5;border-radius:6px;margin-bottom:24px;padding:16px}.summary-text{font-size:16px;line-height:1.5;margin:0 0 16px}.type-breakdown h4{color:#586069;font-size:14px;font-weight:600;margin:0 0 12px}.shortfall-table{border-collapse:collapse;font-size:14px;width:100%}.shortfall-table th{background-color:#f6f8fa;font-weight:600;text-align:left}.shortfall-table td,.shortfall-table th{border:1px solid #e1e4e8;padding:8px 12px}.shortfall-cell{color:#d73a49;font-weight:600}.strategy-options{margin-top:24px}.strategy-options h3{color:#24292e;font-size:18px;margin:0 0 16px}.strategy-list{display:flex;flex-direction:column;gap:12px}.strategy-option{width:100%}.strategy-button{background-color:#f6f8fa;border:1px solid #e1e4e8;border-radius:6px;cursor:pointer;padding:16px 20px;text-align:left;transition:all .2s;width:100%}.strategy-button:hover{background-color:#fff;border-color:#0366d6;box-shadow:0 1px 3px #0000001a}.strategy-button h4{color:#24292e;font-size:16px;font-weight:600;margin:0 0 4px}.strategy-button p{color:#586069;font-size:14px;margin:0}.strategy-button.accept{background-color:#e6ffed;border-color:#28a745}.strategy-button.accept:hover{background-color:#28a745;color:#fff}.strategy-button.accept:hover h4,.strategy-button.accept:hover p{color:#fff}.strategy-button.cancel{background-color:#ffeef0;border-color:#d73a49}.strategy-button.cancel:hover{background-color:#d73a49;color:#fff}.strategy-button.cancel:hover h4,.strategy-button.cancel:hover p{color:#fff}.available-stats{border-top:1px solid #e1e4e8;margin-top:24px;padding-top:24px}.available-stats h4{color:#586069;font-size:14px;font-weight:600;margin:0 0 12px}.available-stats ul{list-style:disc;margin:0;padding-left:20px}.available-stats li{color:#586069;font-size:14px;margin:4px 0}[data-theme=dark] .modal-content{background-color:#1e1e1e!important;border:1px solid #444!important;color:#e0e0e0!important}[data-theme=dark] .modal-header{border-bottom-color:#444!important}[data-theme=dark] .modal-header h2{color:#e0e0e0!important}[data-theme=dark] .close-button{color:#aaa!important}[data-theme=dark] .close-button:hover{background-color:#333!important;color:#fff!important}[data-theme=dark] .shortfall-summary{background-color:#3d3520!important;border-color:#5a4e2a!important;color:#e0e0e0!important}[data-theme=dark] .summary-text{color:#e0e0e0!important}[data-theme=dark] .summary-text strong{color:#ffd166!important}[data-theme=dark] .type-breakdown h4{color:#aaa!important}[data-theme=dark] .shortfall-table th{background-color:#2a2a2a!important;border-color:#444!important;color:#e0e0e0!important}[data-theme=dark] .shortfall-table td{background-color:#1e1e1e!important;border-color:#444!important;color:#e0e0e0!important}[data-theme=dark] .shortfall-cell{color:#ff6b6b!important}[data-theme=dark] .strategy-options h3{color:#e0e0e0!important}[data-theme=dark] .strategy-button{background-color:#2a2a2a!important;border-color:#444!important}[data-theme=dark] .strategy-button:hover{background-color:#333!important;border-color:#4da6ff!important}[data-theme=dark] .strategy-button h4{color:#e0e0e0!important}[data-theme=dark] .strategy-button p{color:#aaa!important}[data-theme=dark] .strategy-button.accept{background-color:#1a3d1a!important;border-color:#4caf50!important}[data-theme=dark] .strategy-button.accept:hover{background-color:#4caf50!important}[data-theme=dark] .strategy-button.accept:hover h4,[data-theme=dark] .strategy-button.accept:hover p{color:#1e1e1e!important}[data-theme=dark] .strategy-button.cancel{background-color:#3d2020!important;border-color:#ff6b6b!important}[data-theme=dark] .strategy-button.cancel:hover{background-color:#ff6b6b!important}[data-theme=dark] .strategy-button.cancel:hover h4,[data-theme=dark] .strategy-button.cancel:hover p{color:#1e1e1e!important}[data-theme=dark] .available-stats{border-top-color:#444!important}[data-theme=dark] .available-stats h4,[data-theme=dark] .available-stats li{color:#aaa!important}[data-theme=dark] .available-stats li strong{color:#e0e0e0!important}[data-theme=dark] .version-summary{background-color:#2a2a2a!important}[data-theme=dark] .version-summary strong{color:#e0e0e0!important}[data-theme=dark] .version-summary em{color:#888!important}.status-cell{font-weight:600;text-align:center}.status-matched{color:#28a745}.status-shortfall{color:#d73a49}.status-excess{color:#0366d6}.excess-indicator,.shortfall-indicator{align-items:center;display:inline-flex;gap:2px}.mismatch-row{background-color:#fff8f0!important}.distribution-note{color:#586069;font-size:13px;margin-top:12px}.total-row{background-color:#f6f8fa!important;border-top:2px solid #e1e4e8}.total-row td{font-weight:600}[data-theme=dark] .status-matched{color:#4caf50!important}[data-theme=dark] .status-shortfall{color:#ff6b6b!important}[data-theme=dark] .status-excess{color:#4da6ff!important}[data-theme=dark] .mismatch-row{background-color:#2d2820!important}[data-theme=dark] .distribution-note,[data-theme=dark] .distribution-note em{color:#888!important}[data-theme=dark] .total-row{background-color:#2a2a2a!important;border-top-color:#444!important}.version-aware-selector{width:100%}.selector-filters{background-color:#f6f8fa;border:1px solid #e1e4e8;border-radius:8px;display:flex;flex-direction:column;gap:12px;margin-bottom:20px;padding:16px}.selector-filters .search-input{width:100%}.selector-filters .filter-row{align-items:center;display:flex;gap:12px}.selector-filters .hierarchical-category-selector-wrapper{flex:1 1}.search-input{border:1px solid #e1e4e8;border-radius:6px;flex:1 1;font-size:14px;padding:8px 12px;transition:border-color .2s}.search-input:focus{border-color:#0366d6;box-shadow:0 0 0 3px #0366d61a;outline:none}.filter-select{background-color:#fff;border:1px solid #e1e4e8;border-radius:6px;cursor:pointer;font-size:14px;padding:8px 12px;transition:border-color .2s}.filter-select:focus{border-color:#0366d6;outline:none}.constraint-warning{align-items:center;border:1px solid #ffeaa7;border-radius:6px;display:flex;gap:8px;margin-bottom:20px;padding:12px 16px}.constraint-warning strong{font-weight:600}.version-groups-section{margin-bottom:30px}.section-header{border-bottom:2px solid #0366d6;margin-bottom:16px;padding-bottom:8px}.section-header h4{color:#24292e;font-size:16px;font-weight:600;margin:0}.section-actions{display:flex;gap:8px}.btn-action{background-color:#fafbfc;border:1px solid #d1d5da;border-radius:6px;color:#24292e;cursor:pointer;font-size:13px;padding:4px 12px;transition:all .2s}.btn-action:hover{background-color:#f3f4f6;border-color:#0366d6}.version-group{background-color:#fff;border:2px solid #d1d5da;border-radius:8px;margin-bottom:20px;overflow:hidden;transition:all .2s}.version-group:hover{border-color:#0366d6;box-shadow:0 2px 8px #0366d626}.group-header{background-color:#f6f8fa;cursor:pointer;padding:16px;transition:background-color .2s}.group-header:hover{background-color:#eef2f5}.group-info{align-items:center;display:flex;flex:1 1;gap:12px}.expand-icon{color:#586069;font-size:12px;transition:transform .2s}.group-title{color:#24292e;flex:1 1;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-badge{background-color:#28a745;border-radius:12px;color:#fff;font-size:12px;font-weight:600;padding:2px 8px}.group-select-btn{background-color:#fff;border:1px solid #0366d6;border-radius:6px;color:#0366d6;cursor:pointer;font-size:13px;font-weight:500;padding:6px 12px;transition:all .2s}.group-select-btn:hover{background-color:#0366d6;color:#fff}.group-questions{background-color:#fafbfc;border-top:1px solid #e1e4e8;padding:16px}.question-item{border:1px solid #e1e4e8;display:flex;gap:12px;margin-bottom:12px}.question-item:last-child{margin-bottom:0}.question-item:hover{border-color:#0366d6;box-shadow:0 1px 3px #0000001a}.question-item.selected{background-color:#f0f7ff;border-color:#0366d6}.question-item.disabled{cursor:not-allowed;opacity:.6}.question-checkbox{align-items:flex-start;display:flex;padding-top:3px}.question-checkbox input[type=checkbox]{cursor:pointer;height:16px;width:16px}.question-checkbox input[type=checkbox]:disabled{cursor:not-allowed}.question-content{min-width:0}.version-label{align-items:center;color:#586069;display:flex;font-size:13px;font-weight:500;gap:8px;margin-bottom:8px}.original-tag{font-weight:600}.constraint-message{background-color:#fff3cd;border:1px solid #ffeaa7;border-radius:4px;color:#856404;font-size:13px;margin-top:8px;padding:8px}.standalone-section{margin-top:30px}.standalone-section h4{border-bottom:2px solid #586069;color:#24292e;font-size:16px;font-weight:600;margin:0 0 16px;padding-bottom:8px}.standalone-questions{display:flex;flex-direction:column;gap:12px}.empty-state{color:#586069;padding:40px}.loading-state{color:#586069;padding:60px}@media (max-width:768px){.selector-filters{flex-direction:column}.filter-select{width:100%}.group-header{align-items:flex-start;flex-direction:column;gap:12px}.group-select-btn{align-self:flex-end}.question-item{flex-direction:column}.question-checkbox{align-self:flex-start}}.group-questions{animation:slideDown .2s ease-out}.version-group.has-mixed-versions .group-header{background-color:#fff3cd}.version-group.has-mixed-versions .selected-badge{background-color:#ffc107;color:#856404}.question-item.disabled .question-content:after{background-color:#24292e;border-radius:4px;bottom:100%;color:#fff;content:attr(data-tooltip);font-size:12px;left:50%;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;transform:translateX(-50%);transition:opacity .2s;white-space:nowrap}.question-item.disabled:hover .question-content:after{opacity:1}.quiz-generation-settings{border-radius:8px;height:auto!important;margin-bottom:20px;max-height:none!important;overflow:visible!important;padding:20px}:root .quiz-generation-settings,html:not([data-theme=dark]) .quiz-generation-settings{background:#f8f9fa}[data-theme=dark] .form-section .quiz-generation-settings,[data-theme=dark] .quiz-form .quiz-generation-settings,[data-theme=dark] .quiz-generation-settings,html[data-theme=dark] .form-section .quiz-generation-settings,html[data-theme=dark] .quiz-form .quiz-generation-settings,html[data-theme=dark] .quiz-generation-settings{background:#0000!important;background-color:initial!important}.section-title{border-bottom:2px solid #007bff;color:#333;font-size:1.3rem;margin-bottom:20px;padding-bottom:10px}.generation-method-selection{margin-bottom:30px}.generation-method-selection h4{color:#495057;margin-bottom:15px}.method-cards{display:flex;gap:20px;margin-top:15px}.method-card{background:#fff;border:2px solid #dee2e6;border-radius:8px;cursor:pointer;flex:1 1;padding:20px;transition:all .3s ease}.method-card:hover{border-color:#007bff;box-shadow:0 2px 4px #007bff1a}.method-card.selected{background:#e7f3ff;border-color:#007bff}.method-card h5{color:#333;margin:0 0 10px}.method-card p{color:#6c757d;font-size:.9rem;margin:0}.manual-selection{height:auto!important;max-height:none!important;overflow:visible!important}.automatic-generation h4,.grading-configuration h4,.manual-selection h4{color:#495057;margin-bottom:20px}.quiz-generation-settings .question-filters{display:flex;flex-direction:column;gap:15px;margin-bottom:20px}.question-filters-row{grid-gap:10px;display:grid;gap:10px;grid-template-columns:2fr 1fr 1fr}.question-filters .form-control{border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:8px 12px}.version-tags-filter{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;margin-top:10px;padding:12px}[data-theme=dark] .version-tags-filter{border:none!important}.version-tags-filter .filter-label{color:#495057;display:block;font-size:13px;font-weight:500;margin-bottom:8px}.version-tag-checkboxes{display:flex;flex-wrap:wrap;gap:8px}.version-tag-checkbox{align-items:center;background:#fff;border:1px solid #dee2e6;border-radius:20px;cursor:pointer;display:inline-flex;font-size:13px;padding:5px 12px;transition:all .2s ease}.version-tag-checkbox:hover{background:#e9ecef;border-color:#adb5bd}.version-tag-checkbox.selected{background:#007bff;border-color:#007bff;color:#fff}.version-tag-checkbox input[type=checkbox]{display:none}.version-tag-checkbox span{-webkit-user-select:none;user-select:none}.filter-hint{color:#6c757d;font-size:11px;font-style:italic;margin:8px 0 0}.selection-summary{align-items:center;background:#e9ecef;border-radius:4px;display:flex;justify-content:space-between;margin-bottom:15px;padding:10px}.selection-summary span{color:#495057;font-weight:500}.question-list{background:#fff;border:1px solid #dee2e6;border-radius:4px;height:auto!important;max-height:none!important;overflow:visible!important}.category-group{border-bottom:1px solid #dee2e6}.category-group:last-child{border-bottom:none}.category-header{align-items:center;background:#f8f9fa;cursor:pointer;display:flex;padding:12px;-webkit-user-select:none;user-select:none}.expand-toggle{padding:0 8px 0 0}.category-name{color:#333;flex:1 1;font-weight:500}.question-count{color:#6c757d;font-size:.9rem;margin-left:10px}.category-actions{display:flex;gap:10px}.category-actions .btn-link{color:#007bff;font-size:.85rem;padding:0;text-decoration:none}.category-questions{display:block!important;height:auto!important;min-height:auto!important;padding:10px}.quiz-generation-settings .question-item{background:#fff;border:1px solid #dee2e6;border-radius:4px;margin-bottom:8px;padding:12px}.quiz-generation-settings .question-item.selected{background:#e7f3ff;border-color:#007bff}.quiz-generation-settings .question-header{align-items:flex-start;display:flex;gap:8px;width:100%}.quiz-generation-settings .question-header input[type=checkbox]{flex-shrink:0;height:18px;margin-right:0!important;margin-top:2px!important;width:18px}.quiz-generation-settings .question-info{word-wrap:break-word;display:flex;flex:1 1;flex-direction:column;gap:0;min-width:0;overflow-wrap:break-word;text-align:left;word-break:break-word}.question-item:hover{background:#f8f9fa}.question-item.selected{background:#e7f3ff}.question-item input[type=checkbox]{margin-right:12px;margin-top:3px}.question-text{margin-bottom:5px}.question-type{background:#e9ecef;color:#6c757d}.difficulty,.question-type{border-radius:3px;font-size:.8rem}.difficulty{font-weight:500;padding:2px 8px}.difficulty.easy{background:#d4edda;color:#155724}.difficulty.medium{background:#fff3cd;color:#856404}.difficulty.hard{background:#f8d7da;color:#721c24}.automatic-generation .form-group{margin-bottom:20px}.automatic-generation label{color:#495057;display:block;font-weight:500;margin-bottom:8px}.category-range-selectors{grid-gap:20px;display:grid;gap:20px;grid-template-columns:1fr 1fr;margin-top:10px}.range-selector{display:flex;flex-direction:column;gap:8px}.range-label{color:#6c757d;font-size:.85rem;font-weight:500}.input-mode-toggle{display:flex;gap:20px;margin-bottom:15px}.input-mode-toggle label{align-items:center;display:flex;font-weight:400}.input-mode-toggle input[type=radio]{margin-right:5px}.question-type-distribution{background:#fff;border:1px solid #dee2e6;border-radius:4px;padding:15px}.type-config{align-items:center;display:flex;margin-bottom:10px}.type-config:last-child{margin-bottom:0}.type-config label{align-items:center;display:flex;flex:1 1;font-weight:400;margin-bottom:0}.type-config input[type=checkbox]{margin-right:8px}.type-config input[type=number]{margin-left:10px;width:80px}.grading-configuration{border-top:2px solid #dee2e6;margin-top:30px;padding-top:30px}.point-distribution-preview{background:#fff;border:1px solid #dee2e6;border-radius:4px;margin-top:20px;padding:15px}.point-distribution-preview h5{color:#495057;font-size:1rem;margin:0 0 15px}.distribution-summary{display:flex;flex-direction:column;gap:8px}.type-summary{align-items:center;background:#f8f9fa;border-radius:4px;display:flex;font-size:.9rem;justify-content:space-between;padding:8px 12px}.type-summary span:first-child{color:#333;font-weight:500}.type-summary span:nth-child(2){color:#6c757d}.type-summary span:last-child{color:#007bff;font-weight:500}.grading-mode-selector{background-color:#e7f3ff;border:1px solid #b8daff;border-radius:4px;margin-bottom:20px;padding:15px}.grading-mode-options{display:flex;gap:20px;margin-top:10px}.grading-mode-options .radio-option{align-items:center;cursor:pointer;display:flex;font-weight:400}.grading-mode-options input[type=radio]{margin-right:8px}.inherited-grading-config .alert{margin-bottom:20px}.inherited-grading-config ul{margin:10px 0 0;padding-left:20px}.inherited-grading-config ul li{margin-bottom:5px}.manual-points-input{align-items:center;display:flex;gap:8px;margin-left:auto;padding-left:20px}.manual-points-input label{color:#495057;font-size:.9rem;font-weight:500;margin:0}.manual-points-input .points-input{width:70px}[data-theme=dark] .quiz-generation-settings{background:#0000!important;background-color:initial!important}[data-theme=dark] .quiz-generation-settings .section-title{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .method-card{background:#1a202c;background:var(--bg-secondary,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .method-card:hover{border-color:#007bff}[data-theme=dark] .method-card.selected{background:#007bff26;border-color:#007bff}[data-theme=dark] .method-card h5{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .method-card p{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .question-list{background:#1a202c;background:var(--bg-secondary,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .category-header{background:#2d3748;background:var(--bg-card,#2d3748)}[data-theme=dark] .category-name{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .question-item:hover{background:#2d3748;background:var(--bg-card,#2d3748)}[data-theme=dark] .question-item.selected{background:#007bff26;border-color:#007bff}[data-theme=dark] .question-text{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .question-type{background:#2d3748;background:var(--bg-card,#2d3748);color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .distribution-config{background:#1a202c;background:var(--bg-secondary,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .distribution-config h5,[data-theme=dark] .points-row label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .selection-summary{background:#2d3748;background:var(--bg-card,#2d3748)}[data-theme=dark] .selection-summary span{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .grading-mode-selector{background:#007bff26;border-color:#007bff}[data-theme=dark] .question-item input[type=checkbox],[data-theme=dark] .quiz-generation-settings .question-header input[type=checkbox]{accent-color:#007bff;background-color:#1a202c;border:2px solid #63b3ed}[data-theme=dark] .quiz-generation-settings input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;background-color:#2d3748;border:2px solid #63b3ed;border-radius:3px}[data-theme=dark] .quiz-generation-settings input[type=checkbox]:checked{accent-color:#007bff;background-color:#007bff}.version-number-badge{background-color:#e7f1ff;border-radius:3px;color:#0d6efd;font-size:11px;font-weight:500;padding:1px 6px}.version-number-badge.warning{background-color:#ffc107;color:#000}[data-theme=dark] .version-number-badge{background-color:#1e3a5f;border:1px solid #3b82f6;color:#93c5fd}[data-theme=dark] .version-number-badge.warning{background-color:#78350f;border:1px solid #f59e0b;color:#fcd34d}[data-theme=dark] .automatic-generation h4,[data-theme=dark] .generation-method-selection h4,[data-theme=dark] .grading-configuration h4,[data-theme=dark] .manual-selection h4{color:#e2e8f0!important;color:var(--text-primary,#e2e8f0)!important}[data-theme=dark] .version-tags-filter{background:#0000!important;background-color:initial!important;border:#0000!important}[data-theme=dark] .version-tags-filter .filter-label{color:#e9ecef!important}[data-theme=dark] .version-tag-checkbox{background:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .version-tag-checkbox:hover{background:#4d5158!important;border-color:#6c757d!important}[data-theme=dark] .version-tag-checkbox.selected{background:#007bff!important;border-color:#007bff!important;color:#fff!important}[data-theme=dark] .version-tag-checkbox:not(.selected){background:#3d4148!important;border-color:#6c757d!important;color:#adb5bd!important}[data-theme=dark] .filter-hint{color:#adb5bd!important}[data-theme=dark] .category-group{border-bottom-color:#495057!important}[data-theme=dark] .question-item{background:#2d3136!important;border-color:#495057!important}[data-theme=dark] .expand-toggle,[data-theme=dark] .question-count{color:#adb5bd!important}[data-theme=dark] .automatic-generation label{color:#e9ecef!important}[data-theme=dark] .question-type-distribution{background:#2d3136!important;border-color:#495057!important}[data-theme=dark] .type-config label{color:#e9ecef!important}[data-theme=dark] .type-summary{background:#2d3136!important}[data-theme=dark] .type-summary span:first-child{color:#e9ecef!important}[data-theme=dark] .range-label,[data-theme=dark] .type-summary span:nth-child(2){color:#adb5bd!important}[data-theme=dark] .point-distribution-preview{background:#2d3136!important;border-color:#495057!important}[data-theme=dark] .point-distribution-preview h5{color:#e9ecef!important}[data-theme=dark] .grading-configuration{border-top-color:#495057!important}[data-theme=dark] .grading-mode-options .radio-option,[data-theme=dark] .manual-points-input label{color:#e9ecef!important}[data-theme=dark] .quiz-generation-settings .form-control,[data-theme=dark] .quiz-generation-settings .points-input,[data-theme=dark] .quiz-generation-settings input[type=search],[data-theme=dark] .quiz-generation-settings input[type=text],[data-theme=dark] .quiz-generation-settings select{background:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-generation-settings select option{background:#2d3136!important;color:#e9ecef!important}.target-count-info{background-color:#e7f1ff;border-radius:4px;font-size:14px;margin-top:10px;padding:8px 12px}.target-count-hint{color:#666;margin-left:8px}[data-theme=dark] .target-count-info{background-color:#0d6efd26!important;color:#e9ecef!important}[data-theme=dark] .target-count-info strong{color:#93c5fd!important}[data-theme=dark] .target-count-hint{color:#adb5bd!important}.preview-results{background-color:#f8f9fa;border:1px solid #dee2e6;border-radius:5px;margin-top:20px;padding:15px}[data-theme=dark] .preview-results{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .preview-results h5,[data-theme=dark] .preview-results strong{color:#e9ecef!important}.preview-question-item{background-color:#fff;border:1px solid #e9ecef;border-radius:3px;margin-bottom:5px;padding:8px}.preview-question-item.has-versions{border:1px solid #0d6efd;border-left-width:3px}[data-theme=dark] .preview-question-item{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .preview-question-item.has-versions{border-color:#0d6efd!important}[data-theme=dark] .preview-question-item strong{color:#e9ecef!important}[data-theme=dark] .preview-results .version-summary-warning{background-color:#ffc10726!important;color:#ffc107!important}[data-theme=dark] .preview-results span{color:#adb5bd!important}.enhanced-section-manager{background:#f5f5f5;border-radius:8px;padding:20px}.section-manager-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:25px}.section-manager-header h3{color:#333;font-size:1.5rem;margin:0}.header-actions{gap:20px}.grading-scope-selector{align-items:center;display:flex;gap:10px}.grading-scope-selector label{color:#495057;font-weight:500;margin:0}.grading-scope-selector .form-control{width:auto}.add-section-btn{font-weight:500;padding:8px 16px}.quiz-summary{background:#fff;border:2px solid #0000;border-radius:6px;box-shadow:0 1px 3px #0000001a;display:flex;gap:30px;margin-bottom:20px;padding:15px 20px;transition:all .3s ease}.quiz-summary.has-issues{background-color:#fff5f5;border-color:#dc3545}.quiz-summary.valid{background-color:#f4fff5;border-color:#28a745}.summary-item{gap:8px}.summary-item .label{color:#6c757d;font-size:.9rem}.summary-item .value{color:#333;font-size:1.1rem;font-weight:600}.summary-item.warning .value{color:#dc3545;font-weight:700}.summary-item.success .value{color:#28a745;font-weight:700}.sections-list{display:flex;flex-direction:column;gap:15px}.section-card{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;transition:all .3s ease}.section-card.dragging{box-shadow:0 5px 15px #0000004d;opacity:.5}.section-card.expanded{box-shadow:0 4px 8px #00000026}.section-header{border-bottom:1px solid #e9ecef;padding:15px}.section-card:not(.expanded) .section-header{border-bottom:none}.drag-handle{color:#6c757d;cursor:grab;font-size:20px;padding:0 10px;-webkit-user-select:none;user-select:none}.drag-handle:active{cursor:grabbing}.section-info-row{align-items:center;display:flex;flex:1 1;gap:15px}.expand-toggle{background:none;border:none;color:#6c757d;cursor:pointer;font-size:12px;padding:5px;width:20px}.section-title-input{background:#0000;border:1px solid #0000;border-radius:4px;flex:1 1;font-size:1.1rem;font-weight:500;max-width:300px;padding:6px 12px;transition:all .2s ease}.section-title-input:hover{background:#f8f9fa}.section-title-input:focus{background:#fff;border-color:#007bff;outline:none}.section-stats{display:flex;gap:20px;margin-left:auto}.stat{color:#6c757d;font-size:.9rem;gap:5px;white-space:nowrap}.remove-btn{align-items:center;display:flex;font-size:20px;height:30px;justify-content:center;line-height:1;padding:0;width:30px}.section-content{border-top:1px solid #e9ecef;padding:20px}.section-details{margin-bottom:20px}.section-details .form-group{margin-bottom:15px}.section-details label{color:#495057;display:block;font-size:.9rem;font-weight:500;margin-bottom:5px}.section-details .form-control{border:1px solid #ced4da;border-radius:4px;font-size:14px;padding:8px 12px;resize:vertical;width:100%}.section-settings-row{grid-gap:20px;display:grid;gap:20px;grid-template-columns:200px 250px;margin-top:20px}.section-settings-row .form-group{margin-bottom:0}@media (max-width:768px){.section-manager-header{align-items:flex-start;flex-direction:column;gap:15px}.header-actions{align-items:stretch;flex-direction:column;gap:10px;width:100%}.grading-scope-selector{align-items:flex-start;flex-direction:column}.quiz-summary{gap:15px}.quiz-summary,.section-info-row{flex-wrap:wrap}.section-title-input{max-width:none;width:100%}.section-stats{margin-left:0;margin-top:10px;width:100%}.section-settings-row{grid-template-columns:1fr}}.section-card{animation:fadeIn .3s ease}.quiz-template-manager{margin:15px 0}.template-actions{justify-content:flex-end}.btn-template{background:#f8f9fa;border:1px solid #6c757d;border-radius:4px;color:#333;cursor:pointer;font-size:14px;padding:8px 16px;transition:all .2s}.btn-template:hover{background:#e9ecef;border-color:#495057;color:#000}[data-theme=dark] .btn-template{background:#2d3748;background:var(--bg-secondary,#2d3748);border-color:#4a5568;border-color:var(--border-primary,#4a5568);color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .btn-template:hover{background:#3d4758;background:var(--bg-card,#3d4758);border-color:#a0aec0;border-color:var(--text-secondary,#a0aec0)}.template-dialog-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.template-dialog{background:#fff;background:var(--modal-bg,#fff);border:1px solid #dee2e6;border:1px solid var(--border-primary,#dee2e6);border-radius:8px;box-shadow:0 4px 20px #00000026;box-shadow:var(--shadow-lg,0 4px 20px #00000026);box-sizing:border-box;color:#333;color:var(--text-primary,#333);max-height:80vh;max-width:600px;overflow-x:hidden;overflow-y:auto;padding:24px;width:90%}.template-dialog *{box-sizing:border-box;left:auto!important;margin-left:0!important;margin-right:0!important;position:static!important;right:auto!important;transform:none!important}.template-dialog>.form-group,.template-dialog>.template-preview,.template-dialog>h3{display:block!important;max-width:100%!important;opacity:1!important;visibility:visible!important;width:100%!important}.template-dialog>.dialog-actions{display:flex!important;max-width:100%!important;opacity:1!important;visibility:visible!important;width:100%!important}.template-list-dialog{max-width:700px}.template-dialog h3{color:#333;color:var(--text-primary,#333);margin-bottom:20px;margin-top:0}.template-dialog .form-group{margin-bottom:16px;width:100%}.template-dialog label{color:#555;color:var(--text-secondary,#555);display:block;font-weight:500;margin-bottom:4px}.template-dialog input,.template-dialog textarea{background:#fff;background:var(--input-bg,#fff);border:1px solid #ddd;border:1px solid var(--border-primary,#ddd);border-radius:4px;box-sizing:border-box;color:#333;color:var(--text-primary,#333);font-size:14px;padding:8px 12px;width:100%}.template-dialog input:focus,.template-dialog textarea:focus{border-color:#007bff;border-color:var(--color-primary,#007bff);outline:none}.template-preview{background:var(--bg-secondary,#f8f9fa);border:1px solid #e9ecef;border:1px solid var(--border-primary,#e9ecef);border-radius:4px;box-sizing:border-box;margin:20px 0;padding:16px;width:100%}.template-preview h4{color:#495057;color:var(--text-primary,#495057);font-size:16px;margin-bottom:12px;margin-top:0}.template-preview ul{list-style:disc;margin:0;padding-left:20px}.template-preview li{color:#666;color:var(--text-secondary,#666);margin-bottom:4px}.template-preview .preview-section{border-bottom:1px solid #dee2e6;border-bottom:1px solid var(--border-primary,#dee2e6);margin-bottom:12px;padding-bottom:8px}.template-preview .preview-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.template-preview .preview-section strong{color:#333;color:var(--text-primary,#333);display:block;font-size:13px;margin-bottom:6px}.template-preview .preview-section ul{font-size:12px;margin:0;padding-left:16px}.template-preview .preview-section li{margin-bottom:2px}.template-list{background:#fff;background:var(--bg-primary,#fff);border:1px solid #e9ecef;border:1px solid var(--border-primary,#e9ecef);border-radius:4px;margin-bottom:16px}.no-templates{color:#999;color:var(--text-tertiary,#999);padding:40px}.template-item{background:#fff;background:var(--bg-primary,#fff);border-bottom:1px solid #e9ecef;border-bottom:1px solid var(--border-primary,#e9ecef);cursor:pointer;padding:16px;position:relative;transition:background .2s}.template-item:hover{background:#f8f9fa;background:var(--bg-hover,#f8f9fa)}.template-item.selected{background:#e7f3ff;background:var(--bg-tertiary,#e7f3ff);border-color:#b8daff;border-color:var(--color-primary,#b8daff)}.template-header{margin-bottom:8px}.template-header h4{color:#333;color:var(--text-primary,#333);font-size:16px;margin:0}.badge{background:#28a745;color:#fff;padding:2px 8px}.btn-delete{background:#dc3545;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;padding:4px 8px}.btn-delete:hover{background:#c82333}.template-description{color:#666;color:var(--text-secondary,#666);font-size:14px}.template-meta{color:#999;color:var(--text-tertiary,#999);gap:16px}.template-meta span{align-items:center;display:flex}.template-details{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border:1px solid #e9ecef;border:1px solid var(--border-primary,#e9ecef);border-radius:4px;margin-bottom:16px;padding:16px}.template-details h4{color:#495057;color:var(--text-primary,#495057);font-size:16px;margin-bottom:12px;margin-top:0}.details-content p{color:#666;color:var(--text-secondary,#666);font-size:14px;margin:4px 0}.details-content ul{margin:8px 0;padding-left:20px}.duplicate-warning{background:#fff3cd;border:1px solid #ffc107;border-radius:4px;margin-top:16px;padding:16px}.duplicate-warning .warning-message{color:#856404;font-size:14px;margin:0 0 12px}.duplicate-warning .warning-message strong{color:#856404}.duplicate-warning .created-date{color:#997a00;font-size:12px}.duplicate-warning>p{color:#856404;font-size:14px;margin:0 0 12px}.duplicate-actions{display:flex;flex-wrap:wrap;gap:10px}.duplicate-actions .btn-danger{background:#dc3545;border-color:#dc3545;color:#fff}.duplicate-actions .btn-danger:hover{background:#c82333;border-color:#bd2130}.dialog-actions{border-top:1px solid var(--border-primary,#e9ecef);gap:10px;margin-top:24px;padding-top:16px}.dialog-actions button{border:1px solid #ddd;border:1px solid var(--border-primary,#ddd);border-radius:4px;cursor:pointer;font-size:14px;padding:8px 20px;transition:all .2s}.dialog-actions .btn-primary{background:#007bff;border-color:#007bff;color:#fff}.dialog-actions .btn-primary:hover{background:#0056b3;border-color:#0056b3}.dialog-actions .btn-primary:disabled{background:#6c757d;border-color:#6c757d;cursor:not-allowed}.dialog-actions .btn-secondary{background:#e9ecef;border-color:#6c757d;color:#333!important}.dialog-actions .btn-secondary:hover{background:#dee2e6;color:#000!important}.confirm-apply{background:#fff3cd;border:1px solid #ffeaa7;border-radius:4px;margin-top:16px;padding:16px}.confirm-apply .warning{color:#856404;font-size:14px;margin:0 0 16px}.confirm-actions{display:flex;gap:10px;justify-content:center}:root[data-theme=dark] .template-dialog,body.dark-mode .template-dialog,html[data-theme=dark] .template-dialog{background:#25282c!important;border:1px solid #495057!important;color:#e9ecef!important}:root[data-theme=dark] .template-dialog h3,:root[data-theme=dark] .template-header h4,body.dark-mode .template-dialog h3,body.dark-mode .template-header h4,html[data-theme=dark] .template-dialog h3,html[data-theme=dark] .template-header h4{color:#e9ecef!important}:root[data-theme=dark] .template-dialog label,body.dark-mode .template-dialog label,html[data-theme=dark] .template-dialog label{color:#adb5bd!important}:root[data-theme=dark] .template-dialog input,:root[data-theme=dark] .template-dialog textarea,body.dark-mode .template-dialog input,body.dark-mode .template-dialog textarea,html[data-theme=dark] .template-dialog input,html[data-theme=dark] .template-dialog textarea{background:#2d3035!important;border-color:#495057!important;color:#e9ecef!important}:root[data-theme=dark] .template-dialog input::placeholder,:root[data-theme=dark] .template-dialog textarea::placeholder,html[data-theme=dark] .template-dialog input::placeholder,html[data-theme=dark] .template-dialog textarea::placeholder{color:#6c757d!important}:root[data-theme=dark] .template-preview,body.dark-mode .template-preview,html[data-theme=dark] .template-preview{background:#25282c!important;border-color:#495057!important}:root[data-theme=dark] .template-preview h4,body.dark-mode .template-preview h4,html[data-theme=dark] .template-preview h4{color:#e9ecef!important}:root[data-theme=dark] .template-preview li,:root[data-theme=dark] .template-preview ul,body.dark-mode .template-preview li,body.dark-mode .template-preview ul,html[data-theme=dark] .template-preview li,html[data-theme=dark] .template-preview ul{color:#adb5bd!important}:root[data-theme=dark] .template-preview .preview-section,body.dark-mode .template-preview .preview-section,html[data-theme=dark] .template-preview .preview-section{border-bottom-color:#495057!important}:root[data-theme=dark] .template-preview .preview-section strong,body.dark-mode .template-preview .preview-section strong,html[data-theme=dark] .template-preview .preview-section strong{color:#e9ecef!important}:root[data-theme=dark] .template-list,body.dark-mode .template-list,html[data-theme=dark] .template-list{background:#1a1d21!important;border-color:#495057!important}:root[data-theme=dark] .template-details,body.dark-mode .template-details,html[data-theme=dark] .template-details{background:#25282c!important;border-color:#495057!important}:root[data-theme=dark] .template-details h4,body.dark-mode .template-details h4,html[data-theme=dark] .template-details h4{color:#e9ecef!important}:root[data-theme=dark] .details-content p,body.dark-mode .details-content p,html[data-theme=dark] .details-content p{color:#adb5bd!important}:root[data-theme=dark] .template-item,body.dark-mode .template-item,html[data-theme=dark] .template-item{background:#1a1d21!important;border-color:#495057!important}:root[data-theme=dark] .template-item:hover,body.dark-mode .template-item:hover,html[data-theme=dark] .template-item:hover{background:#2d3035!important}:root[data-theme=dark] .template-item.selected,body.dark-mode .template-item.selected,html[data-theme=dark] .template-item.selected{background:#2b4a6b!important;border-color:#3d8bfd!important}:root[data-theme=dark] .template-description,body.dark-mode .template-description,html[data-theme=dark] .template-description{color:#adb5bd!important}:root[data-theme=dark] .no-templates,:root[data-theme=dark] .template-meta,body.dark-mode .no-templates,body.dark-mode .template-meta,html[data-theme=dark] .no-templates,html[data-theme=dark] .template-meta{color:#6c757d!important}:root[data-theme=dark] .dialog-actions,body.dark-mode .dialog-actions,html[data-theme=dark] .dialog-actions{border-top-color:#495057!important}:root[data-theme=dark] .dialog-actions button,body.dark-mode .dialog-actions button,html[data-theme=dark] .dialog-actions button{border-color:#495057!important}:root[data-theme=dark] .dialog-actions .btn-secondary,body.dark-mode .dialog-actions .btn-secondary,html[data-theme=dark] .dialog-actions .btn-secondary{background:#25282c!important;color:#e9ecef!important}:root[data-theme=dark] .dialog-actions .btn-secondary:hover,body.dark-mode .dialog-actions .btn-secondary:hover,html[data-theme=dark] .dialog-actions .btn-secondary:hover{background:#2d3035!important}:root[data-theme=dark] .confirm-apply,body.dark-mode .confirm-apply,html[data-theme=dark] .confirm-apply{background:#3d3520!important;border-color:#5a4e2a!important}:root[data-theme=dark] .confirm-apply .warning,body.dark-mode .confirm-apply .warning,html[data-theme=dark] .confirm-apply .warning{color:#ffca2c!important}:root[data-theme=dark] .duplicate-warning,body.dark-mode .duplicate-warning,html[data-theme=dark] .duplicate-warning{background:#3d3520!important;border-color:#5a4e2a!important}:root[data-theme=dark] .duplicate-warning .warning-message,body.dark-mode .duplicate-warning .warning-message,html[data-theme=dark] .duplicate-warning .warning-message{color:#ffca2c!important}:root[data-theme=dark] .duplicate-warning .warning-message strong,body.dark-mode .duplicate-warning .warning-message strong,html[data-theme=dark] .duplicate-warning .warning-message strong{color:#ffd966!important}:root[data-theme=dark] .duplicate-warning .created-date,body.dark-mode .duplicate-warning .created-date,html[data-theme=dark] .duplicate-warning .created-date{color:#c9a227!important}:root[data-theme=dark] .duplicate-warning>p,body.dark-mode .duplicate-warning>p,html[data-theme=dark] .duplicate-warning>p{color:#ffca2c!important}:root[data-theme=dark] .duplicate-actions .btn-danger,body.dark-mode .duplicate-actions .btn-danger,html[data-theme=dark] .duplicate-actions .btn-danger{background:#dc3545!important;border-color:#dc3545!important;color:#fff!important}:root[data-theme=dark] .duplicate-actions .btn-danger:hover,body.dark-mode .duplicate-actions .btn-danger:hover,html[data-theme=dark] .duplicate-actions .btn-danger:hover{background:#c82333!important;border-color:#bd2130!important}:root[data-theme=dark] .duplicate-actions .btn-primary,body.dark-mode .duplicate-actions .btn-primary,html[data-theme=dark] .duplicate-actions .btn-primary{background:#007bff!important;border-color:#007bff!important;color:#fff!important}:root[data-theme=dark] .duplicate-actions .btn-primary:hover,body.dark-mode .duplicate-actions .btn-primary:hover,html[data-theme=dark] .duplicate-actions .btn-primary:hover{background:#0056b3!important;border-color:#0056b3!important}:root[data-theme=dark] .duplicate-actions .btn-secondary,body.dark-mode .duplicate-actions .btn-secondary,html[data-theme=dark] .duplicate-actions .btn-secondary{background:#25282c!important;border-color:#495057!important;color:#e9ecef!important}:root[data-theme=dark] .duplicate-actions .btn-secondary:hover,body.dark-mode .duplicate-actions .btn-secondary:hover,html[data-theme=dark] .duplicate-actions .btn-secondary:hover{background:#2d3035!important}.version-constraint-settings{background-color:#f8f9fa;border:1px solid #e1e4e8;border-radius:8px;margin:20px 0;overflow-anchor:none;padding:20px;scroll-margin-top:100px}[data-theme=dark] .version-constraint-settings{background-color:initial!important;background:#0000!important;border-color:#0000!important}.version-constraint-settings h3{color:#24292e;font-size:20px;margin:0 0 16px}.version-constraint-settings h4{color:#24292e;font-size:16px;margin:0 0 12px}.version-constraint-settings h5{color:#586069;font-size:14px;font-weight:600;margin:0 0 8px}.version-info{background-color:#e3f2fd;border:1px solid #bbdefb;border-radius:4px;margin-bottom:20px;overflow-anchor:none;padding:12px}.info-text{color:#0d47a1;font-size:14px;margin:0}.settings-section{border-bottom:1px solid #e1e4e8;margin-bottom:24px;padding-bottom:24px}.settings-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.setting-item{margin-bottom:16px}.setting-item label{align-items:center;color:#24292e;cursor:pointer;display:flex;font-size:14px}.setting-item input[type=checkbox],.setting-item input[type=radio]{cursor:pointer;margin-right:8px}.sub-setting,.sub-settings{margin-left:28px;margin-top:12px}.sub-settings{border-left:2px solid #e1e4e8;padding-left:12px}.number-input{border:1px solid #e1e4e8;border-radius:4px;font-size:14px;margin-left:8px;padding:4px 8px;width:60px}.number-input:focus{border-color:#0366d6;box-shadow:0 0 0 3px #0366d61a;outline:none}.preview-info{background-color:#f0f8ff;border:1px solid #b3d9ff;border-radius:4px;margin-top:16px;padding:12px}.preview-info .info-text{color:#0056b3}.no-versions-message{color:#586069;padding:40px 20px;text-align:center}.no-versions-message p{font-size:14px;margin:0 0 8px}.no-versions-message p:last-child{margin-bottom:0}@media (max-width:768px){.version-constraint-settings{padding:16px}.sub-setting,.sub-settings{margin-left:20px}}body[data-theme=dark] .version-constraint-settings,html[data-theme=dark] .form-section .version-constraint-settings,html[data-theme=dark] .quiz-form .version-constraint-settings,html[data-theme=dark] .version-constraint-settings{background-color:initial!important;background:#0000!important;border-color:#0000!important}[data-theme=dark] .version-constraint-settings h3,[data-theme=dark] .version-constraint-settings h4{color:#e9ecef!important}[data-theme=dark] .version-constraint-settings h5{color:#adb5bd!important}[data-theme=dark] .version-constraint-settings .version-info{background-color:#0d6efd26!important;border-color:#0d6efd4d!important}[data-theme=dark] .version-constraint-settings .info-text{color:#6ea8fe!important}[data-theme=dark] .version-constraint-settings .settings-section{border-bottom-color:#495057!important}[data-theme=dark] .version-constraint-settings .setting-item label{color:#e9ecef!important}[data-theme=dark] .version-constraint-settings .help-text{color:#adb5bd!important}[data-theme=dark] .version-constraint-settings .sub-settings{border-left-color:#495057!important}[data-theme=dark] .version-constraint-settings .number-input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .version-constraint-settings .number-input:focus{border-color:#6ea8fe!important;box-shadow:0 0 0 3px #0d6efd33!important}[data-theme=dark] .version-constraint-settings .preview-info{background-color:#0d6efd1a!important;border-color:#0d6efd40!important}[data-theme=dark] .version-constraint-settings .preview-info .info-text{color:#6ea8fe!important}[data-theme=dark] .version-constraint-settings .no-versions-message{color:#adb5bd!important}[data-theme=dark] .version-constraint-settings .setting-item,[data-theme=dark] .version-constraint-settings .settings-section,[data-theme=dark] .version-constraint-settings .sub-setting{background-color:initial!important}[data-theme=dark] .version-constraint-settings .sub-setting label{color:#e9ecef!important}.question-version-selector{background-color:#fff;border:1px solid #e1e4e8;border-radius:8px;overflow:hidden}.selector-header{align-items:center;background-color:#f6f8fa;border-bottom:1px solid #e1e4e8;display:flex;justify-content:space-between;padding:16px 20px}.selector-header h4{color:#24292e;font-size:16px;margin:0}.constraint-warning{background-color:#fff3cd;border-bottom:1px solid #ffeaa7;color:#856404;font-size:14px;padding:12px 20px}.version-selector-empty,.version-selector-loading{color:#586069;padding:40px;text-align:center}.version-selector-empty p{font-size:14px;margin:0 0 8px}.version-selector-empty p:last-child{margin-bottom:0}.question-version-selector .questions-list{max-height:600px;overflow-y:auto}.question-version-item{border-bottom:1px solid #e1e4e8}.question-version-item:last-child{border-bottom:none}.question-header{cursor:pointer;padding:16px 20px;transition:background-color .2s}.question-header:hover{background-color:#f6f8fa}.question-info{flex:1 1;gap:16px}.question-number{color:#586069;font-size:14px}.question-text{color:#24292e;flex:1 1;font-size:14px}.version-count{background-color:#e1e4e8;border-radius:12px;font-weight:600;padding:2px 8px}.toggle-btn,.version-count{color:#586069;font-size:12px}.toggle-btn{background:none;border:none;cursor:pointer;padding:4px 8px}.version-options{background-color:#f6f8fa;padding:0 20px 20px}.version-option{background-color:#fff;border:1px solid #e1e4e8;border-radius:6px;margin-top:12px;padding:16px;transition:all .2s}.version-option:hover{border-color:#0366d6;box-shadow:0 1px 3px #0000001a}.version-option.selected{background-color:#f0f7ff;border-color:#0366d6}.version-radio{align-items:center;display:flex;margin-bottom:8px}.version-radio input[type=radio]{margin-right:8px}.version-radio label{align-items:center;color:#24292e;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px}.original-tag{background-color:#28a745;border-radius:10px;color:#fff;font-size:11px;font-weight:400;padding:2px 6px}.version-meta{font-size:13px;margin-bottom:8px}.change-type{background-color:#e1e4e8;border-radius:3px;font-weight:600;margin-right:8px;padding:2px 6px}.change-description{color:#586069}.version-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.tag{background-color:#f1f8ff;border:1px solid #c8e1ff;border-radius:10px;color:#0366d6;font-size:11px;padding:2px 8px}.version-preview{background-color:#f6f8fa;border:1px solid #e1e4e8;border-radius:4px;margin-top:12px;padding:12px}@media (max-width:768px){.question-version-selector .questions-list{max-height:400px}.question-info{flex-wrap:wrap}.question-text{margin-top:8px;width:100%}}.exam-template-settings{padding:0}.exam-section{background:#fff;border:1px solid #e0e0e0;border-radius:8px;margin-bottom:30px;padding:20px}.exam-section h3{color:#333;font-size:1.1rem;font-weight:600;margin:0 0 8px}.exam-section .help-text{color:#666;font-size:.9rem;margin:0 0 16px}.exam-section .help-text.small{font-size:.85rem;margin-bottom:8px}.quiz-filter-section{background:#f8f9fa;border-radius:6px;margin-bottom:16px;padding:12px}.quiz-filter-section .filter-label{color:#495057;display:block;font-weight:500;margin-bottom:8px}.quiz-selection-header{align-items:center;border-bottom:1px solid #eee;display:flex;justify-content:space-between;margin-bottom:12px;padding-bottom:12px}.selection-actions{display:flex;gap:8px}.selection-count{color:#666;font-size:.9rem}.quiz-selection-grid{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.no-matches{background:#f9f9f9;border-radius:4px;color:#666;grid-column:1/-1;padding:20px;text-align:center}.quiz-card{align-items:flex-start;background:#f8f9fa;border:2px solid #e0e0e0;border-radius:6px;cursor:pointer;display:flex;padding:12px;transition:all .15s ease}.quiz-card:hover{background:#f0f7ff;border-color:#1976d2}.quiz-card.selected{background:#e3f2fd;border-color:#1976d2}.quiz-card input[type=checkbox]{cursor:pointer;flex-shrink:0;height:18px;margin-right:12px;margin-top:2px;width:18px}.quiz-card-content{display:flex;flex-direction:column;gap:2px;min-width:0}.quiz-card .quiz-title{color:#333;font-weight:500;word-break:break-word}.quiz-card .quiz-meta{color:#666;font-size:.85rem}.quiz-card .quiz-category{color:#888;font-size:.8rem;font-style:italic}.quiz-selection-table{overflow-x:auto;width:100%}.quiz-table{border-collapse:collapse;font-size:.9rem;width:100%}.quiz-table thead{background:#f0f0f0;position:-webkit-sticky;position:sticky;top:0}.quiz-table th{border-bottom:2px solid #ddd;color:#333;font-weight:600;padding:10px 12px;text-align:left}.quiz-table td{border-bottom:1px solid #eee;padding:10px 12px;vertical-align:middle}.quiz-table .col-select{text-align:center;width:40px}.quiz-table .col-title{font-weight:500;min-width:150px}.quiz-table .col-questions{text-align:center;width:80px}.quiz-table .col-category{word-wrap:break-word;color:#666;font-size:.85rem;line-height:1.4;max-width:400px;min-width:200px}.quiz-row{cursor:pointer;transition:background .15s ease}.quiz-row:hover{background:#f5f9ff}.quiz-row.selected{background:#e3f2fd}.quiz-row.selected:hover{background:#d0e8fc}.quiz-row input[type=checkbox]{accent-color:#1976d2;cursor:pointer;height:16px;width:16px}.source-stats{background:#f8f9fa;border-radius:6px;margin-top:20px;padding:16px}.source-stats h4{color:#555;font-size:.95rem;font-weight:600;margin:0 0 12px}.source-stats h5{color:#555;font-size:.9rem;font-weight:600;margin:16px 0 8px}.stats-grid{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(4,1fr)}.stat-item{align-items:center;background:#fff;border:1px solid #e0e0e0;border-radius:4px;display:flex;flex-direction:column;padding:12px}.stat-item.highlight{background:#e3f2fd;border-color:#1976d2}.stat-value{color:#1976d2;font-size:1.5rem;font-weight:600}.stat-label{font-size:.8rem;text-align:center}.type-breakdown{border-top:1px solid #e0e0e0;margin-top:16px;padding-top:16px}.type-grid{display:flex;flex-wrap:wrap;gap:8px}.type-item{align-items:center;background:#fff;border:1px solid #e0e0e0;border-radius:20px;display:flex;font-size:.85rem;gap:6px;padding:6px 12px}.type-count{color:#1976d2;font-weight:600}.type-name{color:#555}.question-pools{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}.question-pool{background:#fff;border:1px solid #e0e0e0;border-radius:6px;overflow:hidden}.question-pool.disabled{background:#f9f9f9;opacity:.6}.pool-header{align-items:center;background:#f8f9fa;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;-webkit-user-select:none;user-select:none}.pool-header:hover{background:#eef2f5}.pool-header-left{align-items:center;display:flex;gap:12px}.pool-header-left input[type=checkbox]{cursor:pointer;height:18px;width:18px}.pool-name{color:#333;font-weight:600}.pool-summary{color:#666;font-size:.85rem}.pool-header-right{align-items:center;display:flex;gap:8px}.expand-icon{color:#666;font-size:.8rem;transition:transform .2s ease}.expand-icon.expanded{transform:rotate(90deg)}.btn-remove-pool{align-items:center;background:#ff5252;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:1rem;height:24px;justify-content:center;line-height:1;padding:0;width:24px}.btn-remove-pool:hover{background:#d32f2f}.pool-details{border-top:1px solid #e0e0e0;padding:16px}.pool-row{margin-bottom:16px}.pool-row .form-group,.pool-row:last-child{margin-bottom:0}.pool-row .form-group label{color:#444;display:block;font-size:.9rem;font-weight:500;margin-bottom:6px}.count-input-group{display:flex;gap:8px}.count-input-group .form-control:first-child{width:100px}.count-input-group .form-control:last-child{width:140px}.pool-row .form-text,.pool-row .form-text.available-count{color:#28a745;font-size:.85rem;font-weight:500;margin-top:6px}.add-pool-btn{align-items:center;display:flex;gap:8px}.additional-categories-config{display:flex;flex-direction:column;gap:16px}.exam-summary{background:#f0f7ff;border-color:#90caf9}.summary-content{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.summary-row{background:#fff;border-radius:4px;display:flex;justify-content:space-between;padding:8px 12px}.summary-row span{color:#555}.summary-row strong{color:#1976d2}.preview-btn{font-size:1rem;padding:12px;width:100%}.loading-indicator{color:#666;padding:20px;text-align:center}.error-message{background:#ffebee;border-radius:4px;color:#c62828;padding:12px}.no-quizzes-message{background:#f9f9f9;border-radius:4px;color:#666;padding:20px;text-align:center}@media (max-width:768px){.stats-grid{grid-template-columns:repeat(2,1fr)}.quiz-selection-grid{grid-template-columns:1fr}.count-input-group{flex-direction:column}.count-input-group .form-control:first-child,.count-input-group .form-control:last-child{width:100%}}[data-theme=dark] .exam-template-settings .exam-section{background:#2d3748;background:var(--bg-card,#2d3748);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .exam-section h3,[data-theme=dark] .exam-section h4,[data-theme=dark] .exam-section h5{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .exam-section .help-text{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .quiz-filter-section{background:#1a202c;background:var(--bg-secondary,#1a202c)}[data-theme=dark] .quiz-filter-section .filter-label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .selection-count{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .quiz-card{background:#1a202c;background:var(--bg-secondary,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .quiz-card:hover{background:#1976d226;border-color:#1976d2}[data-theme=dark] .quiz-card.selected{background:#1976d233;border-color:#1976d2}[data-theme=dark] .quiz-card .quiz-title{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .no-matches,[data-theme=dark] .quiz-card .quiz-category,[data-theme=dark] .quiz-card .quiz-meta{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .no-matches,[data-theme=dark] .quiz-table thead{background:#1a202c;background:var(--bg-secondary,#1a202c)}[data-theme=dark] .quiz-table th{border-bottom-color:#4a5568;border-bottom-color:var(--border-primary,#4a5568);color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-table td{border-bottom-color:#2d3748;border-bottom-color:var(--border-secondary,#2d3748)}[data-theme=dark] .quiz-table .col-title{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-table .col-category{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .quiz-row:hover{background:#1976d21a}[data-theme=dark] .quiz-row.selected{background:#1976d233}[data-theme=dark] .quiz-row.selected:hover{background:#1976d240}[data-theme=dark] .source-stats{background:#1a202c;background:var(--bg-secondary,#1a202c)}[data-theme=dark] .source-stats h4,[data-theme=dark] .source-stats h5{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .stat-item{background:#2d3748;background:var(--bg-card,#2d3748);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .stat-item.highlight{background:#1976d233;border-color:#1976d2}[data-theme=dark] .stat-label{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .type-breakdown,[data-theme=dark] .type-item{border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .type-item{background:#2d3748;background:var(--bg-card,#2d3748)}[data-theme=dark] .type-name{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .question-pool{background:#2d3748;background:var(--bg-card,#2d3748);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .pool-header{background:#1a202c;background:var(--bg-secondary,#1a202c)}[data-theme=dark] .pool-header:hover{background:#ffffff0d}[data-theme=dark] .pool-name{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .pool-summary{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .pool-details{border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .pool-row .form-group label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .form-text,[data-theme=dark] .pool-row .form-text,[data-theme=dark] .pool-row .form-text.available-count{color:#4ade80!important}[data-theme=dark] .exam-summary{background:#1976d226;border-color:#1976d2}[data-theme=dark] .summary-row{background:#2d3748;background:var(--bg-card,#2d3748)}[data-theme=dark] .no-quizzes-message,[data-theme=dark] .summary-row span{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .no-quizzes-message{background:#1a202c;background:var(--bg-secondary,#1a202c)}[data-theme=dark] .pool-header-left input[type=checkbox],[data-theme=dark] .quiz-card input[type=checkbox]{accent-color:#1976d2;background-color:#1a202c;border:2px solid #63b3ed}.count-mode-section{padding:16px 20px}.count-mode-toggle{display:flex;gap:16px;margin-top:12px}.count-mode-option{align-items:flex-start;background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;cursor:pointer;display:flex;flex:1 1;gap:12px;padding:16px;transition:all .2s ease}.count-mode-option:hover{background:#f0f7ff;border-color:#1976d2}.count-mode-option.selected{background:#e3f2fd;border-color:#1976d2}.count-mode-option input[type=radio]{accent-color:#1976d2;margin-top:2px}.count-mode-option .option-content{display:flex;flex-direction:column;gap:4px}.count-mode-option .option-title{color:#333;font-size:.95rem;font-weight:600}.count-mode-option .option-desc{color:#666;font-size:.85rem}.count-mode-info{background:#fff3e0;border:1px solid #ffcc80;border-radius:6px;color:#e65100;font-size:.9rem;margin-top:12px;padding:10px 14px}.stat-units{color:#666;display:block;font-size:.75rem;margin-top:2px}[data-theme=dark] .count-mode-option{background:#1a202c;background:var(--bg-secondary,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .count-mode-option:hover{background:#63b3ed1a;border-color:#63b3ed}[data-theme=dark] .count-mode-option.selected{background:#63b3ed26;border-color:#63b3ed}[data-theme=dark] .count-mode-option .option-title{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .count-mode-option .option-desc{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .count-mode-info{background:#fb8c0026;border-color:#fb8c00;color:#ffb74d}[data-theme=dark] .stat-units{color:#a0aec0;color:var(--text-secondary,#a0aec0)}.reuse-settings{display:flex;flex-direction:column;gap:12px}.reuse-checkbox{align-items:center;background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;cursor:pointer;display:flex;gap:10px;padding:12px 16px;transition:all .2s ease}.reuse-checkbox:hover{background:#f0f7ff;border-color:#1976d2}.reuse-checkbox input[type=checkbox]{accent-color:#1976d2;cursor:pointer;height:18px;width:18px}.reuse-checkbox .checkbox-label{color:#333;font-weight:500}.reuse-limit-setting{background:#f0f7ff;border:1px solid #90caf9;border-radius:6px;margin-left:28px;padding:12px 16px}.reuse-limit-setting label{align-items:center;color:#333;display:flex;font-weight:500;gap:12px}.reuse-input{padding:6px 10px!important;text-align:center;width:70px!important}.reuse-hint{color:#666;display:block;font-size:.85rem;font-style:italic;margin-top:8px}[data-theme=dark] .reuse-checkbox{background:#1a202c;background:var(--bg-secondary,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .reuse-checkbox:hover{background:#63b3ed1a;border-color:#63b3ed}[data-theme=dark] .reuse-checkbox .checkbox-label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .reuse-limit-setting{background:#63b3ed1a;border-color:#63b3ed}[data-theme=dark] .reuse-limit-setting label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .reuse-hint{color:#a0aec0;color:var(--text-secondary,#a0aec0)}.fallback-checkbox{align-items:center;cursor:pointer;display:flex;gap:8px;padding:8px 0}.fallback-checkbox input[type=checkbox]{accent-color:#1976d2;cursor:pointer;height:16px;width:16px}.fallback-checkbox .checkbox-label{color:#333;font-size:.9rem;font-weight:500}.pool-row .form-text{color:#666;font-size:.8rem;margin-top:4px}[data-theme=dark] .fallback-checkbox .checkbox-label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .pool-row .form-text{color:#a0aec0;color:var(--text-secondary,#a0aec0)}.quiz-form{margin:0 auto;max-width:1200px}.form-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px;padding:25px;scroll-margin-top:100px}.form-section h2{border-bottom:2px solid #f0f0f0;color:#333;font-size:1.3rem;margin:0 0 20px;padding-bottom:15px}.form-control{font-size:14px;transition:border-color .2s ease}.form-control:focus{box-shadow:0 0 0 2px #007bff1a;outline:none}textarea.form-control{min-height:80px;resize:vertical}.structure-choice{grid-gap:20px;display:grid;gap:20px;grid-template-columns:1fr 1fr;margin-top:20px}.structure-option{background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;cursor:pointer;display:block;padding:20px;transition:all .3s ease}.structure-option:hover{background:#f0f7ff;border-color:#007bff}.structure-option input[type=radio]{margin-bottom:10px;margin-right:10px}.structure-option input[type=radio]:checked+.option-content,.structure-option.selected{background:#e7f3ff;border-color:#007bff}.option-content h4{color:#333;margin:0 0 8px}.option-content p{color:#6c757d;font-size:.9rem;margin:0}.form-checkboxes{display:flex;flex-direction:column;gap:10px}.form-checkboxes label{align-items:center;cursor:pointer;display:flex;font-weight:400}.form-checkboxes input[type=checkbox]{margin-right:8px}.global-grading-config{grid-gap:20px;align-items:start;display:grid;gap:20px;grid-template-columns:200px 1fr}.grading-config-wrapper{background:#f8f9fa;border-radius:6px;margin-top:15px;padding:20px}.form-actions{border-top:1px solid #e0e0e0;gap:15px;justify-content:flex-end;margin-top:30px;padding-top:20px}.alert{margin:20px 0;padding:12px 20px}.alert-danger{background:#f8d7da;border:1px solid #f5c6cb}.alert-success{background:#d4edda;border:1px solid #c3e6cb;color:#155724}.loading-spinner{font-size:1.1rem;padding:60px;text-align:center}@media (max-width:768px){.form-row,.global-grading-config,.structure-choice{grid-template-columns:1fr}.form-section{padding:20px}}.page-header{background:#fff;border-bottom:1px solid #e0e0e0;margin:-20px -30px 30px;padding:20px 30px}.page-header h1{color:#333;font-size:1.8rem;margin:0}.btn{font-size:14px;padding:10px 20px;transition:all .2s ease}.btn-secondary{background:#6c757d}.btn-secondary:hover{background:#545b62}.btn-secondary:disabled{cursor:not-allowed;opacity:.6}.distribution-config{background:#fff;border:1px solid #dee2e6;border-radius:6px;margin-top:20px;padding:20px}.distribution-config h5{color:#333;font-size:1.1rem;margin-bottom:15px}.points-grid{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.points-row{align-items:center;display:flex;gap:10px}.points-row label{color:#495057;flex:1 1;font-weight:500;margin:0}.points-input{text-align:center;width:80px}.section-points-config{margin-top:20px}.section-points-config h5{color:#333;margin-bottom:10px}.help-text{color:#6c757d;font-size:.9rem;margin-bottom:20px}.section-point-config{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;margin-bottom:20px;padding:20px}.section-header-points{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px}.section-header-points h6{color:#333;font-size:1.1rem;margin:0}.section-points-input{align-items:center;display:flex;gap:10px}.section-points-input label{color:#495057;font-weight:500;margin:0}.section-distribution{margin-top:20px}.section-distribution>label{color:#495057;display:block;font-weight:500;margin-bottom:10px}.section-difficulty-points,.section-type-points{background:#fff;border:1px solid #e0e0e0;border-radius:6px;margin-top:20px;padding:15px}.section-difficulty-points h6,.section-type-points h6{color:#495057;font-size:.95rem;margin:0 0 15px}.section-points-total{background:#e9ecef;border-radius:6px;font-size:1.1rem;margin-top:20px;padding:15px;text-align:center}.section-points-total .valid{color:#28a745;font-weight:700}.section-points-total .invalid{color:#dc3545;font-weight:700}.advanced-scoring-header{margin-bottom:10px}.advanced-toggle:hover{background-color:#f8f9fa;border-radius:4px}.advanced-toggle:focus{box-shadow:0 0 0 2px #007bff40;outline:none}.form-text{color:#6c757d;display:block;font-size:.875em;margin-top:.25rem}[data-theme=dark] .quiz-form .form-section{background:#2d3136!important;box-shadow:0 2px 4px #0000004d!important}[data-theme=dark] .quiz-form .form-section h2{border-bottom-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-form .form-group label{color:#e9ecef!important}[data-theme=dark] .quiz-form .form-control{background:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-form .structure-option{background:#2d3136!important;border-color:#495057!important}[data-theme=dark] .quiz-form .structure-option:hover{background:#3d4148!important;border-color:#007bff!important}[data-theme=dark] .quiz-form .structure-option input[type=radio]:checked~.option-content,[data-theme=dark] .quiz-form .structure-option.selected{background:#007bff26!important;border-color:#007bff!important}[data-theme=dark] .quiz-form .option-content h4{color:#e9ecef!important}[data-theme=dark] .quiz-form .option-content p{color:#adb5bd!important}[data-theme=dark] .quiz-form .grading-config-wrapper{background:#2d3136!important}[data-theme=dark] .quiz-form .distribution-config{background:#2d3136!important;border-color:#495057!important}[data-theme=dark] .quiz-form .distribution-config h5{color:#e9ecef!important}[data-theme=dark] .quiz-form .form-actions{background:#0000!important;border-top-color:#495057!important}[data-theme=dark] .quiz-form,html[data-theme=dark] .quiz-form{background:#0000!important}[data-theme=dark] .quiz-form .alert-danger,html[data-theme=dark] .quiz-form .alert-danger{background:#e74c5e26!important;border-color:#e74c5e!important;color:#e74c5e!important}[data-theme=dark] .quiz-form .alert-success,html[data-theme=dark] .quiz-form .alert-success{background:#25a56426!important;border-color:#25a564!important;color:#25a564!important}[data-theme=dark] .quiz-form .section-description,html[data-theme=dark] .quiz-form .section-description{color:#adb5bd!important}[data-theme=dark] .quiz-form .btn-outline-primary,html[data-theme=dark] .quiz-form .btn-outline-primary{background:#0000!important;border-color:#6cb2eb!important;color:#6cb2eb!important}[data-theme=dark] .quiz-form .btn-outline-primary:hover,html[data-theme=dark] .quiz-form .btn-outline-primary:hover{background:#6cb2eb!important;color:#1a1d21!important}[data-theme=dark] .quiz-form .page-header{background:#2d3136!important;border-bottom-color:#495057!important}[data-theme=dark] .quiz-form .page-header h1{color:#e9ecef!important}.alt-version-tag{background:#1976d2;border-radius:4px;color:#fff;font-size:.75rem;font-weight:500;margin-left:8px;padding:2px 8px}[data-theme=dark] .alt-version-tag{background:#2196f3;color:#fff}.question-preview-list{background:#fff;background:var(--bg-card,#fff)}.question-preview-item{align-items:center;border-bottom:1px solid #f0f0f0;border-bottom:1px solid var(--border-secondary,#f0f0f0);display:flex;justify-content:space-between;padding:10px 12px}.question-preview-item:last-child{border-bottom:none}.question-preview-text{color:#333;color:var(--text-primary,#333);flex:1 1}.question-preview-type{color:#666;color:var(--text-secondary,#666);display:flex;font-size:.8rem;gap:8px}[data-theme=dark] .question-preview-list{background:#2d3748;background:var(--bg-card,#2d3748);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .question-preview-item{border-bottom-color:#4a5568;border-bottom-color:var(--border-primary,#4a5568)}[data-theme=dark] .question-preview-text{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .question-preview-type{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .quiz-form .section-point-config{background:#1a202c;background:var(--bg-secondary,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .quiz-form .section-header-points h6,[data-theme=dark] .quiz-form .section-point-config h6{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form .section-difficulty-points,[data-theme=dark] .quiz-form .section-type-points{background:#2d3748;background:var(--bg-card,#2d3748);border-color:#4a5568;border-color:var(--border-primary,#4a5568)}[data-theme=dark] .quiz-form .section-difficulty-points h6,[data-theme=dark] .quiz-form .section-type-points h6{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .quiz-form .section-points-total{background:#1a202c;background:var(--bg-secondary,#1a202c);color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form .points-row label,[data-theme=dark] .quiz-form .section-distribution>label,[data-theme=dark] .quiz-form .section-points-input label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form .form-text,[data-theme=dark] .quiz-form .help-text{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .quiz-form .advanced-toggle:hover{background-color:#1a202c;background-color:var(--bg-secondary,#1a202c)}[data-theme=dark] .quiz-form h3,[data-theme=dark] .quiz-form h4,[data-theme=dark] .quiz-form h5,[data-theme=dark] .quiz-form h6{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form select.form-control{background:#1a202c;background:var(--input-bg,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568);color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form select.form-control option{background:#2d3748;background:var(--bg-card,#2d3748);color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form .points-input,[data-theme=dark] .quiz-form input[type=number]{background:#1a202c;background:var(--input-bg,#1a202c);border-color:#4a5568;border-color:var(--border-primary,#4a5568);color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form .form-checkboxes label{color:#e2e8f0;color:var(--text-primary,#e2e8f0)}[data-theme=dark] .quiz-form .loading-spinner{color:#a0aec0;color:var(--text-secondary,#a0aec0)}[data-theme=dark] .quiz-form .alert-danger{background:#dc354533;border-color:#dc354566;color:#f5a5a5}[data-theme=dark] .quiz-form .alert-success{background:#28a74533;border-color:#28a74566;color:#90d9a0}.edit-mode-note{background-color:#f0f7ff;border:1px solid #b3d9ff;border-radius:4px;margin-bottom:16px;padding:12px}.edit-mode-note p{color:#0056b3;margin:0}[data-theme=dark] .edit-mode-note{background-color:#0d6efd26!important;border-color:#0d6efd4d!important}[data-theme=dark] .edit-mode-note p{color:#6ea8fe!important}[data-theme=dark] .edit-mode-note strong{color:#93c5fd!important}.multi-part-question-config{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;margin-top:20px;padding:15px}[data-theme=dark] .multi-part-question-config{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .multi-part-question-config h6{color:#e9ecef!important}[data-theme=dark] .multi-part-question-config p{color:#adb5bd!important}.exam-warnings{background-color:#fff3cd;border:1px solid #ffc107;border-radius:4px;margin-bottom:16px;padding:12px}[data-theme=dark] .exam-warnings{background-color:#ffc10726!important;border-color:#ffc10766!important;color:#ffc107!important}[data-theme=dark] .exam-warnings li,[data-theme=dark] .exam-warnings strong{color:#fcd34d!important}.export-panel{background-color:#f5f5f5;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px;padding:20px}.export-panel h3{color:#333;margin-top:0}.export-format-selector,.export-panel h3{margin-bottom:15px}.export-format-selector label{display:block;font-weight:700;margin-bottom:5px}.format-options{display:flex;gap:20px}.format-options label{align-items:center;display:flex;font-weight:400;gap:5px}.advanced-toggle{margin-bottom:15px}.link-button{background:none;border:none;color:#007bff;cursor:pointer;font-size:14px;padding:0;text-decoration:underline}.link-button:hover{color:#0056b3}.advanced-options{background-color:#fff;border:1px solid #ddd;border-radius:4px;margin-bottom:15px;padding:15px}.advanced-options h4{color:#333;margin-bottom:15px;margin-top:0}.template-section{border-bottom:1px solid #eee;margin-bottom:20px;padding-bottom:15px}.template-section:last-child{border-bottom:none;padding-bottom:0}.template-section h5{color:#555;margin-bottom:10px;margin-top:0}.template-option{margin-bottom:8px}.template-option label{font-size:14px;width:100px}.template-option input[type=number]{width:60px}.template-option select{width:100px}.template-section textarea{border:1px solid #ddd;border-radius:4px;height:60px;padding:8px;width:100%}.export-actions{margin-top:20px}.export-button{background-color:#007bff;border:none;border-radius:4px;cursor:pointer;font-size:16px;padding:10px 20px}.export-button:hover{background-color:#0069d9}.export-button:disabled{background-color:#ccc;cursor:not-allowed}.export-success{background-color:#dff0d8;border:1px solid #d6e9c6;border-radius:4px;color:#3c763d;margin-top:10px;padding:8px}.export-error{background-color:#f2dede;border:1px solid #ebccd1;border-radius:4px;color:#a94442;margin-top:10px;padding:8px}.template-selector-section{background:#fff;background:var(--bg-secondary,#fff);border:1px solid #dee2e6;border:1px solid var(--border-color,#dee2e6);border-radius:6px;margin-bottom:20px;padding:15px}.template-selector-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.template-selector-header label{color:#333;color:var(--text-primary,#333);font-weight:700;margin:0}.template-selector{margin-top:15px}.template-loading{color:#666;color:var(--text-secondary,#666);font-style:italic;padding:20px;text-align:center}.template-options{display:flex;flex-direction:column;gap:10px;max-height:300px;overflow-y:auto}.template-option{align-items:center;background:#fff;background:var(--bg-secondary,#fff);border:2px solid #e9ecef;border:2px solid var(--border-color,#e9ecef);border-radius:6px;cursor:pointer;display:flex;padding:12px;transition:all .2s ease}.template-option:hover{border-color:#007bff;box-shadow:0 2px 4px #007bff1a}.template-option.selected{background:#f8f9ff;background:var(--bg-tertiary,#f8f9ff);border-color:#007bff;box-shadow:0 2px 8px #007bff33}.template-preview-mini{align-items:center;background:#f8f9fa;background:var(--bg-tertiary,#f8f9fa);border:1px solid #dee2e6;border:1px solid var(--border-color,#dee2e6);border-radius:4px;display:flex;flex-shrink:0;font-size:18px;height:40px;justify-content:center;margin-right:12px;width:40px}.template-info h5{color:#333;color:var(--text-primary,#333);font-size:14px;font-weight:600;margin:0 0 4px}.template-info p{color:#666;color:var(--text-secondary,#666);font-size:13px;line-height:1.3;margin:0 0 4px}.template-details{color:#999;color:var(--text-muted,#999);font-size:11px}.template-fonts{font-style:italic}.builtin-badge{flex-shrink:0;margin-left:8px}.no-templates{color:#666;color:var(--text-secondary,#666);padding:30px 20px;text-align:center}.no-templates p{font-size:14px;margin:5px 0}.template-notice{background:#e7f3ff;border:1px solid #bee5eb;border-radius:4px;color:#055160;font-size:13px;margin-top:8px;padding:8px 12px}@media (max-width:768px){.template-selector-header{gap:10px}.template-option,.template-selector-header{align-items:flex-start;flex-direction:column}.template-option{text-align:left}.template-preview-mini{margin-bottom:8px;margin-right:0}}.designer-preview-display{margin-top:30px}.preview-header{margin-bottom:20px}.preview-header h3{color:#333;font-size:1.5rem;margin:0 0 10px}.preview-note{color:#666;font-size:.875rem;margin:0}.designer-preview-loading{color:#666;padding:40px;text-align:center}.designer-preview-wrapper{background:#fff;border-radius:4px;box-shadow:0 0 15px #0000001a;overflow:hidden}.view-quiz-container{margin:0 auto;max-width:1000px;padding:20px}.quiz-header{border-bottom:1px solid #ddd;padding-bottom:15px}.quiz-header h2{color:#333;margin-top:0}.quiz-description{color:#666;font-size:16px;margin-top:10px}.quiz-details{background-color:#f9f9f9;border-radius:8px;margin-bottom:20px;padding:15px}.quiz-stats{display:flex;gap:20px}.quiz-stats p{margin:0}.quiz-instructions{border-top:1px solid #eee;margin-top:15px;padding-top:15px}.quiz-instructions h3{color:#555;font-size:16px;margin-top:0}.quiz-questions{margin-bottom:30px}.question-item{background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 1px 3px #0000000d}.question-header{align-items:flex-start}.question-number{margin-right:10px}.question-text{flex-grow:1}.question-points{color:#666;margin:0 15px}.question-type{background-color:#eee;color:#555;font-size:12px;text-transform:capitalize}.no-questions{background-color:#f9f9f9;border-radius:4px;color:#888;font-style:italic;padding:20px}.export-section{margin-top:30px}.toggle-preview-button{background-color:#6c757d;border:none;border-radius:4px;color:#fff;cursor:pointer;margin-bottom:15px;padding:8px 15px}.toggle-preview-button:hover{background-color:#5a6268}.error,.loading,.not-found{background-color:#f9f9f9;border-radius:8px;margin:20px auto;max-width:600px;padding:30px;text-align:center}.error{color:#dc3545}[data-theme=dark] .quiz-header{border-bottom-color:#495057}[data-theme=dark] .quiz-header h2{color:#e9ecef}[data-theme=dark] .quiz-description{color:#adb5bd}[data-theme=dark] .quiz-details{background-color:initial;border:2px solid #495057}[data-theme=dark] .quiz-stats{background-color:#1e2124}[data-theme=dark] .question-item{background-color:#2d3035;border-color:#495057}[data-theme=dark] .question-text{color:#e9ecef}[data-theme=dark] .question-points{color:#adb5bd}[data-theme=dark] .question-type{background-color:#3d4148;color:#adb5bd}.question-presentation-controls{height:100%;overflow-x:hidden;overflow-y:auto;padding:15px}.presentation-header h3{color:#333;font-size:16px;margin:0 0 8px}.presentation-description{color:#666;font-size:12px;line-height:1.4;margin:0 0 15px}.question-types-list{display:flex;flex-direction:column;gap:2px}.question-type-section{background:#fff;border:1px solid #e0e0e0;border-radius:6px;overflow:hidden}.question-type-header{align-items:center;background:#f8f9fa;border:none;cursor:pointer;display:flex;font-size:13px;gap:10px;padding:10px 12px;text-align:left;transition:background .2s;width:100%}.question-type-header:hover{background:#e9ecef}.question-type-header.expanded{background:#e3f2fd;border-bottom:1px solid #e0e0e0}.type-icon{align-items:center;background:#fff;border:1px solid #ddd;border-radius:4px;color:#666;display:flex;font-size:11px;height:24px;justify-content:center;width:24px}.type-label{color:#333;flex:1 1;font-weight:500}.expand-icon{color:#999;font-size:10px}.question-type-options{background:#fff;border-top:1px solid #f0f0f0;padding:15px}.option-group{border-bottom:1px solid #f0f0f0;margin-bottom:15px;padding-bottom:15px}.option-group:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.option-group h4{color:#555;font-size:12px;font-weight:600;letter-spacing:.5px;margin:0 0 10px;text-transform:uppercase}.option-row{font-size:13px}.option-row:last-child{margin-bottom:0}.option-row>label:first-child{color:#555;min-width:120px}.option-row label{align-items:center;cursor:pointer;display:flex;gap:6px}.option-row input[type=checkbox]{cursor:pointer;height:16px;width:16px}.option-row select{background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer;flex:1 1;font-size:13px;max-width:250px;padding:6px 10px}.option-row select:hover{border-color:#bbb}.option-row select:focus{border-color:#2196f3;box-shadow:0 0 0 2px #2196f31a;outline:none}.option-row input[type=number]{width:60px}.option-row input[type=number],.option-row input[type=text]{border:1px solid #ddd;border-radius:4px;font-size:13px;padding:6px 10px}.option-row input[type=text]{max-width:150px}.option-preview{background:#f8f9fa;border:1px dashed #ddd;border-radius:4px;font-size:13px;margin-top:12px;padding:10px 12px}.option-preview strong{color:#666;margin-right:8px}.matching-preview{margin-top:5px}.question-presentation-controls::-webkit-scrollbar{width:8px}.question-presentation-controls::-webkit-scrollbar-track{background:#0000;border-radius:4px}.question-presentation-controls::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px}.question-presentation-controls::-webkit-scrollbar-thumb:hover{background:#bbb}[data-theme=dark] .question-presentation-controls{background:#25282c}[data-theme=dark] .presentation-header h3{color:#e0e0e0}[data-theme=dark] .presentation-description{color:#b0b0b0}[data-theme=dark] .question-type-section{background:#2d3136;border-color:#495057}[data-theme=dark] .question-type-header{background:#363a3f;color:#e0e0e0}[data-theme=dark] .question-type-header:hover{background:#42474d}[data-theme=dark] .question-type-header.expanded{background:#2a4a6a;border-bottom-color:#495057}[data-theme=dark] .type-icon{background:#2d3136;border-color:#495057;color:#b0b0b0}[data-theme=dark] .type-label{color:#e0e0e0}[data-theme=dark] .expand-icon{color:#b0b0b0}[data-theme=dark] .question-type-options{background:#2d3136;border-color:#495057}[data-theme=dark] .option-group{border-color:#495057}[data-theme=dark] .option-group h4{color:#b0b0b0}[data-theme=dark] .option-row{color:#e0e0e0}[data-theme=dark] .option-row>label:first-child{color:#b0b0b0}[data-theme=dark] .option-row label{color:#e0e0e0}[data-theme=dark] .option-row select{background:#363a3f;border-color:#495057;color:#e0e0e0}[data-theme=dark] .option-row select:hover{border-color:#6c757d}[data-theme=dark] .option-row select:focus{border-color:#2196f3;box-shadow:0 0 0 2px #2196f333}[data-theme=dark] .option-row input[type=number],[data-theme=dark] .option-row input[type=text]{background:#363a3f;border-color:#495057;color:#e0e0e0}[data-theme=dark] .option-row input[type=checkbox]{accent-color:#2196f3}[data-theme=dark] .option-preview{background:#363a3f;border-color:#495057;color:#e0e0e0}[data-theme=dark] .option-preview strong{color:#b0b0b0}[data-theme=dark] .question-presentation-controls::-webkit-scrollbar-track{background:#0000}[data-theme=dark] .question-presentation-controls::-webkit-scrollbar-thumb{background:#495057}[data-theme=dark] .question-presentation-controls::-webkit-scrollbar-thumb:hover{background:#6c757d}.answer-key-controls{padding:10px 0}.answer-key-controls .control-group{margin-bottom:20px}.answer-key-controls .section-header-inline{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.answer-key-controls .section-header-inline h4{color:#333;font-size:14px;font-weight:600;margin:0}.answer-key-controls .control-description{color:#666;font-size:12px;font-style:italic;margin:0 0 15px}.answer-key-controls .toggle-switch{display:inline-block;height:24px;position:relative;width:44px}.answer-key-controls .toggle-switch input{height:0;opacity:0;width:0}.answer-key-controls .toggle-slider{background-color:#ccc;border-radius:24px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.3s}.answer-key-controls .toggle-slider:before{background-color:#fff;border-radius:50%;bottom:3px;content:"";height:18px;left:3px;position:absolute;transition:.3s;width:18px}.answer-key-controls .toggle-switch input:checked+.toggle-slider{background-color:#4caf50}.answer-key-controls .toggle-switch input:checked+.toggle-slider:before{transform:translateX(20px)}.answer-key-controls .nested-controls{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;margin-top:10px;padding:15px}.answer-key-controls .control-option{margin-bottom:15px}.answer-key-controls .control-option:last-child{margin-bottom:0}.answer-key-controls .checkbox-label{align-items:center;color:#333;cursor:pointer;display:flex;font-size:13px;gap:8px}.answer-key-controls .checkbox-label input[type=checkbox]{cursor:pointer;height:16px;width:16px}.answer-key-controls .option-hint{color:#888;font-size:11px;font-style:italic;margin:4px 0 0 24px}.answer-key-controls .control-label{color:#555;display:block;font-size:12px;font-weight:500;margin-bottom:6px}.answer-key-controls .control-input,.answer-key-controls .control-select{background:#fff;border:1px solid #ddd;border-radius:4px;color:#333;font-size:13px;padding:8px 10px;width:100%}.answer-key-controls .control-select{cursor:pointer}.answer-key-controls .control-input{cursor:text}.answer-key-controls .control-input:hover,.answer-key-controls .control-select:hover{border-color:#bbb}.answer-key-controls .control-input:focus,.answer-key-controls .control-select:focus{border-color:#4caf50;box-shadow:0 0 0 2px #4caf501a;outline:none}.answer-key-controls .section-divider{background:linear-gradient(90deg,#0000,#ddd,#0000);height:1px;margin:25px 0}.answer-key-controls .info-box{background:#e8f5e9;border:1px solid #c8e6c9;border-radius:6px;margin-top:20px;padding:12px 15px}.answer-key-controls .info-box h5{color:#2e7d32;font-size:12px;font-weight:600;margin:0 0 8px}.answer-key-controls .info-box p{color:#555;font-size:11px;margin:0 0 8px}.answer-key-controls .info-box ul{margin:0;padding-left:18px}.answer-key-controls .info-box li{color:#555;font-size:11px;margin-bottom:4px}.answer-key-controls .info-box li:last-child{margin-bottom:0}[data-theme=dark] .answer-key-controls .section-header-inline h4{color:#e0e0e0}[data-theme=dark] .answer-key-controls .control-description{color:#aaa}[data-theme=dark] .answer-key-controls .toggle-slider{background-color:#555}[data-theme=dark] .answer-key-controls .toggle-switch input:checked+.toggle-slider{background-color:#66bb6a}[data-theme=dark] .answer-key-controls .nested-controls{background:#2d3136;border-color:#444}[data-theme=dark] .answer-key-controls .checkbox-label{color:#e0e0e0}[data-theme=dark] .answer-key-controls .option-hint{color:#888}[data-theme=dark] .answer-key-controls .control-label{color:#bbb}[data-theme=dark] .answer-key-controls .control-input,[data-theme=dark] .answer-key-controls .control-select{background:#252542;border-color:#444;color:#e0e0e0}[data-theme=dark] .answer-key-controls .control-input:hover,[data-theme=dark] .answer-key-controls .control-select:hover{border-color:#555}[data-theme=dark] .answer-key-controls .control-input:focus,[data-theme=dark] .answer-key-controls .control-select:focus{border-color:#66bb6a;box-shadow:0 0 0 2px #66bb6a33}[data-theme=dark] .answer-key-controls .section-divider{background:linear-gradient(90deg,#0000,#444,#0000)}[data-theme=dark] .answer-key-controls .info-box{background:#4caf501a;border-color:#4caf504d}[data-theme=dark] .answer-key-controls .info-box h5{color:#81c784}[data-theme=dark] .answer-key-controls .info-box li,[data-theme=dark] .answer-key-controls .info-box p{color:#bbb}.answer-key-controls .student-info-fields-section{background:#ffffff80;border:1px solid #e0e0e0;border-radius:4px;margin-top:12px;padding:12px}.answer-key-controls .field-list{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.answer-key-controls .field-item{align-items:center;background:#fff;border:1px solid #eee;border-radius:4px;display:flex;justify-content:space-between;padding:6px 10px}.answer-key-controls .field-item.custom-field{background:#f8fff8;border-color:#d0e8d0}.answer-key-controls .checkbox-label.small{font-size:12px}.answer-key-controls .checkbox-label.small input[type=checkbox]{height:14px;width:14px}.answer-key-controls .remove-field-btn{background:none;border:none;color:#e74c3c;cursor:pointer;font-size:18px;line-height:1;opacity:.6;padding:0 4px;transition:opacity .2s}.answer-key-controls .remove-field-btn:hover{opacity:1}.answer-key-controls .add-custom-field{display:flex;gap:8px}.answer-key-controls .add-custom-field .control-input{flex:1 1;font-size:12px;padding:6px 10px}.answer-key-controls .add-field-btn{background:#4caf50;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;padding:6px 12px;transition:background .2s;white-space:nowrap}.answer-key-controls .add-field-btn:hover:not(:disabled){background:#43a047}.answer-key-controls .add-field-btn:disabled{background:#ccc;cursor:not-allowed}[data-theme=dark] .answer-key-controls .student-info-fields-section{background:#0003;border-color:#444}[data-theme=dark] .answer-key-controls .field-item{background:#2d3136;border-color:#444}[data-theme=dark] .answer-key-controls .field-item.custom-field{background:#2a3530;border-color:#3a5540}[data-theme=dark] .answer-key-controls .add-custom-field .control-input{background:#252542;border-color:#444;color:#e0e0e0}[data-theme=dark] .answer-key-controls .add-field-btn{background:#66bb6a}[data-theme=dark] .answer-key-controls .add-field-btn:hover:not(:disabled){background:#57a85b}[data-theme=dark] .answer-key-controls .add-field-btn:disabled{background:#555}.design-toolbar{background:#fff;display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.design-toolbar,.design-toolbar *{box-sizing:border-box}.design-toolbar :not(.color-picker-popup){max-width:100%}.design-toolbar ::-webkit-scrollbar{height:0;width:0}.design-toolbar{-ms-overflow-style:none;scrollbar-width:none}.toolbar-menu{display:flex;flex-direction:column;height:100%;overflow:hidden}.menu-header{background:linear-gradient(135deg,#007bff,#0056b3);color:#fff;flex-shrink:0;padding:6px 10px;text-align:center}.menu-header h3{font-size:13px;font-weight:600;margin:0}.menu-items{flex:1 1;overflow-x:hidden;overflow-y:auto;padding:4px}.menu-item{align-items:center;background:#fff;border:1px solid #e9ecef;border-radius:6px;color:#333;cursor:pointer;display:flex;font-size:13px;margin-bottom:3px;padding:10px 12px;text-align:left;transition:all .2s ease;width:100%}.menu-item:hover{background:#f0f7ff;border-color:#007bff;transform:translateX(4px)}.menu-icon{font-size:16px;margin-right:10px;text-align:center;width:20px}.menu-label{flex:1 1;font-weight:500}.menu-arrow{color:#adb5bd;font-size:16px;transition:transform .2s ease}.menu-item:hover .menu-arrow{color:#007bff;transform:translateX(4px)}.menu-footer{background:#f8f9fa;border-top:1px solid #e9ecef;flex-shrink:0;padding:6px}.menu-footer .reset-btn{background:#fff;border:1px solid #dc3545;border-radius:6px;color:#dc3545;cursor:pointer;font-size:12px;padding:8px 12px;transition:all .2s ease;width:100%}.menu-footer .reset-btn:hover{background:#dc3545;color:#fff}[data-theme=dark] .menu-footer{background:#2d2d2d;border-top-color:#404040}[data-theme=dark] .menu-footer .reset-btn{background:#1e1e1e;border-color:#dc3545;color:#ff6b6b}[data-theme=dark] .menu-footer .reset-btn:hover{background:#dc3545;color:#fff}[data-theme=dark] .menu-item{background:#2d2d2d;border-color:#404040;color:#e0e0e0}[data-theme=dark] .menu-item:hover{background:#3a3a3a;border-color:#007bff}[data-theme=dark] .menu-arrow{color:#666}[data-theme=dark] .menu-item:hover .menu-arrow{color:#007bff}.toolbar-section-view{display:flex;flex-direction:column;height:100%;overflow:hidden}.section-nav-header{background:linear-gradient(135deg,#007bff,#0056b3);color:#fff;flex-shrink:0;padding:6px 10px;position:relative;text-align:center}.section-nav-header h3{font-size:13px;font-weight:600;margin:0}.back-btn{background:#ffffff1a;border:1px solid #ffffff4d;border-radius:3px;color:#fff;cursor:pointer;font-size:10px;left:6px;line-height:1.2;padding:1px 5px;position:absolute;top:50%;transform:translateY(-50%);transition:all .2s ease}.back-btn:hover{background:#fff3;border-color:#ffffff80}.toolbar-tabs{background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;flex-direction:column}.toolbar-tab{align-items:center;background:#0000;border:none;border-bottom:1px solid #e9ecef;color:#495057;cursor:pointer;display:flex;font-size:12px;padding:10px 12px;transition:all .2s ease}.toolbar-tab:hover{background:#e9ecef}.toolbar-tab.active{background:#007bff;color:#fff}.tab-icon{font-size:14px;margin-right:8px}.tab-label{font-weight:500}.toolbar-content{-ms-overflow-style:none;flex:1 1;overflow-x:hidden;overflow-y:auto;padding:10px 10px 0;scrollbar-width:none}.toolbar-section-view .toolbar-content{overflow-x:hidden;padding:8px 8px 0}.toolbar-section-view .section-content{height:100%;overflow-x:hidden}.section-actions-bar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.design-toolbar .section-header{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;display:flex;flex-direction:column;margin-bottom:8px;padding:6px 8px}.design-toolbar .section-header h3{color:#495057;display:block;font-size:12px;font-weight:600;margin:0 0 4px;text-align:center}.design-toolbar .section-header-row{align-items:center;display:flex;flex-direction:row;gap:6px}.design-toolbar .section-header p{color:#6c757d;flex:1 1;font-size:9px;font-style:italic;margin:0}.design-toolbar .section-header-actions{display:flex;flex-shrink:0;gap:6px}.expand-collapse-btn{background:#fff;border:1px solid #dee2e6;border-radius:3px;color:#495057;cursor:pointer;font-size:9px;padding:4px 8px;transition:all .2s ease;white-space:nowrap}.expand-collapse-btn:hover{background:#e9ecef;border-color:#adb5bd}.control-group.collapsible{transition:all .2s ease}.control-group.collapsible.collapsed{background:#0000;border:none;margin-bottom:8px;padding:0}.control-group.collapsible.collapsed .collapsible-header{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;margin:0;padding:12px 15px}.control-group.collapsible.expanded{padding:0 15px 15px}.control-group.collapsible.expanded .collapsible-header{border-bottom:1px solid #e9ecef;margin-bottom:15px;padding:15px 0 10px}.collapsible-header{align-items:center;cursor:pointer;display:flex;gap:8px;transition:background-color .2s ease;-webkit-user-select:none;user-select:none}.collapsible-header:hover{opacity:.8}.collapse-icon{color:#6c757d;font-size:10px;transition:transform .2s ease}.collapsible-content{animation:slideDown .2s ease}.control-group.collapsible h4:before{content:none}.metadata-description{color:#6c757d;font-size:11px;font-style:italic;margin:0 0 15px}.metadata-option{margin-bottom:10px}.metadata-option .checkbox-label{align-items:center;color:#495057;cursor:pointer;display:flex;font-size:13px;gap:8px}.metadata-option .checkbox-label input{cursor:pointer;height:16px;width:16px}.metadata-format-section{background:#e9ecef;border-radius:4px;margin-top:15px;padding:12px}.metadata-format-section .control-label{display:block;margin-bottom:5px}.metadata-format-section .control-select{width:100%}.metadata-styling-section{border-top:1px solid #e9ecef;margin-top:15px;padding-top:15px}.metadata-styling-section h5{color:#495057;font-size:13px;font-weight:600;margin:0 0 10px}.control-group{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;margin-bottom:15px;overflow:hidden;padding:12px}.control-group h4{align-items:center;color:#495057;display:flex;font-size:14px;font-weight:600;gap:8px;margin:0 0 15px}.control-group h4:before{content:"🎨";font-size:12px}.control-row{align-items:center;display:flex;gap:4px;margin-bottom:12px;min-width:0}.control-label{word-wrap:break-word;color:#495057;flex-shrink:0;font-size:11px;font-weight:500;line-height:1.2;max-width:65px;min-width:50px}.control-input{background:#fff;border:1px solid #ced4da;border-radius:4px;flex:1 1;font-size:12px;padding:6px 8px;transition:border-color .2s ease}.control-input:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff40;outline:none}.control-select{background:#fff;border:1px solid #ced4da;border-radius:4px;cursor:pointer;flex:1 1;font-size:12px;padding:6px 8px}.control-select:focus{border-color:#007bff;outline:none}.size-unit,.unit{color:#6c757d;flex-shrink:0;font-size:10px;min-width:15px}.font-controls .control-row{margin-bottom:15px}.font-family-select{font-size:12px}.size-control{display:flex;flex:1 1;flex-direction:column;gap:6px;min-width:0}.size-input-row{align-items:center;display:flex;gap:4px}.size-slider-row{display:flex;width:100%}.size-input{flex:1 1;max-width:80px;min-width:50px}.size-slider{background:#dee2e6;border-radius:2px;cursor:pointer;height:4px;outline:none;width:100%}.size-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#007bff;border-radius:50%;cursor:pointer;height:16px;width:16px}.size-slider::-moz-range-thumb{background:#007bff;border:none;border-radius:50%;cursor:pointer;height:16px;width:16px}.size-presets{display:flex;flex:1 1;flex-wrap:wrap;gap:2px;min-width:0}.preset-button{background:#fff;border:1px solid #dee2e6;border-radius:3px;color:#495057;cursor:pointer;flex-shrink:0;font-size:10px;padding:3px 6px;transition:all .2s ease}.preset-button:hover{background:#e9ecef;border-color:#adb5bd}.text-formatting .control-row{margin-bottom:15px}.button-group{display:flex;flex:1 1;gap:1px;min-width:0}.format-button{align-items:center;background:#fff;border:1px solid #dee2e6;color:#495057;cursor:pointer;display:flex;flex:1 1;font-size:11px;justify-content:center;min-width:28px;padding:5px 8px;transition:all .2s ease}.format-button:first-child{border-radius:4px 0 0 4px}.format-button:last-child{border-radius:0 4px 4px 0}.format-button:only-child{border-radius:4px}.format-button:hover{background:#e9ecef;border-color:#adb5bd}.format-button.active{background:#007bff;border-color:#007bff;color:#fff}.color-control{align-items:center;display:flex;flex:1 1;gap:6px;min-width:0;position:relative}.color-picker{border:1px solid #dee2e6;border-radius:4px;cursor:pointer;flex-shrink:0;height:32px;padding:2px;width:40px}.color-picker:hover{border-color:#007bff}.color-input{flex:1 1;min-width:80px}.color-button{align-items:center;border:2px solid #dee2e6;border-radius:4px;color:#fff;cursor:pointer;display:flex;flex-shrink:0;font-weight:700;height:28px;justify-content:center;text-shadow:1px 1px 1px #00000080;transition:all .2s ease;width:28px}.color-button:hover{border-color:#007bff;box-shadow:0 2px 4px #0000001a}.bg-color-button{font-size:16px}.color-input{background:none;border:1px solid #dee2e6;border-radius:4px;cursor:pointer;flex-shrink:0;height:28px;padding:0;width:32px}.clear-bg-button{align-items:center;background:#dc3545;border:1px solid #dc3545;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:10px;height:24px;justify-content:center;width:24px}.clear-bg-button:hover{background:#c82333}.color-picker-popup{background:#fff;border:1px solid #dee2e6;border-radius:6px;box-shadow:0 4px 6px #0000001a;left:0;min-width:200px;padding:15px;position:absolute;top:100%;z-index:1000}.preset-section{margin-bottom:15px}.preset-section label{color:#495057;display:block;font-size:11px;font-weight:600;margin-bottom:8px}.color-grid{grid-gap:4px;display:grid;gap:4px;grid-template-columns:repeat(5,1fr)}.color-preset{border:1px solid #dee2e6;border-radius:3px;cursor:pointer;height:24px;transition:all .2s ease;width:24px}.color-preset:hover{border-color:#007bff;transform:scale(1.1)}.clear-bg-preset{background:#fff;border:1px solid #6c757d;border-radius:4px;color:#6c757d;cursor:pointer;font-size:11px;margin-bottom:10px;padding:6px 12px;width:100%}.clear-bg-preset:hover{background:#6c757d;color:#fff}.close-picker{align-items:center;background:#dc3545;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:10px;height:20px;justify-content:center;position:absolute;right:5px;top:5px;width:20px}.radio-group{flex:1 1;flex-wrap:wrap;gap:8px;min-width:0}.radio-label{align-items:center;color:#495057;cursor:pointer;display:flex;font-size:12px;gap:6px}.radio-label input[type=radio]{margin:0}.margin-controls{flex:1 1}.margin-input label{font-size:11px}.margin-input input{border-radius:3px;font-size:11px;padding:4px 6px}.unit-selector{background:#fff;border:1px solid #ced4da;border-radius:4px;cursor:pointer;font-size:12px;min-width:120px;padding:4px 8px}.unit-selector:hover{border-color:#80bdff}.unit-selector:focus{border-color:#80bdff;box-shadow:0 0 0 2px #007bff1a;outline:0}.control-label-with-unit{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.control-label-with-unit .control-label{margin-bottom:0}.margin-unit-selector,.spacing-unit-selector{margin-left:auto}.spacing-control{align-items:center;display:flex;flex:1 1;gap:4px;min-width:0}.spacing-control.with-slider{display:flex;flex-direction:column;gap:6px}.spacing-control.with-slider .spacing-input-row{align-items:center;display:flex;gap:4px}.spacing-control.with-slider .spacing-slider-row{display:flex;width:100%}.spacing-control .control-input{flex:1 1;min-width:50px}.spacing-control.with-slider .control-input{flex:1 1;max-width:80px;min-width:50px}.spacing-control .spacing-slider{background:#dee2e6;border-radius:2px;cursor:pointer;height:4px;outline:none;width:100%}.spacing-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background:#28a745;border-radius:50%;cursor:pointer;height:14px;width:14px}.spacing-slider::-moz-range-thumb{background:#28a745;border:none;border-radius:50%;cursor:pointer;height:14px;width:14px}.preset-buttons{display:flex;flex-wrap:wrap;gap:4px;min-width:0}.group-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:15px}.toggle-switch{display:inline-block;height:24px;position:relative;width:44px}.toggle-switch input{height:0;opacity:0;width:0}.toggle-slider{background-color:#ccc;border-radius:24px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.3s}.toggle-slider:before{background-color:#fff;border-radius:50%;bottom:3px;content:"";height:18px;left:3px;position:absolute;transition:.3s;width:18px}input:checked+.toggle-slider{background-color:#007bff}input:checked+.toggle-slider:before{transform:translateX(20px)}.header-content-grid{grid-gap:6px;display:grid;gap:6px;grid-template-columns:1fr 1fr 1fr;margin-bottom:10px}.content-section{display:flex;flex-direction:column;gap:2px}.content-label{color:#6c757d;font-size:10px;font-weight:500}.content-input{background:#fff;border:1px solid #ced4da;border-radius:4px;font-size:11px;min-width:0;padding:4px 6px}.content-input:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff40;outline:none}.header-content-compact{margin-bottom:10px}.header-content-compact .content-row{align-items:center;display:flex;gap:6px}.header-content-compact .alignment-buttons{display:flex;flex-shrink:0;gap:2px}.header-content-compact .align-btn{background:#f8f9fa;border:1px solid #ced4da;border-radius:3px;color:#495057;cursor:pointer;font-size:10px;font-weight:600;height:24px;padding:0;transition:all .15s ease;width:24px}.header-content-compact .align-btn:hover{background:#e9ecef;border-color:#adb5bd}.header-content-compact .align-btn.active{background:#007bff;border-color:#007bff;color:#fff}.header-content-compact .content-input-wide{background:#fff;border:1px solid #ced4da;border-radius:4px;flex:1 1;font-size:12px;min-width:0;padding:5px 8px}.header-content-compact .content-input-wide:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff40;outline:none}.style-controls{background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;margin-bottom:15px;padding:10px}.style-controls .button-group{flex:0 0 auto;gap:0}.style-controls .button-group .format-button{flex:0 0 auto;max-width:40px;min-width:28px}.additional-line .button-group{flex:0 0 auto;gap:0}.additional-line .button-group .format-button{flex:0 0 auto;max-width:40px;min-width:28px}.variables-info{background:#e3f2fd;border:1px solid #bbdefb;border-radius:4px;padding:10px}.variables-info h5{color:#1976d2;font-size:12px;margin:0 0 8px}.variable-list{display:flex;flex-wrap:wrap;gap:6px}.variable{background:#1976d2;border-radius:3px;color:#fff;cursor:help;font-family:monospace;font-size:10px;padding:2px 6px}.toolbar-actions{background:#f8f9fa;border-top:1px solid #e9ecef;padding:15px}.reset-button{background:#fff;border:1px solid #dc3545;border-radius:4px;color:#dc3545;cursor:pointer;font-size:12px;font-weight:500;padding:10px;transition:all .2s ease;width:100%}.reset-button:hover{background:#dc3545;color:#fff}.margin-controls{grid-gap:10px;display:grid;gap:10px;grid-template-columns:1fr 1fr;margin-top:10px}.margin-input{display:flex;flex-direction:column;gap:4px}.margin-input label{color:#6c757d;font-size:12px;font-weight:500}.margin-input input{border:1px solid #ced4da;border-radius:4px;font-size:13px;padding:6px 8px;width:100%}.margin-input .unit-label,.spacing-control .unit{color:#6c757d;font-size:11px;margin-left:4px;white-space:nowrap}.border-controls{flex:1 1}.control-select.small{font-size:11px;padding:4px 6px}@media (max-width:320px),.design-toolbar{.toolbar-tabs{flex-direction:row;overflow-x:auto}.toolbar-tab{border-bottom:none;border-right:1px solid #e9ecef;min-width:80px;padding:8px 10px}.control-row{align-items:flex-start;flex-direction:column;gap:6px}.control-label{max-width:none;min-width:auto;width:100%}.button-group,.color-control,.size-control,.spacing-control{width:100%}.margin-controls{grid-template-columns:1fr}.preset-buttons,.size-presets{justify-content:center}.radio-group{justify-content:flex-start}}@media (max-width:300px){.control-group{margin-bottom:20px;padding:10px}.toolbar-content{padding:10px}.format-button{font-size:10px;min-width:24px;padding:4px 6px}.preset-button{font-size:9px;padding:2px 4px}}.multi-line-content{margin-bottom:20px}.content-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:15px;padding-bottom:8px}.content-header h5{color:#495057;font-size:14px;margin:0}.add-line-section{border-top:1px solid #e9ecef;margin:15px 0;padding:10px;text-align:center}.add-line-button{background:#28a745;border:1px solid #28a745;border-radius:6px;color:#fff;cursor:pointer;font-size:12px;font-weight:500;padding:8px 16px;transition:all .2s ease}.add-line-button:hover{background:#218838;border-color:#1e7e34}.additional-line{background:#f8f9fa;border:1px solid #e9ecef;border-left:4px solid #007bff;border-radius:6px;margin-bottom:15px;padding:15px}.line-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.line-header h5{font-size:13px;margin:0}.line-header h5,.line-number{color:#495057;font-weight:600}.line-number{font-size:12px}.remove-line-button{background:#dc3545;border:1px solid #dc3545;border-radius:3px;color:#fff;cursor:pointer;font-size:10px;padding:4px 8px;transition:all .2s ease}.remove-line-button:hover{background:#c82333;border-color:#bd2130}.line-controls{display:flex;flex-direction:column;gap:8px}.empty-lines{background:#f8f9fa;border:1px dashed #dee2e6;border-radius:6px;color:#6c757d;font-style:italic;padding:20px;text-align:center}.legacy-content{border-top:1px solid #dee2e6;padding-top:15px}.legacy-content h5{color:#6c757d;font-size:12px;margin:0 0 10px}.typography-visibility{margin-bottom:20px}.visibility-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;margin-bottom:15px;padding-bottom:8px}.visibility-header h5{color:#495057;font-size:14px;margin:0}.visibility-grid{grid-gap:8px;display:grid;gap:8px;grid-template-columns:1fr}.visibility-item{align-items:center;background:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;display:flex;justify-content:space-between;padding:8px 12px}.visibility-label{color:#495057;font-size:12px;font-weight:500}.visibility-toggle{display:inline-block;height:20px;position:relative;width:34px}.visibility-toggle input{height:0;opacity:0;width:0}.visibility-slider{background-color:#ccc;border-radius:20px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.3s}.visibility-slider:before{background-color:#fff;border-radius:50%;bottom:3px;content:"";height:14px;left:3px;position:absolute;transition:.3s;width:14px}input:checked+.visibility-slider{background-color:#007bff}input:checked+.visibility-slider:before{transform:translateX(14px)}.color-button:focus,.control-input:focus,.control-select:focus,.format-button:focus,.preset-button:focus{outline:2px solid #007bff;outline-offset:2px}.toolbar-content::-webkit-scrollbar{display:none;width:0}.toolbar-content::-webkit-scrollbar-thumb,.toolbar-content::-webkit-scrollbar-track{display:none}.toolbar-content::-webkit-scrollbar-thumb:hover{display:none}[data-theme=dark] .toolbar-tabs{background:var(--bg-tertiary);border-bottom-color:var(--border-primary)}[data-theme=dark] .toolbar-tab{border-bottom-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .toolbar-tab:hover{background:var(--bg-hover)}[data-theme=dark] .toolbar-tab.active{background:var(--color-primary)}[data-theme=dark] .design-toolbar .section-header{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .design-toolbar .section-header h3{color:var(--text-primary)}[data-theme=dark] .design-toolbar .section-header p{color:var(--text-secondary)}[data-theme=dark] .control-group{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .control-group h4,[data-theme=dark] .control-label{color:var(--text-primary)}[data-theme=dark] .control-input,[data-theme=dark] .control-select{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .size-unit,[data-theme=dark] .unit{color:var(--text-secondary)}[data-theme=dark] .preset-button{background:var(--bg-secondary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .preset-button:hover{background:var(--bg-hover);border-color:var(--border-secondary)}[data-theme=dark] .format-button{background:var(--bg-secondary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .format-button:hover{background:var(--bg-hover);border-color:var(--border-secondary)}[data-theme=dark] .format-button.active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}[data-theme=dark] .color-button{border-color:var(--border-primary)}[data-theme=dark] .color-picker-popup{background:var(--modal-bg);border-color:var(--border-primary)}[data-theme=dark] .color-picker{background:var(--input-bg);border-color:var(--border-primary)}[data-theme=dark] .color-picker:hover{border-color:var(--color-primary)}[data-theme=dark] .color-input{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .preset-section label,[data-theme=dark] .radio-label{color:var(--text-primary)}[data-theme=dark] .content-label,[data-theme=dark] .margin-input label{color:var(--text-secondary)}[data-theme=dark] .content-input,[data-theme=dark] .margin-input input{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .content-input::placeholder{color:var(--text-tertiary)}[data-theme=dark] .content-section,[data-theme=dark] .header-content-grid{background:#0000}[data-theme=dark] .header-content-compact .align-btn{background:var(--bg-tertiary);border-color:var(--border-primary);color:var(--text-secondary)}[data-theme=dark] .header-content-compact .align-btn:hover{background:var(--bg-secondary)}[data-theme=dark] .header-content-compact .align-btn.active{background:#0d6efd;border-color:#0d6efd;color:#fff}[data-theme=dark] .header-content-compact .content-input-wide{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .header-content-compact .content-input-wide::placeholder{color:var(--text-tertiary)}[data-theme=dark] .style-controls{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .variables-info{background:#1976d226;border-color:#1976d24d}[data-theme=dark] .variables-info h5{color:#64b5f6}[data-theme=dark] .toolbar-actions{background:var(--bg-tertiary);border-top-color:var(--border-primary)}[data-theme=dark] .reset-button{background:var(--bg-secondary);border-color:var(--color-danger);color:var(--color-danger)}[data-theme=dark] .reset-button:hover{background:var(--color-danger);color:#fff}[data-theme=dark] .content-header{border-bottom-color:var(--border-primary)}[data-theme=dark] .content-header h5{color:var(--text-primary)}[data-theme=dark] .add-line-section{border-top-color:var(--border-primary)}[data-theme=dark] .additional-line{background:var(--bg-tertiary);border-color:var(--border-primary);border-left-color:var(--color-primary)}[data-theme=dark] .line-header h5,[data-theme=dark] .line-number{color:var(--text-primary)}[data-theme=dark] .empty-lines{background:var(--bg-tertiary);border-color:var(--border-secondary);color:var(--text-secondary)}[data-theme=dark] .legacy-content{border-top-color:var(--border-primary)}[data-theme=dark] .legacy-content h5{color:var(--text-secondary)}[data-theme=dark] .visibility-item{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .visibility-label{color:var(--text-primary)}[data-theme=dark] .toolbar-content::-webkit-scrollbar{display:none!important;width:0!important}[data-theme=dark] .toolbar-content::-webkit-scrollbar-thumb,[data-theme=dark] .toolbar-content::-webkit-scrollbar-track{display:none!important}[data-theme=dark] .toolbar-content::-webkit-scrollbar-thumb:hover{display:none!important}[data-theme=dark] .checkbox-label,[data-theme=dark] .checkbox-label span{color:var(--text-primary)!important}[data-theme=dark] .control-row label,[data-theme=dark] .control-row span{color:var(--text-primary)}[data-theme=dark] .control-row p{color:var(--text-secondary)!important}[data-theme=dark] .unit-selector{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .unit-selector:hover{background:var(--input-bg);border-color:var(--border-secondary)}[data-theme=dark] .unit-selector:focus{background:var(--input-bg);border-color:var(--color-primary)}[data-theme=dark] .margin-input .unit-label{color:var(--text-secondary)}[data-theme=dark] .control-group:hover{background:var(--bg-tertiary)}[data-theme=dark] .control-row .control-select,[data-theme=dark] .control-row select{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .control-row select option{background:var(--bg-secondary);color:var(--text-primary)}[data-theme=dark] .checkbox-label,[data-theme=dark] .control-row [style*=flex],[data-theme=dark] .control-row>div,[data-theme=dark] .toggle-container,[data-theme=dark] .toggle-switch{background:#0000!important;background-color:initial!important}[data-theme=dark] .toggle-slider{background-color:#555!important}[data-theme=dark] input:checked+.toggle-slider{background-color:var(--color-primary)!important}[data-theme=dark] .visibility-slider{background-color:#555!important}[data-theme=dark] input:checked+.visibility-slider{background-color:var(--color-primary)!important}[data-theme=dark] .control-group div{background-color:initial}[data-theme=dark] .control-group .additional-line,[data-theme=dark] .control-group .empty-lines,[data-theme=dark] .control-group .style-controls,[data-theme=dark] .control-group .variables-info{background:var(--bg-tertiary)}[data-theme=dark] .typography-visibility div[style*=background]{background:var(--bg-tertiary)!important}[data-theme=dark] .typography-visibility div[style*=background] label{color:var(--text-secondary)!important}[data-theme=dark] .typography-visibility div[style*=background] select{background:var(--input-bg)!important;border-color:var(--border-primary)!important;color:var(--text-primary)!important}[data-theme=dark] .typography-visibility div[style*=background] select option{background:var(--bg-secondary);color:var(--text-primary)}[data-theme=dark] .content-controls div[style*="background: #f5f5f5"],[data-theme=dark] .content-controls div[style*="background: rgb(245, 245, 245)"]{background:var(--bg-tertiary)!important}[data-theme=dark] .expand-collapse-btn{background:var(--bg-secondary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .expand-collapse-btn:hover{background:var(--bg-hover);border-color:var(--border-secondary)}[data-theme=dark] .control-group.collapsible.collapsed .collapsible-header{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .control-group.collapsible.expanded .collapsible-header{border-bottom-color:var(--border-primary)}[data-theme=dark] .collapsible-header,[data-theme=dark] .collapsible-header h4{color:var(--text-primary)}[data-theme=dark] .collapse-icon,[data-theme=dark] .metadata-description{color:var(--text-secondary)}[data-theme=dark] .metadata-option .checkbox-label,[data-theme=dark] .metadata-option .checkbox-label span{color:var(--text-primary)}[data-theme=dark] .metadata-format-section{background:var(--bg-tertiary)}[data-theme=dark] .metadata-format-section .control-label{color:var(--text-primary)}[data-theme=dark] .metadata-format-section .control-select{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .metadata-styling-section{border-top-color:var(--border-primary)}[data-theme=dark] .metadata-styling-section h5{color:var(--text-primary)}.nested-options-panel{background:#f5f5f5;border-radius:4px;margin-left:20px;margin-top:8px;padding:10px}.nested-hint,.nested-label{color:#666;font-size:10px}[data-theme=dark] .nested-options-panel{background:var(--bg-tertiary)}[data-theme=dark] .nested-hint,[data-theme=dark] .nested-label{color:var(--text-secondary)}[data-theme=dark] .nested-options-panel .control-input,[data-theme=dark] .nested-options-panel .control-select{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}.docx-preview-container{align-items:center;background:#e0e0e0!important;background-color:#e0e0e0!important;box-sizing:border-box;display:flex;flex-direction:column;height:100%;overflow:auto;padding:20px;position:relative;width:100%}.docx-preview-overlay{align-items:center;background-color:#e0e0e0;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:10}.docx-preview-content-wrapper{align-items:center;background:#e0e0e0!important;background-color:#e0e0e0!important;display:flex;flex-direction:column;min-height:100%!important;padding:20px 0!important;width:100%}.docx-preview-container section.docx-preview-content,.docx-preview-content-wrapper>section.docx-preview-content{background:#fff!important;background-color:#fff!important;border:1px solid #bbb!important;box-shadow:0 4px 12px #0003!important;box-sizing:border-box!important;margin-bottom:40px!important;position:relative!important}.docx-preview-content-wrapper>section.docx-preview-content:last-child{margin-bottom:20px!important}.docx-preview-loading{align-items:center;color:#666;display:flex;flex-direction:column;height:300px;justify-content:center}.loading-spinner{border:3px solid #e0e0e0;border-top-color:#007bff;height:40px;margin-bottom:15px;width:40px}.docx-preview-loading p{font-size:14px;margin:0}.docx-preview-error{align-items:center;color:#dc3545;display:flex;flex-direction:column;height:300px;justify-content:center;padding:20px;text-align:center}.error-icon{font-size:48px;margin-bottom:15px}.docx-preview-error h3{font-size:18px;margin:0 0 10px}.docx-preview-error p{color:#666;font-size:14px;margin:0 0 15px}.retry-button{background:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;padding:8px 20px;transition:background .2s}.retry-button:hover{background:#0056b3}.docx-preview-empty{align-items:center;color:#999;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.docx-preview-empty p{font-size:16px;margin:0}.docx-preview-empty .hint{color:#bbb;font-size:13px;margin-top:8px}[data-theme=dark] .docx-preview-container,[data-theme=dark] .docx-preview-content-wrapper,[data-theme=dark] .docx-preview-overlay{background:#1e2124!important;background-color:#1e2124!important}[data-theme=dark] .docx-preview-container section.docx-preview-content,[data-theme=dark] .docx-preview-content-wrapper>section.docx-preview-content{background:#fff!important;background-color:#fff!important;color:#000!important}[data-theme=dark] .docx-preview-container section.docx-preview-content{color:#000}.server-pdf-preview-container{background:#e0e0e0;display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.server-pdf-preview-overlay{align-items:center;background-color:#e0e0e0;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:10}.server-pdf-preview-iframe{background:#fff;border:none;height:100%;width:100%}.server-pdf-preview-loading{align-items:center;color:#666;display:flex;flex-direction:column;justify-content:center}.server-pdf-preview-loading .loading-spinner{animation:spin 1s linear infinite;border:3px solid #e0e0e0;border-radius:50%;border-top-color:#007bff;height:40px;margin-bottom:15px;width:40px}.server-pdf-preview-loading p{color:#666;font-size:14px;margin:0}.server-pdf-preview-error{align-items:center;color:#dc3545;display:flex;flex-direction:column;justify-content:center;max-width:400px;padding:20px;text-align:center}.server-pdf-preview-error .error-icon{font-size:48px;margin-bottom:15px}.server-pdf-preview-error h3{font-size:18px;margin:0 0 10px}.server-pdf-preview-error p{color:#666;font-size:14px;margin:0 0 10px}.server-pdf-preview-error .error-hint{color:#888;font-size:12px;line-height:1.5;margin-top:10px}.server-pdf-preview-error .retry-button{background:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;margin-top:15px;padding:8px 20px;transition:background .2s}.server-pdf-preview-error .retry-button:hover{background:#0056b3}.server-pdf-preview-empty{align-items:center;color:#999;display:flex;flex-direction:column;justify-content:center;text-align:center}.server-pdf-preview-empty p{font-size:16px;margin:0}.server-pdf-preview-empty .hint{color:#bbb;font-size:13px;margin-top:8px}[data-theme=dark] .server-pdf-preview-container,[data-theme=dark] .server-pdf-preview-overlay{background:#1e2124!important;background-color:#1e2124!important}[data-theme=dark] .server-pdf-preview-loading p{color:#aaa}[data-theme=dark] .server-pdf-preview-loading .loading-spinner{border-color:#007bff #444 #444}[data-theme=dark] .server-pdf-preview-error p{color:#aaa}[data-theme=dark] .server-pdf-preview-empty p,[data-theme=dark] .server-pdf-preview-error .error-hint{color:#888}[data-theme=dark] .server-pdf-preview-empty .hint{color:#666}.template-manager{background:#fff;display:flex;flex-direction:column;height:100%}.template-header{align-items:center;background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:20px}.template-header h3{color:#495057;font-size:18px;font-weight:600;margin:0}.template-actions{display:flex;gap:10px}.cleanup-button,.import-button,.reset-button,.save-button{background:#fff;border:1px solid #dee2e6;border-radius:6px;color:#495057;cursor:pointer;font-size:12px;font-weight:500;padding:8px 16px;transition:all .2s ease}.save-button{background:#007bff;border-color:#007bff;color:#fff}.save-button:hover{background:#0056b3;border-color:#0056b3}.reset-button:hover{background:#e9ecef;border-color:#adb5bd}.import-button{background:#28a745;border-color:#28a745;color:#fff}.import-button:hover{background:#218838;border-color:#1e7e34}.cleanup-button{background:#fd7e14;border-color:#fd7e14;color:#fff}.cleanup-button:hover{background:#e96a00;border-color:#dc6200}.cleanup-button:disabled,.import-button:disabled,.reset-button:disabled,.save-button:disabled{cursor:not-allowed;opacity:.6}.error-message{background:#f8d7da;border-bottom:1px solid #f5c6cb;justify-content:space-between;padding:12px 20px}.close-error,.error-message{align-items:center;color:#721c24;display:flex}.close-error{background:none;border:none;cursor:pointer;font-size:18px;height:20px;justify-content:center;padding:0;width:20px}.success-message{background:#d4edda;border-bottom:1px solid #c3e6cb;font-size:14px;justify-content:space-between;padding:12px 20px}.close-success,.success-message{align-items:center;color:#155724;display:flex}.close-success{background:none;border:none;cursor:pointer;font-size:18px;height:20px;justify-content:center;padding:0;width:20px}.loading-indicator{align-items:center;color:#6c757d;display:flex;font-style:italic;gap:12px;justify-content:center;padding:40px 20px}.spinner{border:2px solid #f3f3f3;height:20px;width:20px}.template-list{flex:1 1;overflow-y:auto;padding:20px}.section-title{color:#495057;font-size:14px;font-weight:600;margin:0 0 12px;padding:0}.default-template-section{border-bottom:1px solid #e9ecef;margin-bottom:24px;padding-bottom:20px}.default-template-section .section-title{color:#f59e0b}.no-default-message{background:#f8f9fa;border:1px dashed #dee2e6;border-radius:8px;padding:16px 20px;text-align:center}.no-default-message p{color:#6c757d;font-size:14px;margin:0}.all-templates-section{margin-top:8px}.all-templates-section .section-title{margin-bottom:16px}.template-card.system-template{background:linear-gradient(135deg,#f8f9fa,#e9ecef);border:1px solid #dee2e6}.template-card.system-template:hover{border-color:#adb5bd}.default-badge{background:#f59e0b;border-radius:4px;color:#fff;font-size:11px;font-weight:500;padding:2px 8px}[data-theme=dark] .default-template-section{border-bottom-color:#3a3a5c;border-bottom-color:var(--border-color,#3a3a5c)}[data-theme=dark] .section-title{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .default-template-section .section-title{color:#fbbf24}[data-theme=dark] .no-default-message{background:#252542;background:var(--bg-tertiary,#252542);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c)}[data-theme=dark] .no-default-message p{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .template-card.system-template{background:linear-gradient(135deg,#252542,#1e1e38);background:linear-gradient(135deg,var(--bg-tertiary,#252542) 0,var(--bg-secondary,#1e1e38) 100%);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c)}[data-theme=dark] .template-card.system-template:hover{border-color:#4a4a6a;border-color:var(--border-hover,#4a4a6a)}[data-theme=dark] .default-badge{background:#f59e0b;color:#1a1a2e}.empty-state{background:#f8f9fa;border:1px dashed #dee2e6;color:#6c757d;margin:10px 0}.empty-icon{font-size:48px;opacity:.5}.empty-state h4{color:#495057;font-size:18px;margin:0 0 10px}.empty-state p{font-size:14px}.template-card{background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 2px 4px #0000000d;display:flex;margin-bottom:15px;overflow:visible;transition:all .2s ease}.template-card:hover{border-color:#007bff;box-shadow:0 4px 8px #0000001a}.template-card.default-template{background:#f8f9fa;border:2px solid #007bff}.template-card.default-template:hover{background:#e9ecef;border-color:#0056b3}.template-card.default-template .builtin-badge{background:#007bff}.template-preview{align-items:center;background:#f8f9fa;border-right:1px solid #e9ecef;display:flex;justify-content:center;min-width:80px;padding:15px 10px;width:80px}.preview-mini{background:#fff;border:1px solid #dee2e6;border-radius:3px;height:60px;overflow:hidden;padding:4px;position:relative;width:100%}.template-info{display:flex;flex:1 1;flex-direction:column;justify-content:center;padding:15px}.template-info h4{color:#495057;font-size:16px;font-weight:600;margin:0 0 6px}.template-description{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#6c757d;display:-webkit-box;font-size:13px;line-height:1.4;margin:0 0 8px;max-height:2.8em;overflow:hidden;text-overflow:ellipsis}.template-meta{align-items:center;color:#6c757d;display:flex;font-size:12px;gap:10px}.builtin-badge{background:#28a745;border-radius:3px;color:#fff;font-size:10px;font-weight:500;padding:2px 6px}.template-card .template-actions{align-items:center;background:#00000008;border-radius:8px 0 0 8px;border-right:1px solid #e9ecef;display:flex;flex-direction:column;flex-shrink:0;gap:4px;justify-content:center;min-width:38px;padding:8px}.template-card .default-button,.template-card .delete-button,.template-card .duplicate-button,.template-card .edit-button,.template-card .export-button,.template-card .load-button{align-items:center;background:#fff;border:1px solid #dee2e6;border-radius:5px;cursor:pointer;display:flex;flex-shrink:0;font-size:12px;height:28px;justify-content:center;transition:all .2s ease;width:28px}.template-card .load-button:hover{background:#007bff;border-color:#007bff;color:#fff}.template-card .edit-button:hover{background:#ffc107;border-color:#ffc107;color:#212529}.template-card .duplicate-button:hover{background:#28a745;border-color:#28a745;color:#fff}.template-card .delete-button:hover{background:#dc3545;border-color:#dc3545;color:#fff}.template-card .export-button:hover{background:#17a2b8;border-color:#17a2b8;color:#fff}.template-card .default-button{background:#0000;border-color:#ffc107;color:#ffc107}.template-card .default-button:hover{background:#ffc107;color:#fff}.template-card .default-button.is-default{background:#ffc107;color:#fff;cursor:default}.warning-text{color:#dc3545;font-size:13px;font-style:italic;margin:10px 0 0}.cancel-button,.confirm-button,.delete-confirm-button,.secondary-button,.warning-button{border:1px solid #dee2e6;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:all .2s ease}.delete-confirm-button{background:#dc3545;border-color:#dc3545;color:#fff}.delete-confirm-button:hover{background:#c82333;border-color:#bd2130}.confirm-button:disabled,.delete-confirm-button:disabled,.secondary-button:disabled,.warning-button:disabled{cursor:not-allowed;opacity:.6}@media (max-width:768px){.template-header{flex-direction:column;gap:15px;text-align:center}.template-actions{justify-content:center}.template-card{flex-direction:column}.template-preview{border-bottom:1px solid #e9ecef;border-right:none;height:60px;min-width:auto;width:100%}.template-card .template-actions{flex-direction:row;justify-content:center;min-width:auto}.dialog{margin:20px;width:95%}.dialog-actions{flex-direction:column}.cancel-button,.confirm-button,.delete-confirm-button,.secondary-button,.warning-button{width:100%}}.template-list::-webkit-scrollbar{width:8px}.template-list::-webkit-scrollbar-track{background:#0000;border-radius:4px}.template-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.template-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.cancel-button:focus,.confirm-button:focus,.delete-button:focus,.delete-confirm-button:focus,.duplicate-button:focus,.edit-button:focus,.load-button:focus,.reset-button:focus,.save-button:focus,.secondary-button:focus,.warning-button:focus{outline:2px solid #007bff;outline-offset:2px}[data-theme=dark] .template-manager{background:#1a1a2e;background:var(--bg-primary,#1a1a2e)}[data-theme=dark] .template-header{background:#16213e;background:var(--bg-secondary,#16213e);border-bottom-color:#3a3a5c;border-bottom-color:var(--border-color,#3a3a5c)}[data-theme=dark] .template-header h3{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .save-button{background:#3b82f6;border-color:#3b82f6;color:#fff}[data-theme=dark] .save-button:hover{background:#2563eb;border-color:#2563eb}[data-theme=dark] .reset-button{background:#252542;background:var(--bg-tertiary,#252542);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .reset-button:hover{background:#2d2d4a;background:var(--bg-hover,#2d2d4a);border-color:#4a4a6a;border-color:var(--border-hover,#4a4a6a)}[data-theme=dark] .template-list{background:#1a1a2e;background:var(--bg-primary,#1a1a2e)}[data-theme=dark] .template-card{background:#16213e;background:var(--bg-secondary,#16213e);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c);box-shadow:0 2px 4px #0000004d}[data-theme=dark] .template-card:hover{border-color:#3b82f6;box-shadow:0 4px 8px #0006}[data-theme=dark] .template-card.default-template{background:#252542;background:var(--bg-tertiary,#252542);border-color:#3b82f6}[data-theme=dark] .template-card.default-template:hover{background:#2d2d4a;background:var(--bg-hover,#2d2d4a);border-color:#2563eb}[data-theme=dark] .template-preview{background:#252542;background:var(--bg-tertiary,#252542);border-right-color:#3a3a5c;border-right-color:var(--border-color,#3a3a5c)}[data-theme=dark] .preview-mini{background:#1a1a2e;background:var(--bg-primary,#1a1a2e);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c)}[data-theme=dark] .template-info h4{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .template-description{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .template-meta{color:grey;color:var(--text-muted,grey)}[data-theme=dark] .builtin-badge{background:#22c55e;color:#fff}[data-theme=dark] .template-card.default-template .builtin-badge{background:#3b82f6}[data-theme=dark] .template-card .template-actions{background:#ffffff08;border-right-color:#3a3a5c;border-right-color:var(--border-color,#3a3a5c)}[data-theme=dark] .template-card .delete-button,[data-theme=dark] .template-card .duplicate-button,[data-theme=dark] .template-card .edit-button,[data-theme=dark] .template-card .export-button,[data-theme=dark] .template-card .load-button{background:#252542;background:var(--bg-tertiary,#252542);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .template-card .load-button:hover{background:#3b82f6;border-color:#3b82f6;color:#fff}[data-theme=dark] .template-card .edit-button:hover{background:#f59e0b;border-color:#f59e0b;color:#1a1a2e}[data-theme=dark] .template-card .duplicate-button:hover{background:#22c55e;border-color:#22c55e;color:#fff}[data-theme=dark] .template-card .delete-button:hover{background:#ef4444;border-color:#ef4444;color:#fff}[data-theme=dark] .template-card .default-button{border-color:#f59e0b;color:#f59e0b}[data-theme=dark] .template-card .default-button.is-default,[data-theme=dark] .template-card .default-button:hover{background:#f59e0b;color:#1a1a2e}[data-theme=dark] .dialog-overlay{background:#000000b3}[data-theme=dark] .dialog{background:#16213e;background:var(--bg-secondary,#16213e);box-shadow:0 4px 20px #00000080}[data-theme=dark] .dialog-header{background:#252542;background:var(--bg-tertiary,#252542);border-bottom-color:#3a3a5c;border-bottom-color:var(--border-color,#3a3a5c)}[data-theme=dark] .dialog-header h3{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .close-dialog{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .close-dialog:hover{background:#2d2d4a;background:var(--bg-hover,#2d2d4a)}[data-theme=dark] .close-dialog:hover,[data-theme=dark] .dialog-content,[data-theme=dark] .form-group label{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .form-input,[data-theme=dark] .form-textarea{background:#1a1a2e;background:var(--bg-primary,#1a1a2e);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .form-input:focus,[data-theme=dark] .form-textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f633}[data-theme=dark] .form-input::placeholder,[data-theme=dark] .form-textarea::placeholder{color:grey;color:var(--text-muted,grey)}[data-theme=dark] .dialog-actions{background:#252542;background:var(--bg-tertiary,#252542);border-top-color:#3a3a5c;border-top-color:var(--border-color,#3a3a5c)}[data-theme=dark] .cancel-button{background:#1a1a2e;background:var(--bg-primary,#1a1a2e);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c);color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .cancel-button:hover{background:#2d2d4a;background:var(--bg-hover,#2d2d4a);border-color:#4a4a6a;border-color:var(--border-hover,#4a4a6a);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .confirm-button{background:#3b82f6;border-color:#3b82f6}[data-theme=dark] .confirm-button:hover{background:#2563eb;border-color:#2563eb}[data-theme=dark] .delete-confirm-button{background:#ef4444;border-color:#ef4444}[data-theme=dark] .delete-confirm-button:hover{background:#dc2626;border-color:#dc2626}[data-theme=dark] .warning-text{color:#ef4444}[data-theme=dark] .empty-state{background:#252542;background:var(--bg-tertiary,#252542);border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c);color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .empty-state h4{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .empty-state p,[data-theme=dark] .loading-indicator{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .spinner{border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c);border-top-color:#3b82f6}[data-theme=dark] .error-message{background:#ef444433;border-bottom-color:#ef44444d;color:#fca5a5}[data-theme=dark] .close-error{color:#fca5a5}[data-theme=dark] .success-message{background:#22c55e33;border-bottom-color:#22c55e4d;color:#86efac}[data-theme=dark] .close-success{color:#86efac}[data-theme=dark] .import-button{background:#22c55e;border-color:#22c55e;color:#fff}[data-theme=dark] .import-button:hover{background:#16a34a;border-color:#16a34a}[data-theme=dark] .template-card .export-button:hover{background:#0891b2;border-color:#0891b2;color:#fff}[data-theme=dark] .template-list::-webkit-scrollbar-track{background:#0000}[data-theme=dark] .template-list::-webkit-scrollbar-thumb{background:#3a3a5c;background:var(--border-color,#3a3a5c)}[data-theme=dark] .template-list::-webkit-scrollbar-thumb:hover{background:#4a4a6a;background:var(--border-hover,#4a4a6a)}.cleanup-dialog{max-width:600px}.cleanup-dialog .dialog-content{max-height:60vh;overflow-y:auto}.cleanup-intro{background:#fff3cd;border:1px solid #ffc107;border-radius:6px;color:#856404;font-size:14px;margin:0 0 20px;padding:12px}.duplicate-groups{display:flex;flex-direction:column;gap:20px}.duplicate-group{border:1px solid #e9ecef;border-radius:8px;overflow:hidden}.group-name{background:#f8f9fa;border-bottom:1px solid #e9ecef;color:#495057;font-size:14px;font-weight:600;margin:0;padding:12px 15px}.duplicate-items{display:flex;flex-direction:column}.duplicate-item{align-items:center;border-bottom:1px solid #e9ecef;display:flex;gap:12px;padding:10px 15px;transition:background .2s ease}.duplicate-item:last-child{border-bottom:none}.duplicate-item.newest{background:#e8f5e9}.duplicate-item.selected-for-deletion{background:#ffebee}.duplicate-checkbox{align-items:center;cursor:pointer;display:flex}.duplicate-checkbox input[type=checkbox]{cursor:pointer;height:18px;width:18px}.duplicate-info{align-items:center;display:flex;flex:1 1;gap:10px}.duplicate-date{color:#6c757d;font-size:13px}.newest-badge{background:#28a745}.delete-badge,.newest-badge{border-radius:4px;color:#fff;font-size:11px;font-weight:500;padding:2px 8px}.delete-badge{background:#dc3545}.cleanup-summary{background:#f8f9fa;border-radius:6px;color:#495057;font-size:14px;margin:20px 0 0;padding:12px;text-align:center}[data-theme=dark] .cleanup-intro{background:#f59e0b33;border-color:#f59e0b66;color:#fcd34d}[data-theme=dark] .duplicate-group{border-color:#3a3a5c;border-color:var(--border-color,#3a3a5c)}[data-theme=dark] .group-name{background:#252542;background:var(--bg-tertiary,#252542);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .duplicate-item,[data-theme=dark] .group-name{border-bottom-color:#3a3a5c;border-bottom-color:var(--border-color,#3a3a5c)}[data-theme=dark] .duplicate-item.newest{background:#22c55e26}[data-theme=dark] .duplicate-item.selected-for-deletion{background:#ef444426}[data-theme=dark] .duplicate-date{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .newest-badge{background:#22c55e}[data-theme=dark] .delete-badge{background:#ef4444}[data-theme=dark] .cleanup-summary{background:#252542;background:var(--bg-tertiary,#252542);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .cleanup-button{background:#f59e0b;border-color:#f59e0b;color:#1a1a2e}[data-theme=dark] .cleanup-button:hover{background:#d97706;border-color:#d97706}.quiz-designer-page{box-sizing:border-box}.quiz-designer{background:#f8f9fa;display:flex;flex-direction:column;height:100%}.quiz-designer-header{align-items:center;background:#fff;border-bottom:1px solid #dee2e6;box-shadow:0 2px 4px #0000000d;display:flex;flex-wrap:nowrap;justify-content:space-between;min-height:60px;overflow:visible;padding:12px 20px;z-index:100}.header-left{align-items:center;display:flex;flex:0 1 auto;gap:15px;min-width:0}.header-left h2{color:#495057;font-size:20px;font-weight:600;margin:0;white-space:nowrap}.quiz-title{color:#6c757d;font-size:14px;font-style:italic;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-tabs{display:flex;flex-shrink:0;gap:8px}.tab-button{background:#e9ecef;border:1px solid #dee2e6;border-radius:6px;color:#495057;cursor:pointer;font-size:13px;font-weight:500;padding:6px 14px;transition:all .2s ease;white-space:nowrap}.tab-button:hover{background:#dee2e6;border-color:#adb5bd}.tab-button.active{background:#007bff;border-color:#007bff;color:#fff}.header-right{align-items:center;display:flex;flex:0 0 auto;margin-left:auto}.header-actions{flex-wrap:nowrap;gap:8px}.action-button{align-items:center;background:#fff;border:1px solid #dee2e6;border-radius:6px;color:#495057;display:flex;flex-shrink:0;font-size:13px;font-weight:500;gap:4px;padding:6px 12px;text-decoration:none;transition:all .2s ease;white-space:nowrap}.action-button:hover{background:#f8f9fa;border-color:#adb5bd;color:#495057;text-decoration:none}.redo-button,.undo-button{background:#f8f9fa;border-color:#dee2e6;color:#495057}.redo-button:hover:not(:disabled),.undo-button:hover:not(:disabled){background:#e9ecef;border-color:#adb5bd}.action-button.disabled,.action-button:disabled{background:#f8f9fa;border-color:#dee2e6;color:#adb5bd;cursor:not-allowed;opacity:.5;pointer-events:none}[data-theme=dark] .redo-button,[data-theme=dark] .undo-button{background:#3d3d3d;background:var(--bg-tertiary,#3d3d3d);border-color:#555;border-color:var(--border-color,#555);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .redo-button:hover:not(:disabled),[data-theme=dark] .undo-button:hover:not(:disabled){background:#4d4d4d;background:var(--bg-secondary,#4d4d4d);border-color:#666;border-color:var(--border-hover,#666)}[data-theme=dark] .action-button.disabled,[data-theme=dark] .action-button:disabled{background:#3d3d3d;background:var(--bg-tertiary,#3d3d3d);border-color:#444;border-color:var(--border-color,#444);color:#888;color:var(--text-muted,#888);opacity:.4}.preview-toggle.active{background:#28a745;border-color:#28a745;color:#fff}.export-button{background:#17a2b8;border-color:#17a2b8;color:#fff}.export-button:hover{background:#138496;border-color:#117a8b;color:#fff}.close-button{background:#dc3545;border-color:#dc3545;color:#fff;font-size:16px;justify-content:center;min-width:34px;padding:6px 10px}.close-button:hover{background:#c82333;border-color:#bd2130;color:#fff}.quiz-designer-content{align-items:stretch;display:flex;flex:1 1;height:calc(100vh - 60px);overflow:hidden}.designer-controls{-ms-overflow-style:none;background:#fff;border-right:none;flex-shrink:0;max-width:650px;min-width:320px;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.designer-controls::-webkit-scrollbar{display:none;width:0}.designer-controls::-webkit-scrollbar-thumb,.designer-controls::-webkit-scrollbar-track{display:none}.designer-controls::-webkit-scrollbar-thumb:hover{display:none}.resize-handle{align-self:stretch;cursor:col-resize;flex-shrink:0;min-height:100%;position:relative;width:8px;z-index:10}.resize-handle,.resize-handle.resizing,.resize-handle:hover{background:#0000}.resize-handle.resizing:before,.resize-handle:before,.resize-handle:hover:before{display:none}.designer-preview{background:#e0e0e0;display:flex;flex:1 1;flex-direction:column;min-width:0;overflow:hidden;padding:0}.preview-type-toggle{background:#e0e0e0;border-radius:0;display:flex;flex-shrink:0;gap:4px;margin:0;padding:8px}.preview-type-btn{background:#0000;border:none;border-radius:6px;color:#495057;cursor:pointer;flex:1 1;font-size:13px;font-weight:500;padding:8px 12px;transition:all .2s ease;white-space:nowrap}.preview-type-btn:hover{background:#ffffff80}.preview-type-btn.active{background:#fff;box-shadow:0 1px 3px #0000001a;color:#007bff}.live-preview-container{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;display:flex;flex:1 1;flex-direction:column;min-height:100%;overflow:hidden}.quiz-designer-status{align-items:center;background:#e9ecef;border-top:1px solid #dee2e6;color:#6c757d;display:flex;font-size:12px;justify-content:space-between;padding:8px 20px}.status-left,.status-right{display:flex;gap:15px}.template-status{font-weight:500}.page-info,.question-count,.total-points{font-style:italic}.quiz-designer-error{align-items:center;color:#6c757d;display:flex;flex-direction:column;height:100vh;justify-content:center;text-align:center}.quiz-designer-error h3{color:#495057;margin:0 0 10px}.quiz-designer-error p{font-size:14px;margin:0}.quiz-designer-loading{align-items:center;color:#6c757d;display:flex;flex-direction:column;height:100vh;justify-content:center;text-align:center}.quiz-designer-loading .loading-spinner{animation:spin 1s linear infinite;border:3px solid #f3f3f3;border-radius:50%;border-top-color:#007bff;height:40px;margin-bottom:20px;width:40px}.quiz-designer-loading p{color:#6c757d;font-size:14px}@media (max-width:1200px){.quiz-title{display:none}}@media (max-width:1024px){.quiz-designer-content{flex-direction:column}.resize-handle{display:none}.designer-controls{border-bottom:1px solid #dee2e6;border-right:none;max-height:50vh;max-width:none}.designer-preview{flex:1 1;min-height:50vh}.header-left{gap:8px}.header-left h2{font-size:16px}.header-actions{gap:6px}.action-button{font-size:12px;padding:5px 8px}}@media (max-width:768px){.quiz-designer-header{flex-direction:column;gap:15px;padding:15px}.header-left{text-align:center;width:100%}.header-actions,.header-left{justify-content:center}.action-button{font-size:12px;padding:6px 12px}}.dialog-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.dialog{background:#fff;border-radius:8px;box-shadow:0 4px 6px #0000001a;max-height:90vh;max-width:500px;overflow:hidden;width:90%}.dialog-header{align-items:center;background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:20px}.dialog-header h3{color:#495057;font-size:18px;margin:0}.close-dialog{align-items:center;background:none;border:none;border-radius:4px;color:#6c757d;cursor:pointer;display:flex;font-size:24px;height:30px;justify-content:center;width:30px}.close-dialog:hover{background:#e9ecef}.dialog-content{padding:20px}.form-input,.form-textarea{background:#fff;border:1px solid #ced4da;border-radius:6px;box-sizing:border-box;font-size:14px;padding:10px 12px;transition:border-color .2s ease;width:100%}.form-input:focus,.form-textarea:focus{border-color:#007bff;box-shadow:0 0 0 3px #007bff1a;outline:none}.form-textarea{font-family:inherit;resize:vertical}.dialog-actions{background:#f8f9fa;border-top:1px solid #e9ecef;gap:12px;padding:20px}.cancel-button,.confirm-button,.secondary-button,.warning-button{border:1px solid #dee2e6;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:all .2s ease}.cancel-button{background:#fff;color:#6c757d}.cancel-button:hover{background:#e9ecef;border-color:#adb5bd}.confirm-button{background:#007bff;border-color:#007bff;color:#fff}.confirm-button:hover{background:#0056b3;border-color:#0056b3}.warning-button{background:#ffc107;border-color:#ffc107;color:#212529}.warning-button:hover{background:#e0a800;border-color:#d39e00}.secondary-button{background:#6c757d;border-color:#6c757d;color:#fff}.secondary-button:hover{background:#5a6268;border-color:#545b62}.confirm-button:disabled,.secondary-button:disabled,.warning-button:disabled{cursor:not-allowed;opacity:.6}.save-template-button{background:#28a745!important;border-color:#28a745!important;color:#fff!important;transition:all .3s ease!important}.save-template-button:hover{background:#218838!important;border-color:#1e7e34!important}.save-template-button.has-changes{animation:pulse-save 2s ease-in-out infinite;background:#ffc107!important;border-color:#ffc107!important;color:#212529!important}.save-template-button.has-changes:hover{animation:none;background:#e0a800!important;border-color:#d39e00!important}@keyframes pulse-save{0%,to{box-shadow:0 0 0 0 #ffc107b3}50%{box-shadow:0 0 0 6px #ffc10700}}[data-theme=dark] .quiz-designer-header{background:var(--navbar-bg);border-bottom-color:var(--border-primary)}[data-theme=dark] .header-left h2{color:var(--text-primary)}[data-theme=dark] .quiz-title{color:var(--text-secondary)}[data-theme=dark] .tab-button{background:var(--bg-tertiary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .tab-button:hover{background:var(--bg-hover);border-color:var(--border-secondary)}[data-theme=dark] .tab-button.active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}[data-theme=dark] .action-button{background:var(--bg-secondary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .action-button:hover{background:var(--bg-hover);border-color:var(--border-secondary);color:var(--text-primary)}[data-theme=dark] .preview-toggle.active{background:var(--color-success);border-color:var(--color-success);color:#fff}[data-theme=dark] .export-button{background:var(--color-info);border-color:var(--color-info);color:var(--text-inverse)}[data-theme=dark] .export-button:hover{background:#2bb4cc;border-color:#2bb4cc;color:var(--text-inverse)}[data-theme=dark] .close-button{background:var(--color-danger);border-color:var(--color-danger);color:#fff}[data-theme=dark] .close-button:hover{background:#c82333;border-color:#bd2130;color:#fff}[data-theme=dark] .designer-controls{background:var(--bg-secondary);border-right:none!important}[data-theme=dark] .designer-controls::-webkit-scrollbar{display:none!important;width:0!important}[data-theme=dark] .designer-controls::-webkit-scrollbar-thumb,[data-theme=dark] .designer-controls::-webkit-scrollbar-track{display:none!important}[data-theme=dark] .designer-controls::-webkit-scrollbar-thumb:hover{display:none!important}[data-theme=dark] .resize-handle,[data-theme=dark] .resize-handle.resizing,[data-theme=dark] .resize-handle:hover{background:#0000!important}[data-theme=dark] .resize-handle:before{display:none!important}[data-theme=dark] .designer-preview,[data-theme=dark] .preview-type-toggle{background:#1e2124}[data-theme=dark] .preview-type-btn{color:#adb5bd}[data-theme=dark] .preview-type-btn:hover{background:#ffffff1a}[data-theme=dark] .preview-type-btn.active{background:#3d4148;color:#fff}[data-theme=dark] .quiz-designer-status{background:var(--bg-secondary);border-top-color:var(--border-primary);color:var(--text-secondary)}[data-theme=dark] .quiz-designer-error h3{color:var(--text-primary)}[data-theme=dark] .quiz-designer-error,[data-theme=dark] .quiz-designer-loading,[data-theme=dark] .quiz-designer-loading p{color:var(--text-secondary)}[data-theme=dark] .dialog{background:var(--modal-bg)}[data-theme=dark] .dialog-header{background:var(--bg-secondary);border-bottom-color:var(--border-primary)}[data-theme=dark] .dialog-header h3{color:var(--text-primary)}[data-theme=dark] .close-dialog{color:var(--text-secondary)}[data-theme=dark] .close-dialog:hover{background:var(--bg-hover)}[data-theme=dark] .dialog-content{background:var(--modal-bg)}[data-theme=dark] .form-group label{color:var(--text-primary)}[data-theme=dark] .form-input,[data-theme=dark] .form-textarea{background:var(--input-bg);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .form-input:focus,[data-theme=dark] .form-textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #3d8bfd40}[data-theme=dark] .dialog-actions{background:var(--bg-secondary);border-top-color:var(--border-primary)}[data-theme=dark] .cancel-button{background:var(--bg-tertiary);border-color:var(--border-primary);color:var(--text-primary)}[data-theme=dark] .cancel-button:hover{background:var(--bg-hover);border-color:var(--border-secondary)}[data-theme=dark] .confirm-button{background:var(--color-primary);border-color:var(--color-primary);color:#fff}[data-theme=dark] .confirm-button:hover{background:#2d7ae0;border-color:#2d7ae0}[data-theme=dark] .warning-button{background:var(--color-warning);border-color:var(--color-warning);color:var(--text-inverse)}[data-theme=dark] .warning-button:hover{background:#e0a800;border-color:#d39e00}[data-theme=dark] .secondary-button{background:var(--text-secondary);border-color:var(--text-secondary);color:#fff}[data-theme=dark] .secondary-button:hover{background:#5a6268;border-color:#545b62}[data-theme=dark] .save-template-button{background:var(--color-success)!important;border-color:var(--color-success)!important;color:#fff!important}[data-theme=dark] .save-template-button:hover{background:#1e8e3e!important;border-color:#1c7d38!important}.preview-error-container{align-items:center;background:#f8f9fa;display:flex;justify-content:center;min-height:400px;padding:40px}.preview-error-content{background:#fff;border:2px solid #dc3545;border-radius:8px;box-shadow:0 4px 6px #0000001a;max-width:600px;padding:30px}.preview-error-content h3{color:#dc3545;font-size:20px;margin:0 0 15px}.preview-error-content p{color:#6c757d;line-height:1.5;margin:0 0 20px}.error-details{background:#f8f9fa;border-left:4px solid #dc3545;border-radius:4px;margin-bottom:20px;padding:15px}.error-details strong{color:#495057;display:block;font-size:14px;margin-bottom:8px}.error-details code{color:#dc3545;display:block;font-family:Courier New,monospace;font-size:13px;word-break:break-word}.error-actions{display:flex;gap:10px;margin-bottom:20px}.error-actions .btn{border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:all .2s ease}.error-actions .btn-primary{background:#007bff;color:#fff}.error-actions .btn-primary:hover{background:#0056b3}.error-actions .btn-secondary{background:#6c757d;color:#fff}.error-actions .btn-secondary:hover{background:#5a6268}.error-stack{border-top:1px solid #dee2e6;margin-top:20px;padding-top:20px}.error-stack summary{color:#6c757d;cursor:pointer;font-size:13px;font-weight:500;margin-bottom:10px}.error-stack summary:hover{color:#495057}.error-stack pre{background:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;color:#495057;font-size:12px;line-height:1.5;max-height:300px;overflow-x:auto;overflow-y:auto;padding:15px}[data-theme=dark] .preview-error-container{background:var(--bg-primary)}[data-theme=dark] .preview-error-content{background:var(--bg-card);border-color:var(--color-danger)}[data-theme=dark] .preview-error-content h3{color:var(--color-danger)}[data-theme=dark] .preview-error-content p{color:var(--text-secondary)}[data-theme=dark] .error-details{background:var(--bg-secondary);border-left-color:var(--color-danger)}[data-theme=dark] .error-details strong{color:var(--text-primary)}[data-theme=dark] .error-details code{color:var(--color-danger)}[data-theme=dark] .error-stack{border-top-color:var(--border-primary)}[data-theme=dark] .error-stack summary{color:var(--text-secondary)}[data-theme=dark] .error-stack summary:hover{color:var(--text-primary)}[data-theme=dark] .error-stack pre{background:var(--bg-secondary);border-color:var(--border-primary);color:var(--text-primary)}.json-question-importer{background:#1e1e1e;background:var(--bg-primary,#1e1e1e);border-radius:8px;margin:20px 0;padding:24px}.importer-header h3{color:#fff;color:var(--text-primary,#fff);font-size:18px;margin:0 0 8px}.importer-header p{color:#aaa;color:var(--text-secondary,#aaa);font-size:14px;margin:0}.importer-content{margin-top:20px}.file-upload-area{margin-bottom:20px}.file-upload-area input[type=file]{display:none}.upload-label{align-items:center;background:#2a2a2a;background:var(--bg-secondary,#2a2a2a);border:2px dashed #444;border:2px dashed var(--border-color,#444);border-radius:8px;cursor:pointer;display:flex;flex-direction:column;justify-content:center;padding:40px 20px;transition:all .2s ease}.upload-label:hover:not(.disabled){background:#4a9eff1a;border-color:#4a9eff;border-color:var(--primary-color,#4a9eff)}.upload-label.disabled{cursor:not-allowed;opacity:.6}.upload-icon{font-size:48px;margin-bottom:12px}.upload-text{color:#fff;color:var(--text-primary,#fff);font-size:16px}.import-progress{margin:20px 0}.progress-bar{background:#333;background:var(--bg-secondary,#333);margin-bottom:8px}.progress-fill{background:#4a9eff;background:var(--primary-color,#4a9eff)}.progress-text{color:#aaa;color:var(--text-secondary,#aaa);font-size:14px}.import-error{align-items:center;background:#ff64641a;border:1px solid #ff64644d;border-radius:6px;color:#ff6b6b;display:flex;gap:8px;margin:16px 0;padding:12px 16px}.import-results{background:#2a2a2a;background:var(--bg-secondary,#2a2a2a);border-radius:8px;margin-top:20px;padding:20px}.import-results h4{color:#fff;color:var(--text-primary,#fff);margin:0 0 16px}.results-summary{flex-wrap:wrap;gap:16px}.result-item{align-items:center;border-radius:6px;display:flex;flex-direction:column;min-width:100px;padding:12px 20px}.result-item.success{background:#4caf501a;border:1px solid #4caf504d}.result-item.skipped{background:#ffc1071a;border:1px solid #ffc1074d}.result-item.failed{background:#f443361a;border:1px solid #f443364d}.result-item.categories{background:#4a9eff1a;border:1px solid #4a9eff4d}.result-count{color:#fff;color:var(--text-primary,#fff);font-size:24px;font-weight:700}.result-label{color:#aaa;color:var(--text-secondary,#aaa);font-size:12px;margin-top:4px}.error-details{border-top:1px solid #444;border-top:1px solid var(--border-color,#444);margin-top:16px;padding-top:16px}.error-details h5{color:#ff6b6b;font-size:14px;margin:0 0 8px}.error-details ul{color:#aaa;color:var(--text-secondary,#aaa);font-size:13px;margin:0;padding-left:20px}.error-details li{margin-bottom:4px}.importer-help{border-top:1px solid #444;border-top:1px solid var(--border-color,#444);margin-top:24px;padding-top:24px}.importer-help h4{color:#fff;color:var(--text-primary,#fff);font-size:14px;margin:0 0 12px}.importer-help pre{background:#2a2a2a;background:var(--bg-secondary,#2a2a2a);border-radius:6px;color:#aaa;color:var(--text-secondary,#aaa);font-size:12px;margin:0;overflow-x:auto;padding:16px}.test-data-note{background:#4a9eff1a;border:1px solid #4a9eff4d;border-radius:6px;margin-bottom:16px;padding:12px 16px}.test-data-note code{background:#333;background:var(--bg-secondary,#333);border-radius:4px;color:#4a9eff;display:block;font-size:13px;margin:8px 0;padding:8px 12px}.test-data-note small{color:#aaa;color:var(--text-secondary,#aaa)}.upload-hint{color:#888;color:var(--text-secondary,#888);font-size:12px;margin-top:8px}.selected-files{background:#2a2a2a;background:var(--bg-secondary,#2a2a2a);border-radius:8px;margin-bottom:20px;padding:16px}.selected-files-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.selected-files-header h4{color:#fff;color:var(--text-primary,#fff);font-size:14px;margin:0}.clear-files-btn{background:#0000;border:1px solid #555;border:1px solid var(--border-color,#555);border-radius:4px;color:#aaa;color:var(--text-secondary,#aaa);cursor:pointer;font-size:12px;padding:4px 12px;transition:all .2s ease}.clear-files-btn:hover{background:#ff64641a;border-color:#ff6b6b;color:#ff6b6b}.file-list{list-style:none;margin:0;max-height:200px;overflow-y:auto;padding:0}.file-item{align-items:center;background:#1e1e1e;background:var(--bg-primary,#1e1e1e);border-radius:4px;display:flex;gap:8px;margin-bottom:6px;padding:8px 12px}.file-item:last-child{margin-bottom:0}.file-icon{font-size:16px}.file-name{color:#fff;color:var(--text-primary,#fff);flex:1 1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size{font-size:12px}.file-size,.remove-file-btn{color:#888;color:var(--text-secondary,#888)}.remove-file-btn{background:#0000;border:none;cursor:pointer;font-size:18px;line-height:1;padding:0 4px;transition:color .2s ease}.remove-file-btn:hover{color:#ff6b6b}.start-import-btn{background:#4a9eff;background:var(--primary-color,#4a9eff);border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;margin-top:12px;padding:12px 20px;transition:all .2s ease;width:100%}.start-import-btn:hover:not(:disabled){background:#3a8eef}.start-import-btn:disabled{cursor:not-allowed;opacity:.6}.progress-info{display:flex;justify-content:space-between;margin-bottom:8px}.current-file{color:#fff;color:var(--text-primary,#fff);font-size:13px;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-progress{color:#aaa;color:var(--text-secondary,#aaa);font-size:12px}.result-item.files{background:#9c27b01a;border:1px solid #9c27b04d}.file-results-breakdown{border-top:1px solid #444;border-top:1px solid var(--border-color,#444);margin-top:16px;padding-top:16px}.file-results-breakdown h5{color:#fff;color:var(--text-primary,#fff);font-size:13px;margin:0 0 10px}.file-results-breakdown ul{list-style:none;margin:0;padding:0}.file-results-breakdown li{align-items:center;background:#1e1e1e;background:var(--bg-primary,#1e1e1e);border-radius:4px;display:flex;font-size:12px;justify-content:space-between;margin-bottom:4px;padding:6px 10px}.file-results-breakdown li.file-success .file-name{color:#fff;color:var(--text-primary,#fff)}.file-results-breakdown li.file-error .file-name{color:#ff6b6b}.file-results-breakdown .file-status{color:#4caf50}.file-results-breakdown .file-status.error{color:#ff6b6b}.clear-local-data-section{background:#2a2a2a;background:var(--bg-secondary,#2a2a2a);border:1px solid #ff646433;border-radius:8px;margin-top:20px;padding:16px}.clear-local-data-section h4{color:#fff;color:var(--text-primary,#fff);font-size:14px;margin:0 0 8px}.clear-description{color:#aaa;color:var(--text-secondary,#aaa);font-size:13px;margin:0 0 12px}.clear-local-btn{background:#ff64641a;border:1px solid #ff646466;border-radius:6px;color:#ff6b6b;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:all .2s ease}.clear-local-btn:hover:not(:disabled){background:#ff646433;border-color:#ff6b6b}.clear-local-btn:disabled{cursor:not-allowed;opacity:.5}.clear-results{border-radius:6px;font-size:13px;margin-top:12px;padding:10px 14px}.clear-results.success{background:#4caf501a;border:1px solid #4caf504d;color:#4caf50}.clear-results.error{background:#ff64641a;border:1px solid #ff64644d;color:#ff6b6b}.import-mode-selector{background:#1e1e1e;background:var(--bg-primary,#1e1e1e);border-radius:6px;margin:16px 0;padding:12px}.import-mode-label{color:#fff;color:var(--text-primary,#fff);display:block;font-size:13px;font-weight:500;margin-bottom:10px}.import-mode-options{display:flex;flex-wrap:wrap;gap:8px}.mode-option{background:#2a2a2a;background:var(--bg-secondary,#2a2a2a);border:2px solid #444;border:2px solid var(--border-color,#444);border-radius:6px;cursor:pointer;display:flex;flex:1 1;flex-direction:column;min-width:120px;padding:10px 12px;transition:all .2s ease}.mode-option.selected,.mode-option:hover{border-color:#4a9eff;border-color:var(--primary-color,#4a9eff)}.mode-option.selected{background:#4a9eff1a}.mode-option input[type=radio]{display:none}.mode-name{color:#fff;color:var(--text-primary,#fff);font-size:14px;font-weight:600;margin-bottom:4px}.mode-description{color:#888;color:var(--text-secondary,#888);font-size:11px;line-height:1.3}.result-item.updated{background:#2196f31a;border:1px solid #2196f34d}.import-mode-badge{background:#4a9eff33;border-radius:10px;color:#4a9eff;color:var(--primary-color,#4a9eff);display:inline-block;font-size:11px;font-weight:400;margin-left:8px;padding:2px 8px;vertical-align:middle}.import-export-hub{margin:0 auto;max-width:1200px;padding:20px}.hub-header{margin-bottom:40px;text-align:center}.hub-header h1{color:var(--primary-color);font-size:2.5rem;margin-bottom:10px}.hub-header p{color:#666;font-size:1.1rem}.hub-sections{grid-gap:30px;display:grid;gap:30px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));margin-bottom:40px}.hub-section{background:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:30px;transition:transform .2s,box-shadow .2s}.hub-section:hover{box-shadow:0 4px 16px #00000026;transform:translateY(-5px)}.hub-section h2{align-items:center;color:#333;display:flex;font-size:1.5rem;margin-bottom:15px}.hub-section .icon{font-size:2rem;margin-right:15px}.hub-section p{color:#666;line-height:1.6;margin-bottom:20px}.hub-section ul{list-style:none;margin-bottom:20px;padding:0}.hub-section ul li{align-items:center;color:#555;display:flex;padding:8px 0}.hub-section ul li:before{color:#4caf50;content:"✓";font-weight:700;margin-right:10px}.hub-section .btn{background:var(--primary-color);border-radius:4px;color:#fff;display:inline-block;padding:10px 20px;text-decoration:none;transition:background .2s}.hub-section .btn:hover{background:var(--primary-hover)}.ai-insights{background:#f8f9fa;border-radius:8px;padding:30px}.ai-insights h2{color:#333;margin-bottom:20px}.insights-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.insight-card{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:20px;text-align:center}.insight-value{color:var(--primary-color);font-size:2rem;font-weight:700;margin-bottom:5px}.insight-label{color:#666;font-size:.9rem}[data-theme=dark] .hub-section{background:#2a2a2a;color:#e0e0e0}[data-theme=dark] .hub-section h2{color:#e0e0e0}[data-theme=dark] .hub-section p,[data-theme=dark] .hub-section ul li{color:#b0b0b0}[data-theme=dark] .ai-insights{background:#1a1a1a}[data-theme=dark] .insight-card{background:#2a2a2a}[data-theme=dark] .hub-header h1{color:#4caf50}button.action-card{background:#2a2a2a;background:var(--bg-secondary,#2a2a2a);border:1px solid #444;border:1px solid var(--border-color,#444);cursor:pointer;text-align:left;width:100%}button.action-card:hover{background:#4a9eff1a;border-color:#4a9eff;border-color:var(--primary-color,#4a9eff)}button.action-card.json-import .action-badge.new{background:linear-gradient(135deg,#4caf50,#45a049)}@media (max-width:768px){.hub-sections{grid-template-columns:1fr}.hub-header h1{font-size:2rem}.insights-grid{grid-template-columns:1fr 1fr}}.smart-document-import{margin:0 auto;max-width:1200px;padding:20px}.import-header{border-bottom:2px solid #e9ecef;margin-bottom:40px;padding-bottom:20px;text-align:center}.import-header h1{color:#2c3e50;font-weight:600;margin-bottom:10px}.import-description{color:#6c757d;font-size:1.1rem;margin-bottom:0}.upload-section{margin-bottom:40px}.drop-zone{background:#fafbfc;border:3px dashed #dee2e6;border-radius:12px;margin-bottom:30px;padding:60px 40px;transition:all .3s ease}.drop-zone:hover{background:#f8f9fa;border-color:#007bff}.drop-zone.active{background:#e7f3ff;border-color:#007bff;transform:scale(1.02)}.drop-zone-content{pointer-events:none}.upload-icon{font-size:4rem;margin-bottom:20px;opacity:.7}.drop-zone h3{color:#2c3e50;font-weight:600;margin-bottom:10px}.drop-zone p{color:#6c757d;margin-bottom:20px}.supported-formats{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.format-badge{background:#e9ecef;border-radius:20px;color:#495057;font-size:.875rem;font-weight:500;padding:4px 12px}.upload-info{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:25px}.upload-info h4{color:#2c3e50;font-weight:600;margin-bottom:15px}.upload-info ul{margin-bottom:0;padding-left:20px}.upload-info li{color:#495057;margin-bottom:8px}.processing-state{background:#f8f9fa;border:1px solid #e9ecef;border-radius:12px;padding:60px 40px;text-align:center}.spinner{border:4px solid #e9ecef;border-top-color:#007bff;height:40px;margin:0 auto 20px;width:40px}.processing-state h3{color:#2c3e50;font-weight:600;margin-bottom:10px}.processing-state p{color:#6c757d;margin-bottom:0}.parse-results{margin-bottom:40px}.result-summary{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 4px 12px #0000001a;margin-bottom:30px;padding:30px}.summary-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:25px;padding-bottom:15px}.summary-header h3{color:#2c3e50;font-weight:600;margin-bottom:0}.file-info{color:#6c757d;font-size:.9rem}.summary-stats{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-bottom:25px}.stat-item{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px;text-align:center}.training-suggestion{align-items:center;background:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;display:flex;gap:20px;justify-content:space-between;padding:20px}.suggestion-content{align-items:center;display:flex;flex:1 1;gap:15px}.suggestion-icon{font-size:1.5rem}.suggestion-content strong{color:#856404;display:block;margin-bottom:5px}.suggestion-content p{color:#856404;font-size:.9rem;margin-bottom:0}.question-results{border:1px solid #e9ecef;border-radius:12px;box-shadow:0 4px 12px #0000001a;margin-bottom:30px}.results-header{border-bottom:1px solid #e9ecef;margin-bottom:25px;padding-bottom:15px}.results-header h4{color:#2c3e50;font-weight:600;margin-bottom:0}.selection-controls{display:flex;gap:10px}.question-list{border:1px solid #e9ecef;max-height:600px}.question-item{border:2px solid #e9ecef;padding:20px;transition:all .3s ease}.question-item:hover{box-shadow:0 2px 8px #007bff1a}.question-item.selected{background:#f8f9fa;border-color:#007bff}.question-selection{align-items:center;display:flex;gap:10px}.question-checkbox{cursor:pointer;height:18px;width:18px}.question-number{background:#e9ecef;border-radius:4px;color:#495057;font-size:.875rem;padding:4px 8px}.question-badges{align-items:center;display:flex;gap:8px}.badge-success{background:#d4edda}.badge-warning{background:#fff3cd}.badge-danger{background:#f8d7da}.badge-secondary{background:#e2e3e5}.question-content,.question-text{margin-bottom:15px}.question-text{font-size:1.1rem}.question-choices{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:15px}.choice-item{align-items:center;display:flex;gap:10px;margin-bottom:8px}.choice-item:last-child{margin-bottom:0}.choice-label{background:#e9ecef;border-radius:4px;color:#495057;font-size:.75rem;font-weight:600;min-width:20px;padding:2px 6px;text-align:center}.choice-text{color:#495057;flex:1 1}.question-footer{border-top:1px solid #e9ecef;padding-top:15px}.question-meta{gap:20px}.meta-item{color:#6c757d;font-size:.875rem}.import-actions{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 4px 12px #0000001a;padding:30px;text-align:center}.import-summary{margin-bottom:25px}.summary-text{color:#2c3e50;font-size:1.1rem;font-weight:500}.action-buttons{justify-content:center;margin-bottom:20px}.import-progress{margin:0 auto;max-width:400px}.progress-bar{background:#e9ecef;border-radius:4px;height:8px;margin-bottom:10px}.progress-fill{background:#007bff}.progress-text{color:#6c757d;font-size:.9rem;font-weight:500}.error-state{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 4px 12px #0000001a;padding:60px 40px;text-align:center}.error-content{margin:0 auto;max-width:400px}.error-icon{font-size:4rem;margin-bottom:20px;opacity:.7}.error-state h3{color:#dc3545;font-weight:600;margin-bottom:15px}.error-state p{color:#6c757d;margin-bottom:25px}.pattern-training-modal{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.modal-content{background:#fff;box-shadow:0 20px 40px #0000004d;max-height:80vh;max-width:500px;width:90%}.modal-header{padding:20px 25px}.modal-header h4{margin-bottom:0}.modal-close{align-items:center;color:#6c757d;display:flex;font-size:1.5rem;height:30px;justify-content:center;transition:color .3s ease;width:30px}.modal-close:hover{color:#dc3545}.modal-body{padding:25px}.modal-body p{color:#495057;line-height:1.6;margin-bottom:20px}.training-actions{display:flex;gap:15px;justify-content:center}.training-actions .btn{border-radius:6px;font-weight:500;padding:10px 20px}.btn{border:1px solid #0000;font-size:.875rem;text-decoration:none}.btn-primary:hover:not(:disabled){background:#0056b3;border-color:#0056b3;transform:translateY(-1px)}.btn-success:hover:not(:disabled){background:#1e7e34;border-color:#1e7e34;transform:translateY(-1px)}.btn-outline-primary{background:#0000;border-color:#007bff;color:#007bff}.btn-outline-primary:hover{background:#007bff;color:#fff}.btn-outline-secondary{background:#0000;border-color:#6c757d;color:#6c757d}.btn-outline-secondary:hover{background:#6c757d;color:#fff}.btn-sm{font-size:.75rem;padding:6px 12px}@media (max-width:768px){.smart-document-import{padding:15px}.drop-zone{padding:40px 20px}.upload-icon{font-size:3rem}.result-summary{padding:20px}.summary-header{align-items:flex-start;flex-direction:column;gap:15px}.summary-stats{gap:15px;grid-template-columns:1fr}.training-suggestion{flex-direction:column;text-align:center}.results-header{align-items:flex-start;flex-direction:column;gap:15px}.selection-controls{justify-content:space-between;width:100%}.question-header{align-items:flex-start;flex-direction:column;gap:15px}.question-badges{align-self:flex-end}.question-meta{flex-direction:column;gap:8px}.action-buttons{flex-direction:column;width:100%}.action-buttons .btn{width:100%}.training-actions{flex-direction:column}.training-actions .btn{width:100%}}.question-checkbox:focus{outline:2px solid #007bff;outline-offset:2px}.btn:focus{outline:none}.parse-results{animation:fadeIn .5s ease-out}.question-item{animation:fadeIn .3s ease-out}.question-list::-webkit-scrollbar{width:8px}.question-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.question-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.question-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.offline-status{background-color:#fffffff2;border-radius:6px;bottom:8px;box-shadow:0 2px 8px #0000001a;font-size:12px;max-width:200px;padding:6px 10px;right:8px;transition:all .3s ease}.offline-status:hover{box-shadow:0 4px 15px #00000026}.status-indicator{align-items:center;display:flex;margin-bottom:4px}.status-dot{border-radius:50%;display:inline-block;height:10px;margin-right:8px;width:10px}.status-indicator.online .status-dot{background-color:#27ae60;box-shadow:0 0 5px #27ae60}.status-indicator.offline .status-dot{background-color:#e74c3c;box-shadow:0 0 5px #e74c3c}.status-indicator.online{color:#27ae60}.status-indicator.offline{color:#e74c3c}.pending-operations{background-color:#f8f9fa;border-radius:4px;font-weight:700;margin-bottom:8px;padding:5px 8px}.syncing-indicator{align-items:center;display:flex;margin-bottom:8px}.spinner{animation:spin 1s linear infinite;border:2px solid #0000001a;border-left-color:#09f;border-radius:50%;display:inline-block;height:16px;margin-right:8px;width:16px}.sync-error{background-color:#f8d7da;border-radius:4px;color:#721c24;margin-bottom:8px;padding:5px 8px}.sync-info{align-items:center;color:#666;display:flex;font-size:11px;gap:8px;justify-content:space-between}.sync-button{background-color:#007bff;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;padding:5px 10px;transition:background-color .2s}.sync-button:hover:not(:disabled){background-color:#0069d9}.sync-button:disabled{background-color:#ccc;cursor:not-allowed}.modal-content{border-radius:8px;box-shadow:0 4px 20px #00000026;max-width:800px}.modal-header{padding:20px}.modal-header h2{font-size:1.5rem}.close-btn{border-radius:4px;color:var(--text-secondary);transition:background-color .2s}.close-btn:hover{background-color:var(--bg-secondary);color:var(--text-primary)}.modal-content form{padding:20px}.form-group label{color:var(--text-secondary)}.form-group input[type=number],.form-group input[type=text],.form-group select,.form-group textarea{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);font-size:1rem;padding:8px 12px;transition:border-color .2s;width:100%}.form-group input[type=checkbox]{margin-right:8px}.form-row{grid-gap:15px;align-items:start;gap:15px}.type-timer-section{margin-bottom:20px}.labels-row{margin-bottom:8px}.controls-row,.labels-row{grid-gap:15px;display:grid;gap:15px;grid-template-columns:1fr 1fr}.timer-input,.type-select{background:var(--bg-primary);transition:border-color .2s}.timer-input,.type-display,.type-select{border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);font-size:1rem;padding:8px 12px;width:100%}.type-display{align-items:center;background:var(--bg-secondary);display:flex}.timer-input:focus,.type-select:focus{border-color:var(--color-primary);outline:none}.timer-input.timer-disabled{opacity:.3}.correct-answer-display{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);font-size:.95rem;padding:10px 12px}.multi-part-row{align-items:flex-start}.part-text{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);flex:1 1;padding:8px 12px}.full-width{width:100%}.questions-section{border-top:1px solid var(--border-primary);margin-top:30px;padding-top:20px}.section-header{align-items:center;justify-content:space-between}.section-header h3{color:var(--text-primary);font-size:1.25rem;margin:0}.question-card{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:6px;margin-bottom:15px;padding:15px}.question-header span{color:var(--text-primary);font-weight:600}.remove-btn{background:none;border:none;border-radius:4px;color:#dc3545;cursor:pointer;flex-shrink:0;font-size:.875rem;padding:4px 8px;transition:background-color .2s;white-space:nowrap}.remove-btn:hover{background-color:#dc35451a}.options-section{margin-top:15px;width:100%}.options-section label{color:var(--text-secondary);display:block;font-weight:500;margin-bottom:10px}.option-row{align-items:center;display:flex;gap:10px;margin-bottom:8px;width:100%}.option-label{color:var(--text-secondary);font-weight:600;width:30px}.option-row input[type=text]{flex:1 1;max-width:none;min-width:0;width:auto!important}.option-row input[type=radio]{flex-shrink:0;margin-left:10px}.empty-questions{background:var(--bg-secondary);border:1px dashed var(--border-primary);border-radius:6px;padding:40px;text-align:center}.empty-questions p{color:var(--text-secondary);margin-bottom:15px}.source-selection{margin-bottom:1.5rem}.source-selection>label{color:var(--text-secondary);display:block;font-weight:600;margin-bottom:.5rem}.radio-group{display:flex;flex-direction:column;gap:.5rem}.radio-group label{align-items:center;color:var(--text-primary);cursor:pointer;display:flex;font-weight:400;margin-bottom:0}.radio-group input[type=radio]{margin-right:.5rem}.question-bank-section{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:8px;margin-bottom:1.5rem;padding:1rem}.question-bank-section h4{color:var(--text-primary);margin-bottom:1rem;margin-top:0}.question-bank-filters{margin-bottom:1rem}.question-bank-filters .filter-row{display:flex;gap:.5rem;margin-bottom:.5rem}.question-bank-filters .filter-search{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);flex:1 1;font-size:.875rem;padding:8px 12px}.question-bank-filters .filter-search:focus{border-color:var(--color-primary);outline:none}.question-bank-filters .filter-select{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);cursor:pointer;flex:1 1;font-size:.875rem;padding:8px 12px}.question-bank-filters .filter-select:focus{border-color:var(--color-primary);outline:none}.question-bank-filters .filter-info{align-items:center;color:var(--text-secondary);display:flex;font-size:.8rem;justify-content:space-between;padding:4px 0}.question-bank-filters .btn-link{background:none;border:none;color:var(--color-primary);cursor:pointer;font-size:.8rem;padding:0}.question-bank-filters .btn-link:hover{text-decoration:underline}.question-bank-filters .tag-select{flex:0 0 auto;max-width:150px}.category-range-section{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:6px;margin-top:.75rem;padding:.75rem}.category-range-row{align-items:flex-start;display:flex;gap:.5rem}.category-selectors{display:flex;flex:1 1;flex-direction:column;gap:.5rem}.category-level{display:flex;flex-direction:column;gap:.25rem}.category-level-label{color:var(--text-secondary);font-size:.75rem;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.category-select{font-size:.8rem;padding:6px 10px}.range-arrow{align-items:center;color:var(--text-secondary);display:flex;font-size:1.25rem;justify-content:center;margin-top:1.5rem;padding:0 .5rem}.category-range-display{border-top:1px solid var(--border-primary);color:var(--text-secondary);font-size:.8rem;margin-top:.75rem;padding-top:.5rem}.category-range-display strong{color:var(--text-primary)}.tag-badge{border-radius:3px;display:inline-block;font-size:.7rem;margin-left:4px;padding:2px 6px;text-transform:capitalize}.tag-clicker{background:#4f46e533;color:#6366f1}.tag-quiz{background:#10b98133;color:#10b981}.tag-exam{background:#ef444433;color:#ef4444}.tag-practice{background:#f59e0b33;color:#f59e0b}.question-bank-list{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:4px;max-height:300px;overflow-y:auto;padding:.5rem}.question-bank-item{border-bottom:1px solid var(--border-primary);padding:.5rem}.question-bank-item:last-child{border-bottom:none}.question-bank-item label{align-items:flex-start;color:var(--text-primary);cursor:pointer;display:flex;margin-bottom:0}.question-bank-item input[type=checkbox]{flex-shrink:0;margin-right:.75rem;margin-top:.25rem}.question-preview{color:var(--text-primary);flex:1 1}.question-type{background:var(--bg-secondary);border-radius:4px;color:var(--text-secondary);display:inline-block;font-size:.875rem;margin-left:.5rem;padding:2px 8px}.no-questions{color:var(--text-secondary);padding:2rem}.true-false-options{display:flex;gap:1.5rem;margin-top:.5rem}.true-false-options label{align-items:center;color:var(--text-primary);cursor:pointer;display:flex;font-weight:400;margin-bottom:0}.true-false-options input[type=radio]{margin-right:.5rem}.labels-row label{color:var(--text-secondary);font-weight:500}.timer-checkbox{align-items:center;color:var(--text-primary);cursor:pointer;display:flex;margin:0}.timer-checkbox input[type=checkbox]{margin:0 6px 0 0}.timer-checkbox span{white-space:nowrap}.timer-seconds{transition:opacity .2s}.timer-seconds.timer-disabled{opacity:.3}.question-text-input{font-size:1.1rem;padding:10px 12px}.modal-footer{gap:10px;padding:20px}@media (max-width:600px){.modal-content{border-radius:0;height:100vh;max-height:100vh}.form-row{grid-template-columns:1fr}.option-row{flex-wrap:wrap}.option-label{margin-bottom:5px;width:100%}}.clicker-dashboard{background-color:#fff;background-color:var(--bg-primary,#fff);color:#333;color:var(--text-primary,#333);margin:0 auto;max-width:1200px;min-height:calc(100vh - 60px);padding:20px}.dashboard-header{align-items:center;display:flex;justify-content:space-between}.dashboard-header h1{color:#333;color:var(--text-primary,#333);font-size:2rem;margin:0}.sessions-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(350px,1fr))}.session-card{background:#fff;background:var(--bg-card,#fff);border:1px solid #0000;border:1px solid var(--border-primary,#0000);border-radius:8px;box-shadow:0 2px 4px #0000001a;box-shadow:var(--shadow-sm,0 2px 4px #0000001a);padding:20px;transition:transform .2s,box-shadow .2s}.session-card:hover{box-shadow:0 4px 8px #00000026;box-shadow:var(--shadow-md,0 4px 8px #00000026);transform:translateY(-2px)}.session-header{align-items:start;margin-bottom:15px}.session-header h3{color:#333;color:var(--text-primary,#333);flex:1 1;font-size:1.25rem;margin:0 10px 0 0}.clicker-dashboard .badge{border-radius:12px;font-size:.75rem;font-weight:600;padding:4px 12px;text-transform:uppercase}.clicker-dashboard .badge-warning{background-color:#ffc10733;color:#ffc107}.clicker-dashboard .badge-success{background-color:#28a74533;color:#28a745}.clicker-dashboard .badge-info{background-color:#17a2b833;color:#17a2b8}.clicker-dashboard .badge-secondary{background-color:#e2e3e5;background-color:var(--bg-secondary,#e2e3e5);color:#383d41;color:var(--text-secondary,#383d41)}.session-code-qr{align-items:center;background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border:1px solid #e0e0e0;border:1px solid var(--border-primary,#e0e0e0);border-radius:6px;display:flex;justify-content:space-between;margin-bottom:15px;padding:15px}.session-code{display:flex;flex-direction:column;gap:5px}.code-label{color:#666;color:var(--text-secondary,#666);font-size:.875rem}.code-value{color:#007bff;color:var(--color-primary,#007bff);font-size:1.75rem;font-weight:700;letter-spacing:3px}.session-qr{align-items:center;background:#fff;border-radius:6px;box-shadow:0 1px 3px #0000001a;display:flex;flex-direction:column;gap:5px;padding:8px}.session-qr canvas{display:block}.qr-label{color:#666;font-size:.7rem;text-align:center}.session-info{margin-bottom:20px}.session-info p{margin-bottom:10px}.session-info p,.session-stats{color:#666;color:var(--text-secondary,#666)}.session-stats{display:flex;font-size:.875rem;gap:20px}.session-stats span{align-items:center;display:flex;gap:5px}.session-actions{display:flex;gap:10px}.session-actions .btn{flex:1 1}.clicker-dashboard .empty-state{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border:1px dashed #dee2e6;border:1px dashed var(--border-primary,#dee2e6);border-radius:8px;grid-column:1/-1;padding:60px 20px;text-align:center}.clicker-dashboard .empty-state h3{color:#333;color:var(--text-primary,#333);font-size:1.5rem;margin-bottom:10px}.clicker-dashboard .empty-state p{color:#666;color:var(--text-secondary,#666);margin-bottom:20px}.clicker-dashboard .alert{border-radius:6px;margin-bottom:20px;padding:12px 20px}.clicker-dashboard .alert-error{background-color:#dc354526;border:1px solid #dc35454d;color:#dc3545}.clicker-dashboard .loading{color:#666;color:var(--text-secondary,#666);padding:40px;text-align:center}.clicker-dashboard .btn{border:none;border-radius:4px;cursor:pointer;display:inline-block;font-size:.875rem;font-weight:500;padding:8px 16px;text-align:center;text-decoration:none;transition:background-color .2s,transform .1s}.clicker-dashboard .btn:hover{transform:translateY(-1px)}.clicker-dashboard .btn:active{transform:translateY(0)}.clicker-dashboard .btn-primary{background-color:#007bff;background-color:var(--color-primary,#007bff);color:#fff}.clicker-dashboard .btn-primary:hover{background-color:#0056b3;background-color:var(--color-primary-dark,#0056b3)}.clicker-dashboard .btn-success{background-color:#28a745;color:#fff}.clicker-dashboard .btn-success:hover{background-color:#218838}.clicker-dashboard .btn-secondary{background-color:#6c757d;background-color:var(--text-secondary,#6c757d);color:#fff}.clicker-dashboard .btn-secondary:hover{opacity:.9}.clicker-dashboard .btn-danger{background-color:#dc3545;color:#fff}.clicker-dashboard .btn-danger:hover{background-color:#c82333}@media (max-width:768px){.dashboard-header{align-items:flex-start;flex-direction:column;gap:15px}.sessions-grid{grid-template-columns:1fr}.session-actions{flex-direction:column}}.question-display{display:flex;flex-direction:column;height:100%;width:100%}.question-header{border-bottom:2px solid #e0e0e0;border-bottom:2px solid var(--border-primary,#e0e0e0);flex-shrink:0;margin-bottom:20px}.question-info{align-items:center;display:flex;gap:20px}.question-label{color:#666;color:var(--text-secondary,#666);font-size:1.25rem;font-weight:600}.timer{border-radius:8px;font-size:2rem;font-weight:700;padding:10px 20px;text-align:center}.timer-normal{background:#28a74526;color:#2e7d32;color:var(--color-success,#2e7d32)}.timer-warning{background:#ffc10733;color:#f57c00;color:var(--color-warning,#f57c00)}.timer-critical{animation:pulse 1s infinite;background:#dc354526;color:#d32f2f;color:var(--color-danger,#d32f2f)}.question-main{display:flex;flex:1 1;flex-direction:column;gap:30px;padding:20px 0}.question-text-container{flex-shrink:0}.question-options{align-items:center;display:flex;flex:1 1;justify-content:center}.question-text{word-wrap:break-word;font-size:1.5rem;margin:0;white-space:pre-wrap}.options-display{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));margin:0 auto;max-width:800px;width:100%}.options-display.true-false{grid-template-columns:repeat(2,1fr);max-width:600px}.option-display{align-items:center;background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border:2px solid #e0e0e0;border:2px solid var(--border-primary,#e0e0e0);border-radius:8px;display:flex;gap:15px;padding:20px;transition:all .2s}.option-display:hover{background:#e9ecef;background:var(--bg-hover,#e9ecef);transform:translateY(-2px)}.option-label{align-items:center;background:#fff;background:var(--bg-card,#fff);border-radius:50%;color:#007bff;color:var(--color-primary,#007bff);display:flex;flex-shrink:0;font-size:1.5rem;font-weight:700;height:50px;justify-content:center;width:50px}.option-text{color:#333;color:var(--text-primary,#333);font-size:1.25rem}.response-tracker{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border-radius:8px;flex-shrink:0;margin-top:20px;padding:20px}.response-info{margin-bottom:20px}.response-info h3{color:#333;color:var(--text-primary,#333);font-size:1.25rem;margin:0 0 15px}.response-stats{display:flex;gap:40px}.stat{align-items:center;display:flex;flex-direction:column}.stat-value{color:#007bff;color:var(--color-primary,#007bff)}.stat-label{color:#666;color:var(--text-secondary,#666);font-size:.875rem}.response-progress{margin-top:20px}.progress-bar{background:#e0e0e0;background:var(--bg-tertiary,#e0e0e0);border-radius:15px;height:30px}.progress-fill{align-items:center;background:linear-gradient(90deg,#007bff,#0056b3);background:linear-gradient(90deg,var(--color-primary,#007bff),var(--color-primary-dark,#0056b3));color:#fff;display:flex;font-weight:700;justify-content:flex-end;padding-right:10px}@media (max-width:768px){.question-text{font-size:1.5rem}.options-display,.options-display.true-false{grid-template-columns:1fr}.response-stats{justify-content:space-around}}.results-display{color:#333;color:var(--text-primary,#333);display:flex;flex-direction:column;height:100%}.results-header{border-bottom:2px solid #e0e0e0;border-bottom:2px solid var(--border-primary,#e0e0e0)}.results-header h2{color:#333;color:var(--text-primary,#333);font-size:1.75rem;margin:0}.results-question{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border-radius:8px;color:#555;color:var(--text-secondary,#555);font-size:1.25rem;margin-bottom:30px;padding:20px;text-align:center}.results-summary{display:flex;justify-content:center;margin-bottom:40px}.summary-stat{align-items:center;background:#fff;background:var(--bg-card,#fff);border:1px solid #e0e0e0;border:1px solid var(--border-primary,#e0e0e0);border-radius:8px;box-shadow:0 2px 4px #0000001a;box-shadow:var(--shadow-sm,0 2px 4px #0000001a);display:flex;flex-direction:column;padding:20px 40px}.summary-stat .stat-value{color:#007bff;color:var(--color-primary,#007bff);font-size:3rem;font-weight:700}.summary-stat .stat-label{color:#666;color:var(--text-secondary,#666);font-size:1rem;text-transform:uppercase}.results-chart{display:flex;flex:1 1;flex-direction:column;gap:20px;margin:0 auto;max-width:800px;width:100%}.result-bar-container{display:flex;flex-direction:column;gap:8px}.result-label{align-items:center;display:flex;justify-content:space-between}.response-key{color:#333;color:var(--text-primary,#333);font-size:1.25rem;font-weight:700}.response-count{color:#666;color:var(--text-secondary,#666);font-size:1rem}.result-bar-wrapper{background:#e0e0e0;background:var(--bg-tertiary,#e0e0e0);border-radius:20px;height:40px;overflow:hidden;position:relative}.result-bar{align-items:center;display:flex;height:100%;justify-content:flex-end;padding-right:15px;position:relative;transition:width .5s ease}.percentage-label{color:#fff;font-size:1rem;font-weight:700;text-shadow:0 1px 2px #0003}.text-responses{flex:1 1;overflow-y:auto}.text-responses h3{color:#333;color:var(--text-primary,#333);font-size:1.25rem;margin:0 0 20px}.response-list{display:flex;flex-direction:column;gap:10px}.text-response{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border-left:4px solid #007bff;border-left:4px solid var(--color-primary,#007bff);border-radius:6px;padding:15px}.student-name{color:#555;color:var(--text-secondary,#555);font-weight:600;margin-right:10px}.response-text{color:#333;color:var(--text-primary,#333);line-height:1.5}.no-responses{color:#666;color:var(--text-secondary,#666);font-style:italic;padding:40px 20px;text-align:center}.clicker-session-complete{background:#28a74526;border-radius:8px;margin-top:40px;padding:40px;text-align:center}.clicker-session-complete p{color:#2e7d32;color:var(--color-success,#2e7d32);font-size:1.25rem;font-weight:600;margin:0}.result-bar{animation:slideIn .5s ease-out}@media (max-width:768px){.results-chart{max-width:100%}.result-bar-wrapper{height:35px}.response-key{font-size:1.1rem}}.clicker-session{background:#f5f5f5;background:var(--bg-secondary,#f5f5f5);display:flex;flex-direction:column;min-height:calc(100vh - 60px)}.session-header{background:#fff;background:var(--bg-card,#fff);border-bottom:1px solid #e0e0e0;border-bottom:1px solid var(--border-primary,#e0e0e0);padding:20px}.session-info h1{color:#333;color:var(--text-primary,#333);font-size:1.75rem;margin:0 0 10px}.session-meta{align-items:center}.session-code{background:#e7f3ff;background:var(--bg-primary-light,#e7f3ff);color:#007bff;color:var(--color-primary,#007bff);font-size:1.25rem}.session-code,.session-status{border-radius:20px;padding:5px 15px}.session-status{font-size:.875rem;font-weight:600;text-transform:uppercase}.status-waiting{background:#ffc10733;color:#ffc107}.status-active{background:#28a74533;color:#28a745}.status-ended{background:#e2e3e5;background:var(--bg-secondary,#e2e3e5);color:#383d41;color:var(--text-secondary,#383d41)}.session-content{grid-gap:20px;display:grid;flex:1 1;gap:20px;grid-template-columns:300px 1fr;min-height:0;padding:20px}.participants-panel{background:#fff;background:var(--bg-card,#fff);border:1px solid #0000;border:1px solid var(--border-primary,#0000);border-radius:8px;box-shadow:0 2px 4px #0000001a;box-shadow:var(--shadow-sm,0 2px 4px #0000001a);overflow-y:auto;padding:20px}.participants-panel h3{color:#333;color:var(--text-primary,#333);font-size:1.25rem;margin:0 0 20px}.participants-list{display:flex;flex-direction:column;gap:10px}.participant{align-items:center;background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border-radius:6px;display:flex;justify-content:space-between;padding:10px;transition:background-color .2s}.participant.connected{background:#28a74526}.participant.disconnected{background:#dc354526;opacity:.7}.participant-name{color:#333;color:var(--text-primary,#333);font-size:.875rem}.status-indicator{border-radius:50%;height:8px;width:8px}.status-indicator.connected{background:#4caf50}.status-indicator.disconnected{background:#f44336}.no-participants{color:#999;color:var(--text-secondary,#999);padding:20px;text-align:center}.question-panel{background:#fff;background:var(--bg-card,#fff);border:1px solid #0000;border:1px solid var(--border-primary,#0000);border-radius:8px;box-shadow:0 2px 4px #0000001a;box-shadow:var(--shadow-sm,0 2px 4px #0000001a);display:flex;flex-direction:column;overflow:hidden;padding:20px}.question-list{height:100%}.question-list h3{color:#333;color:var(--text-primary,#333);font-size:1.5rem;margin:0 0 20px}.question-item{grid-gap:15px;align-items:center;background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border:2px solid #0000;display:grid;gap:15px;grid-template-columns:auto 1fr auto;margin-bottom:10px}.question-item:hover{background:#e9ecef;background:var(--bg-hover,#e9ecef)}.question-item.active{background:#2196f326;border-color:#2196f3}.question-number{align-items:center;background:#fff;background:var(--bg-card,#fff);border-radius:8px;color:#666;color:var(--text-secondary,#666);display:flex;font-size:1.25rem;font-weight:700;height:50px;justify-content:center;width:50px}.question-text{color:#333;color:var(--text-primary,#333);font-size:1rem}.question-stats{color:#666;color:var(--text-secondary,#666);font-size:.875rem;margin-top:5px}.clicker-session .btn-sm{font-size:.875rem;padding:6px 16px}.clicker-session .alert{border-radius:6px;margin:20px;padding:12px 20px}.clicker-session .alert-error{background-color:#dc354526;border:1px solid #dc35454d;color:#dc3545}.clicker-session .alert-warning{background-color:#ffc10726;border:1px solid #ffc1074d;color:#ffc107}.clicker-session .error,.clicker-session .loading{align-items:center;color:#666;color:var(--text-secondary,#666);display:flex;font-size:1.25rem;height:100%;justify-content:center}.clicker-session .error{color:#dc3545}@media (max-width:1024px){.session-content{grid-template-columns:250px 1fr}}@media (max-width:768px){.session-header{align-items:flex-start;flex-direction:column;gap:15px}.session-content{grid-template-columns:1fr;grid-template-rows:auto 1fr}.participants-panel{max-height:200px}}.session-results{background-color:#fff;background-color:var(--bg-primary,#fff);color:#333;color:var(--text-primary,#333);margin:0 auto;max-width:1400px;padding:20px}.results-header{border-bottom:1px solid #e0e0e0;border-bottom:1px solid var(--border-primary,#e0e0e0);justify-content:space-between;margin-bottom:30px;padding-bottom:20px}.header-info h1{color:#333;color:var(--text-primary,#333);margin:0 0 10px}.session-meta{color:#666;color:var(--text-secondary,#666);display:flex;font-size:14px;gap:20px}.session-meta span{align-items:center;display:flex}.results-content{grid-gap:30px;display:grid;gap:30px;grid-template-columns:300px 1fr;min-height:500px}.question-selector{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border-radius:8px;height:-webkit-fit-content;height:fit-content;padding:20px}.question-selector h3{color:#333;color:var(--text-primary,#333);font-size:18px;margin:0 0 15px}.question-list{display:flex;flex-direction:column;gap:10px}.question-item{background:var(--bg-card,#fff);border:1px solid #e0e0e0;border:1px solid var(--border-primary,#e0e0e0);border-radius:6px;color:#333;color:var(--text-primary,#333);cursor:pointer;padding:12px;text-align:left;transition:all .2s}.question-item:hover{box-shadow:0 2px 4px #0000001a;box-shadow:var(--shadow-sm,0 2px 4px #0000001a)}.question-item.active,.question-item:hover{border-color:#007bff;border-color:var(--color-primary,#007bff)}.question-item.active{background:#007bff;background:var(--color-primary,#007bff);color:#fff}.question-number{display:block;margin-bottom:4px}.question-preview{display:block;font-size:13px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.response-count{display:block;font-size:12px;margin-top:4px;opacity:.7}.question-results{background:#fff;background:var(--bg-card,#fff);border:1px solid #0000;border:1px solid var(--border-primary,#0000);border-radius:8px;box-shadow:0 2px 8px #0000001a;box-shadow:var(--shadow-sm,0 2px 8px #0000001a);padding:30px}.question-results h2{color:#333;color:var(--text-primary,#333);margin:0 0 10px}.question-text{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border-radius:6px;color:#555;color:var(--text-secondary,#555);font-size:18px;padding:15px}.stats-summary{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(3,1fr);margin-bottom:30px}.stat-card{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa)}.stat-card h4{color:#666;color:var(--text-secondary,#666);font-size:14px;font-weight:500;margin:0 0 10px}.stat-value{color:#333;color:var(--text-primary,#333);font-size:32px;margin:0}.answer-distribution{margin-bottom:30px}.answer-distribution h3{color:#333;color:var(--text-primary,#333);margin:0 0 20px}.distribution-chart{display:flex;flex-direction:column;gap:15px}.distribution-item{display:flex;flex-direction:column;gap:8px}.answer-label{align-items:center;color:#333;color:var(--text-primary,#333);display:flex;font-weight:500;gap:5px}.correct-indicator{color:#28a745;color:var(--color-success,#28a745);font-weight:700}.answer-bar-container{background:#f0f0f0;background:var(--bg-tertiary,#f0f0f0);border-radius:4px;height:30px;overflow:hidden;position:relative}.answer-bar{background:#6c757d;background:var(--text-secondary,#6c757d);height:100%;left:0;min-width:2px;position:absolute;top:0;transition:width .3s ease}.answer-bar.correct{background:#28a745;background:var(--color-success,#28a745)}.answer-stats{color:#333;color:var(--text-primary,#333);font-size:14px;font-weight:500;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.response-details{margin-top:30px}.response-details h3{color:#333;color:var(--text-primary,#333);margin:0 0 15px}.responses-table{background:#fff;background:var(--bg-card,#fff);border:1px solid #e0e0e0;border:1px solid var(--border-primary,#e0e0e0);border-collapse:collapse;border-radius:6px;overflow:hidden;width:100%}.responses-table th{background:#f8f9fa;background:var(--bg-secondary,#f8f9fa);border-bottom:1px solid #e0e0e0;border-bottom:1px solid var(--border-primary,#e0e0e0);font-weight:600;text-align:left}.responses-table td,.responses-table th{color:#333;color:var(--text-primary,#333);padding:12px}.responses-table td{border-bottom:1px solid #f0f0f0;border-bottom:1px solid var(--border-primary,#f0f0f0)}.responses-table tr:last-child td{border-bottom:none}.result-badge{border-radius:50%;display:inline-block;font-weight:700;height:24px;line-height:24px;text-align:center;width:24px}.result-badge.correct{background:#28a74533;color:#155724;color:var(--color-success,#155724)}.result-badge.incorrect{background:#dc354533;color:#721c24;color:var(--color-danger,#721c24)}.no-questions{color:#666;color:var(--text-secondary,#666);padding:60px;text-align:center}.error-container{padding:40px;text-align:center}.error-container p{color:#dc3545;color:var(--color-danger,#dc3545);margin-bottom:20px}.loading{color:#666;color:var(--text-secondary,#666);padding:40px}@media (max-width:768px){.results-content{grid-template-columns:1fr}.question-selector{order:2}.question-results{order:1}.stats-summary{grid-template-columns:1fr}.results-header{align-items:flex-start;flex-direction:column;gap:15px}.session-meta{flex-wrap:wrap}}.modal-overlay{background-color:#00000080;padding:20px;z-index:1000}.modal-content{background:var(--bg-card);border-radius:12px;box-shadow:var(--shadow-lg);max-height:90vh;overflow-y:auto;width:100%}.create-class-modal{max-width:600px}.modal-header{padding:20px 24px}.modal-header h2{color:var(--text-primary);font-size:20px;font-weight:600;margin:0}.modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:28px;line-height:1;padding:0}.modal-close:hover{color:var(--text-primary)}.modal-body{padding:24px}.modal-footer{background:var(--bg-secondary);border-radius:0 0 12px 12px;display:flex;gap:12px;justify-content:flex-end;padding:16px 24px}.form-section{margin-bottom:24px}.form-section:last-child{margin-bottom:0}.form-section h3{color:var(--text-secondary);font-size:14px;font-weight:600;letter-spacing:.5px;margin:0 0 12px;text-transform:uppercase}.form-group{margin-bottom:16px}.form-group label{margin-bottom:6px}.form-group input,.form-group select,.form-group textarea{background-color:var(--bg-primary);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);font-size:14px;padding:10px 12px;transition:border-color .2s;width:100%}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #4f46e51a;outline:none}.form-group input.error,.form-group select.error,.form-group textarea.error{border-color:#ef4444}.form-group input::placeholder,.form-group textarea::placeholder{color:var(--text-secondary);opacity:.6}.form-group textarea{min-height:80px}.form-row{grid-gap:16px;gap:16px}.error-text,.help-text{margin-top:4px}.error-text{color:#ef4444;display:block;font-size:12px}@media screen and (max-width:600px){.modal-content{border-radius:0;max-height:100vh}.form-row{grid-template-columns:1fr}.modal-footer{flex-direction:column-reverse}.modal-footer .btn{width:100%}}.qr-modal{max-width:400px}.qr-class-name{color:var(--text-primary);font-size:18px;font-weight:600;margin:0 0 16px;text-align:center}.qr-modal .join-code-display{align-items:center;background:var(--bg-secondary);border-radius:8px;display:flex;gap:12px;justify-content:center;margin-bottom:20px;padding:12px}.qr-modal .join-code-display .label{color:var(--text-secondary);font-size:14px}.qr-modal .join-code-display .code{color:var(--color-primary);font-family:Courier New,monospace;font-size:24px;font-weight:700;letter-spacing:2px}.qr-code-container{background:#fff;border-radius:8px;display:flex;justify-content:center;margin-bottom:16px;padding:20px}.qr-canvas{border-radius:4px;height:200px;width:200px}.join-url{margin-bottom:20px;text-align:center}.join-url .url{color:var(--color-primary);cursor:pointer;font-size:13px;word-break:break-all}.join-url .url:hover{text-decoration:underline}.instructions{background:var(--bg-secondary);border-radius:8px;padding:16px}.instructions h4{color:var(--text-primary);font-size:14px;margin:0 0 12px}.instructions ol{color:var(--text-secondary);font-size:13px;margin:0;padding-left:20px}.instructions li{margin-bottom:6px}.instructions li:last-child{margin-bottom:0}.class-list-container{margin:0 auto;max-width:1400px;padding:20px}.class-list-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:24px}.header-left h1{color:var(--text-primary);margin:0 0 8px}.header-left p{color:var(--text-secondary);margin:0}.filter-bar{align-items:center;display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}.filter-bar select{background-color:var(--bg-card);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);cursor:pointer;font-size:14px;padding:8px 12px}.filter-bar select:focus{border-color:var(--color-primary);outline:none}.classes-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(350px,1fr))}.class-card{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:8px;box-shadow:var(--shadow-sm);padding:20px;transition:transform .2s,box-shadow .2s}.class-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.class-card-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:12px}.class-card-header h3{color:var(--text-primary);font-size:18px;font-weight:600;margin:0}.class-info{margin-bottom:16px}.class-code{color:var(--text-primary);font-weight:500;margin:0 0 4px}.class-term{color:var(--text-secondary);font-size:14px;margin:0 0 8px}.class-description{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--text-secondary);display:-webkit-box;font-size:13px;margin:0;overflow:hidden}.join-code-section{align-items:center;background:var(--bg-secondary);border-radius:6px;display:flex;gap:8px;margin-bottom:16px;padding:12px}.join-code-label{color:var(--text-secondary);font-size:13px}.join-code-value{color:var(--color-primary);flex:1 1;font-family:Courier New,monospace;font-size:16px;font-weight:600;letter-spacing:1px}.join-code-section .btn-sm{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-primary);cursor:pointer;font-size:12px;padding:6px 12px;white-space:nowrap}.join-code-section .btn-sm:hover{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.class-stats{color:var(--text-secondary);display:flex;font-size:13px;gap:16px;margin-bottom:16px}.class-stats strong{color:var(--text-primary)}.class-actions{grid-gap:8px;display:grid;gap:8px;grid-template-columns:1fr 1fr}.class-actions .btn{font-size:13px;overflow:hidden;padding:10px 16px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.empty-state{background:var(--bg-card);border:1px dashed var(--border-primary);border-radius:8px;grid-column:1/-1}.empty-state p{margin:0 0 20px}.loading{padding:60px 20px}.btn-icon,.btn-sm{padding:4px 8px}.btn-icon{font-size:12px}@media screen and (max-width:768px){.class-list-header{flex-direction:column;gap:16px}.classes-grid{grid-template-columns:1fr}.class-actions{flex-direction:column}.class-actions .btn{flex:none;width:100%}}.roster-upload-modal{max-width:550px}.csv-requirements{background:var(--bg-secondary);border-radius:6px;margin-bottom:20px;padding:16px}.csv-requirements h4{color:var(--text-primary);font-size:14px;margin:0 0 8px}.csv-requirements ul{color:var(--text-secondary);font-size:13px;margin:0;padding-left:20px}.csv-requirements li{margin-bottom:4px}.drop-zone{align-items:center;border:2px dashed var(--border-primary);border-radius:8px;cursor:pointer;display:flex;flex-direction:column;gap:8px;padding:40px 20px;text-align:center;transition:border-color .2s,background-color .2s}.drop-zone:hover{background-color:#4f46e50d;border-color:var(--color-primary)}.drop-zone.has-file{background-color:var(--bg-secondary);border-style:solid}.upload-icon{font-size:32px}.drop-zone span{color:var(--text-secondary);font-size:14px}.file-types{font-size:12px!important;opacity:.7}.file-info{align-items:center;display:flex;gap:8px}.file-name{color:var(--text-primary)!important;font-weight:500}.file-size{color:var(--text-secondary)!important}.upload-preview{background:var(--bg-secondary);border-radius:8px;margin-top:20px;padding:16px}.upload-preview h4{color:var(--text-primary);font-size:14px;margin:0 0 12px}.preview-stats{color:var(--text-secondary);display:flex;font-size:13px;gap:20px;margin-bottom:12px}.preview-stats span{align-items:center;display:flex;gap:4px}.preview-table{border-collapse:collapse;font-size:13px;width:100%}.preview-table td,.preview-table th{border-bottom:1px solid var(--border-primary);padding:8px 12px;text-align:left}.preview-table th{color:var(--text-secondary);font-size:12px;font-weight:600;text-transform:uppercase}.preview-table td{color:var(--text-primary)}.preview-more{color:var(--text-secondary);font-size:13px;margin:12px 0 0;text-align:center}.btn-link{padding:0;text-decoration:underline}.invite-modal{max-width:500px}.form-group:last-child{margin-bottom:0}.form-group label{align-items:center;color:var(--text-primary);display:flex;gap:8px}.email-count{color:var(--text-secondary);font-size:13px;font-weight:400}.form-group textarea{background-color:var(--bg-primary);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);font-family:inherit;font-size:14px;min-height:100px;padding:12px;resize:vertical;width:100%}.form-group textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #4f46e51a;outline:none}.form-group textarea.error{border-color:#ef4444}.form-group textarea::placeholder{color:var(--text-secondary);opacity:.6}.help-text{color:var(--text-secondary);display:block;font-size:12px;margin-top:6px}.alert{margin-bottom:16px}.class-detail-container{margin:0 auto;max-width:1400px;padding:20px}.class-detail-header{margin-bottom:24px}.back-button{color:var(--text-secondary);margin-bottom:16px;padding:0;text-decoration:none}.back-button:hover{color:var(--color-primary)}.class-info-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between}.class-title-section h1{color:var(--text-primary);margin:0 0 4px}.class-meta{color:var(--text-secondary);font-size:14px;margin:0}.join-code-display{align-items:center;background:var(--bg-card);border:1px solid var(--border-primary);border-radius:8px;display:flex;gap:8px;padding:12px 16px}.join-code-display .label{color:var(--text-secondary);font-size:14px}.join-code-display .code{color:var(--color-primary);font-family:Courier New,monospace;font-size:18px;font-weight:600;letter-spacing:1px}.stats-cards{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));margin-bottom:24px}.stat-number{color:var(--color-primary);display:block;font-size:32px;font-weight:600}.stat-label{display:block;font-size:13px;margin-top:4px}.roster-actions{align-items:center;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;margin-bottom:16px}.roster-actions .action-buttons{display:flex;flex-wrap:wrap;gap:8px}.search-box input{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-primary);font-size:14px;padding:10px 16px;width:280px}.search-box input:focus{border-color:var(--color-primary);outline:none}.filter-tabs{border-bottom:1px solid var(--border-primary);gap:4px;margin-bottom:16px;overflow-x:auto}.filter-tabs .tab{background:none;border:none;border-bottom:2px solid #0000;color:var(--text-secondary);cursor:pointer;font-size:14px;padding:12px 20px;transition:color .2s,border-color .2s;white-space:nowrap}.filter-tabs .tab:hover{color:var(--text-primary)}.filter-tabs .tab.active{border-bottom-color:var(--color-primary);color:var(--color-primary)}.roster-table-container{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:8px;overflow:hidden}.roster-table{border-collapse:collapse;width:100%}.roster-table td,.roster-table th{border-bottom:1px solid var(--border-primary);padding:12px 16px;text-align:left}.roster-table th{background:var(--bg-secondary);color:var(--text-secondary);font-size:13px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.roster-table td{color:var(--text-primary);font-size:14px}.roster-table tr:last-child td{border-bottom:none}.roster-table tbody tr:hover{background:var(--bg-secondary)}.action-buttons-row{display:flex;gap:6px}.badge{border-radius:4px;font-size:12px;padding:4px 8px;text-transform:capitalize}.badge-success{background-color:#10b98126;color:#10b981}.badge-warning{background-color:#f59e0b26;color:#f59e0b}.badge-info{background-color:#3b82f626;color:#3b82f6}.badge-secondary{background-color:#6b728026;color:#6b7280}.empty-roster{color:var(--text-secondary);padding:60px 20px;text-align:center}.empty-roster p{margin:0 0 8px}.loading{color:var(--text-secondary);padding:40px 20px;text-align:center}.alert{border-radius:6px;padding:12px 16px}.alert-error{background-color:#ef444426;border:1px solid #ef44444d;color:#ef4444}.btn-sm{font-size:12px;padding:6px 10px}.btn-success{background-color:#10b981}.btn-success:hover{background-color:#059669}.btn-link{background:none;border:none;color:var(--color-primary);cursor:pointer;text-decoration:none}@media screen and (max-width:768px){.class-info-header,.roster-actions{flex-direction:column}.roster-actions{align-items:stretch}.search-box input{width:100%}.roster-table-container{overflow-x:auto}.roster-table{min-width:700px}}.join-session{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:20px}.join-container{animation:slideUp .3s ease-out;background:#fff;border-radius:20px;box-shadow:0 20px 40px #0000001a;max-width:400px;padding:40px 30px;width:100%}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.join-header{margin-bottom:30px;text-align:center}.join-header h1{color:#2d3748;font-size:28px;font-weight:700;margin-bottom:8px}.join-header p{color:#718096;font-size:16px;margin:0}.join-form{gap:20px}.form-group,.join-form{display:flex;flex-direction:column}.form-group label{color:#2d3748;font-size:14px}.session-code-input{background-color:#fff;border:2px solid #e2e8f0;border-radius:12px;color:#1a202c;font-size:24px;font-weight:700;letter-spacing:4px;padding:16px;text-align:center;text-transform:uppercase;transition:all .2s}.session-code-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.session-code-input::placeholder{color:#a0aec0;opacity:1}.name-input{background-color:#fff;border:2px solid #e2e8f0;border-radius:12px;color:#1a202c;font-size:16px;padding:14px 16px;transition:all .2s}.name-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.name-input::placeholder{color:#a0aec0;opacity:1}.form-hint{color:#718096;font-size:12px;margin-top:6px}.join-button{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;font-size:18px;margin-top:10px;padding:16px 32px;transition:all .3s}.join-button:hover:not(:disabled){box-shadow:0 8px 20px #667eea4d}.join-button:active:not(:disabled){transform:translateY(0)}.join-footer{margin-top:30px;text-align:center}.join-footer p{color:#718096;font-size:14px;margin:5px 0}.error-message{background-color:#fee;border:1px solid #fc8181;border-radius:8px;color:#c53030;font-size:14px;margin-bottom:16px;padding:12px 16px;text-align:center}@media (max-width:480px){.join-container{padding:30px 20px}.join-header h1{font-size:24px}.session-code-input{font-size:20px;letter-spacing:2px}}.waiting-room{background:linear-gradient(135deg,#f5f7fa,#c3cfe2);display:flex;flex-direction:column;min-height:100vh}.waiting-container{display:flex;flex:1 1;flex-direction:column;margin:0 auto;max-width:500px;padding:20px;width:100%}.waiting-header{margin-bottom:30px;text-align:center}.waiting-header h1{color:#2d3748;font-size:28px;margin-bottom:10px}.session-info{color:#4a5568;font-size:16px}.session-code{color:#667eea;font-weight:700;letter-spacing:1px}.waiting-content{align-items:center;display:flex;flex:1 1;flex-direction:column;gap:30px;justify-content:center}.waiting-animation{height:120px;position:relative;width:120px}.pulse-container{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}.pulse{animation:pulse 2s ease-out infinite;background:#667eea4d;border-radius:50%;height:100%;position:absolute;width:100%}.pulse-icon{font-size:48px;position:relative;z-index:1}.waiting-status{text-align:center}.student-name{color:#4a5568;font-size:14px;margin-bottom:10px}.waiting-message{color:#2d3748;font-size:18px;font-weight:500;margin-bottom:10px}.waiting-timer{color:#718096;font-size:14px}.session-details{background:#fff;border-radius:12px;box-shadow:0 4px 12px #00000014;padding:20px;width:100%}.session-details h3{color:#2d3748;font-size:16px;margin-bottom:15px}.detail-item{border-bottom:1px solid #e2e8f0;padding:8px 0}.detail-item:last-child{border-bottom:none}.detail-label{color:#718096;font-size:14px}.detail-value{color:#2d3748;font-size:14px;font-weight:600}.waiting-footer{margin-top:30px;text-align:center}.leave-button{background:#e53e3e;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;padding:12px 24px;transition:all .2s}.leave-button:hover{background:#c53030;transform:translateY(-1px)}.waiting-tip{color:#718096;font-size:14px;margin-top:15px}@media (max-width:480px){.waiting-container{padding:15px}.waiting-header h1{font-size:24px}.waiting-animation{height:100px;width:100px}.pulse-icon{font-size:40px}}.response-button{-webkit-tap-highlight-color:transparent;align-items:center;background:#fff;border:2px solid #e2e8f0;border-radius:12px;color:#2d3748;cursor:pointer;display:flex;font-size:18px;font-weight:500;gap:12px;justify-content:center;overflow:hidden;padding:20px;position:relative;touch-action:manipulation;transition:all .2s;-webkit-user-select:none;user-select:none;width:100%}.response-button:hover:not(.response-button--disabled){border-color:#cbd5e0;box-shadow:0 4px 12px #00000014;transform:translateY(-2px)}.response-button:active:not(.response-button--disabled){box-shadow:0 2px 6px #0000000f;transform:translateY(0)}.response-button--selected{background:#667eea;border-color:#667eea;color:#fff}.response-button--selected:hover{background:#5a67d8;border-color:#5a67d8}.response-button--disabled{cursor:not-allowed;opacity:.6}.response-button--choice .option-label{align-items:center;background:#f7fafc;border-radius:50%;display:flex;flex-shrink:0;font-size:16px;font-weight:700;height:36px;justify-content:center;width:36px}.response-button--choice.response-button--selected .option-label{background:#fff3;color:#fff}.response-button--true{border-color:#48bb78}.response-button--true:hover:not(.response-button--disabled){background:#f0fff4;border-color:#38a169}.response-button--true.response-button--selected{background:#48bb78;border-color:#48bb78}.response-button--false{border-color:#f56565}.response-button--false:hover:not(.response-button--disabled){background:#fff5f5;border-color:#e53e3e}.response-button--false.response-button--selected{background:#f56565;border-color:#f56565}.response-button--checkbox{justify-content:flex-start}.checkbox-indicator{font-size:24px;line-height:1}.option-text{line-height:1.3;text-align:left}.selected-indicator{animation:checkIn .3s ease-out;color:#fff;font-size:20px;position:absolute;right:20px}@keyframes checkIn{0%{transform:scale(0)}to{transform:scale(1)}}.response-button:after{background:#0000001a;border-radius:50%;content:"";height:0;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .3s,height .3s;width:0}.response-button:active:after{height:100%;width:100%}@media (max-width:480px){.response-button{font-size:16px;padding:16px}.response-button--choice .option-label{font-size:14px;height:32px;width:32px}.checkbox-indicator{font-size:20px}}.timer{flex-direction:column;gap:4px;min-width:100px}.timer-display{color:#2d3748;font-size:20px;gap:8px}.timer-icon{font-size:24px}.timer-text{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;letter-spacing:1px}.timer-progress{background:#e2e8f0;border-radius:2px;height:4px;overflow:hidden;position:relative}.timer-progress-bar{background:#667eea;border-radius:2px;height:100%;transition:width 1s linear}.timer--urgent .timer-display{color:#e67e22}.timer--urgent .timer-icon{animation:pulse-icon 1s ease-in-out infinite}.timer--urgent .timer-progress-bar{background:#f39c12}.timer--critical .timer-display{color:#e74c3c}.timer--critical .timer-icon{animation:pulse-icon .5s ease-in-out infinite}.timer--critical .timer-progress-bar{background:#e74c3c}.timer--paused .timer-display{color:#718096}.timer--paused .timer-progress-bar{background:#cbd5e0}@keyframes pulse-icon{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}@media (max-width:480px){.timer-display{font-size:18px}.timer-icon{font-size:20px}}.question-response{background:#f5f7fa;display:flex;flex-direction:column;height:100vh}.question-header{background:#fff;box-shadow:0 2px 8px #00000014;padding:15px 20px}.question-number{color:#4a5568;font-size:16px}.question-content{-webkit-overflow-scrolling:touch;flex:1 1;overflow-y:auto;padding:20px}.question-text{color:#2d3748;font-size:20px;line-height:1.4;margin-bottom:30px;text-align:center}.options-grid{grid-gap:15px;gap:15px;grid-template-columns:1fr;max-width:500px}.options-grid,.true-false-options{display:grid;margin:0 auto;width:100%}.true-false-options{grid-gap:20px;gap:20px;grid-template-columns:1fr 1fr;max-width:400px}.short-answer-container{margin:0 auto;max-width:500px;width:100%}.short-answer-input{border:2px solid #e2e8f0;border-radius:12px;font-family:inherit;font-size:16px;min-height:120px;padding:15px;resize:vertical;transition:all .2s;width:100%}.short-answer-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.submit-answer,.submit-multiple{background:#667eea;border:none;border-radius:12px;color:#fff;cursor:pointer;font-size:18px;font-weight:600;margin-top:20px;padding:16px 32px;transition:all .3s;width:100%}.submit-answer:hover:not(:disabled),.submit-multiple:hover:not(:disabled){background:#5a67d8;box-shadow:0 8px 20px #667eea4d;transform:translateY(-2px)}.submit-answer:disabled,.submit-multiple:disabled{cursor:not-allowed;opacity:.6}.submitted-message{animation:fadeIn .3s ease-out;padding:40px 20px;text-align:center}.checkmark{animation:checkBounce .5s ease-out;color:#48bb78;font-size:72px;margin-bottom:20px}@keyframes checkBounce{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.submitted-message h3{color:#2d3748;font-size:24px;margin-bottom:10px}.submitted-message p{color:#718096;font-size:16px}.question-footer{background:#fff;border-top:1px solid #e2e8f0;padding:15px 20px;text-align:center}.points-value{color:#718096;font-size:14px;font-style:italic}@media (min-width:768px){.options-grid{grid-template-columns:1fr 1fr}.question-text{font-size:24px}}@media (max-width:480px){.question-content{padding:15px}.question-text{font-size:18px;margin-bottom:20px}.options-grid{gap:10px}}.session-complete{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:20px}.complete-container{animation:slideUp .3s ease-out;background:#fff;border-radius:20px;box-shadow:0 20px 40px #0000001a;max-width:450px;padding:40px 30px;width:100%}.complete-header{margin-bottom:30px;text-align:center}.complete-icon{animation:celebrate .6s ease-out;font-size:64px;margin-bottom:20px}@keyframes celebrate{0%{transform:scale(0) rotate(0deg)}50%{transform:scale(1.2) rotate(180deg)}to{transform:scale(1) rotate(1turn)}}.complete-header h1{color:#2d3748;font-size:32px;font-weight:700;margin-bottom:8px}.complete-header p{color:#718096;font-size:18px;margin:0}.complete-content{margin-bottom:30px}.session-summary{background:#f7fafc;border-radius:12px;margin-bottom:20px;padding:20px}.session-summary h3{color:#2d3748;font-size:18px;margin-bottom:15px}.summary-item{border-bottom:1px solid #e2e8f0;padding:10px 0}.summary-label{color:#718096;font-size:14px}.summary-value{color:#2d3748;font-size:14px;font-weight:600}.complete-message{text-align:center}.complete-message p{color:#4a5568;font-size:16px;line-height:1.5;margin:8px 0}.complete-footer{text-align:center}.new-session-button{background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:12px;color:#fff;cursor:pointer;font-size:18px;font-weight:600;padding:16px 32px;transition:all .3s;width:100%}.new-session-button:hover{box-shadow:0 8px 20px #667eea4d;transform:translateY(-2px)}.new-session-button:active{transform:translateY(0)}.complete-note{color:#718096;font-size:14px;margin-top:15px}@media (max-width:480px){.complete-container{padding:30px 20px}.complete-icon{font-size:56px}.complete-header h1{font-size:28px}.complete-header p{font-size:16px}}.connection-status{animation:slideDown .3s ease-out;background:#fed7d7;box-shadow:0 2px 8px #0000001a;color:#742a2a;left:0;padding:8px 15px;position:fixed;right:0;text-align:center;top:0;z-index:1000}@keyframes slideDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.connection-indicator{align-items:center;display:flex;font-size:14px;font-weight:500;gap:8px;justify-content:center}.connection-icon{animation:blink 1.5s ease-in-out infinite;font-size:18px}.connection-icon.reconnecting{animation:spin 1s linear infinite}.connection-text{margin:0}@keyframes blink{0%,to{opacity:1}50%{opacity:.5}}@media (max-width:480px){.connection-status{padding:6px 10px}.connection-indicator{font-size:13px}.connection-icon{font-size:16px}}.debug-panel{background:#fff;border-radius:8px;bottom:20px;box-shadow:0 2px 8px #00000026;position:fixed;right:20px;transition:all .3s ease;z-index:9999}.debug-toggle{background:#ff6b6b;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:20px;padding:8px 12px;transition:transform .2s}.debug-toggle:hover{transform:scale(1.1)}.debug-panel.expanded{width:300px}.debug-content{border-top:1px solid #e0e0e0;padding:16px}.debug-content h4{color:#333;margin:0 0 12px}.debug-info{background:#f5f5f5;border-radius:4px;font-size:13px;margin-bottom:12px;padding:12px}.debug-info p{font-weight:600;margin:0 0 8px}.debug-info ul{list-style:none;margin:0;padding-left:20px}.debug-info li{margin:4px 0}.debug-actions{display:flex;gap:8px;margin-bottom:12px}.debug-actions button{background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer;flex:1 1;font-size:12px;padding:6px 12px;transition:all .2s}.debug-actions button:hover{background:#f0f0f0;border-color:#999}.debug-logs{color:#666;font-size:12px;text-align:center}.student-app{background-color:#f5f7fa;display:flex;flex-direction:column;min-height:100vh;position:relative}.student-content{-webkit-overflow-scrolling:touch;display:flex;flex:1 1;flex-direction:column;margin:0 auto;max-width:600px;overflow-y:auto;padding:0;width:100%}@media (max-width:600px){.student-content{max-width:100%}}.student-app{height:100vh;height:-webkit-fill-available;height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%}.student-app button{-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-user-select:none;user-select:none}.student-app input,.student-app textarea{font-size:16px}.loading-screen{align-items:center;display:flex;flex-direction:column;height:100vh;justify-content:center;padding:20px;text-align:center}.loading-screen h2{color:#333;font-size:24px;margin-bottom:10px}.loading-screen p{color:#666;font-size:16px}.student-dashboard{background-color:var(--bg-primary);color:var(--text-primary);min-height:calc(100vh - 120px);padding:20px}.student-dashboard-header{margin-bottom:20px;padding:30px 0;text-align:center}.student-dashboard-header h1{color:var(--color-primary);font-size:2.5rem;font-weight:700;margin:0 0 10px}.welcome-message{color:var(--text-secondary);font-size:1.1rem;margin:0}.student-dashboard-content{display:flex;flex-direction:column;gap:24px;margin:0 auto;max-width:800px}.dashboard-section{background-color:var(--bg-card);border:1px solid var(--border-primary);border-radius:16px;box-shadow:var(--shadow-sm);padding:24px}.section-header{align-items:flex-start;display:flex;gap:16px;margin-bottom:20px}.section-icon{align-items:center;border-radius:12px;display:flex;flex-shrink:0;height:48px;justify-content:center;width:48px}.section-icon svg{height:24px;width:24px}.live-icon{background:linear-gradient(135deg,#ff6b6b,#ee5a5a);color:#fff}.quiz-icon{background:linear-gradient(135deg,var(--color-primary) 0,#0dcaf0 100%);color:#fff}.section-header h2{color:var(--text-primary);font-size:1.4rem;font-weight:600;margin:0 0 4px}.section-header p{color:var(--text-secondary);font-size:.9rem;margin:0}.join-session-form{display:flex;flex-direction:column;gap:16px}.student-dashboard .form-group{display:flex;flex-direction:column;gap:6px}.student-dashboard .form-group label{color:var(--text-secondary);font-size:.85rem;font-weight:500}.student-dashboard .form-group input{background-color:var(--input-bg);border:2px solid var(--border-primary);border-radius:10px;color:var(--text-primary);font-size:1rem;padding:14px 16px;transition:border-color .2s,background .2s}.student-dashboard .form-group input:focus{background-color:var(--input-bg);border-color:var(--color-primary);outline:none}.student-dashboard .form-group input::placeholder{color:var(--text-tertiary)}.student-dashboard .form-group input:disabled{cursor:not-allowed;opacity:.6}.student-dashboard .error-message{background-color:#dc35451a;border-radius:8px;color:var(--color-danger);font-size:.9rem;padding:10px}.join-button{background:linear-gradient(135deg,#ff6b6b,#ee5a5a);border:none;border-radius:10px;color:#fff;cursor:pointer;font-size:1.1rem;font-weight:600;padding:16px 24px;transition:transform .2s,box-shadow .2s}.join-button:hover:not(:disabled){box-shadow:0 8px 20px #ff6b6b4d;transform:translateY(-2px)}.join-button:disabled{cursor:not-allowed;opacity:.6}.corner-connection-status{align-items:center;background:var(--bg-card);border:1px solid var(--border-primary);border-radius:20px;box-shadow:var(--shadow-sm);display:flex;font-size:.75rem;font-weight:500;gap:6px;left:16px;padding:6px 12px;position:fixed;top:70px;transition:all .3s ease;z-index:100}.corner-connection-status.connected{border-color:var(--color-success)}.corner-connection-status.disconnected{border-color:var(--color-warning)}.corner-status-dot{border-radius:50%;height:8px;width:8px}.corner-connection-status.connected .corner-status-dot{background:var(--color-success);box-shadow:0 0 6px #19875480}.corner-connection-status.disconnected .corner-status-dot{animation:pulse 1.5s infinite;background:var(--color-warning)}.corner-status-text{color:var(--text-secondary)}.quiz-actions{flex-direction:column}.quiz-button{border:none;border-radius:10px;cursor:pointer;font-size:1rem;font-weight:600;padding:16px 24px;transition:transform .2s,box-shadow .2s}.quiz-button:not(.secondary){background:linear-gradient(135deg,var(--color-primary) 0,#0dcaf0 100%);color:#fff}.quiz-button:not(.secondary):hover{box-shadow:0 8px 20px #0d6efd4d;transform:translateY(-2px)}.quiz-button.secondary{background-color:var(--bg-tertiary);border:1px solid var(--border-primary);color:var(--text-primary)}.quiz-button.secondary:hover{background-color:var(--bg-hover)}.auth-prompt{padding:20px;text-align:center}.auth-prompt p{color:var(--text-secondary);margin:0 0 16px}.login-button{background:linear-gradient(135deg,var(--color-primary) 0,#0dcaf0 100%);border:none;border-radius:10px;color:#fff;cursor:pointer;font-size:1rem;font-weight:600;padding:14px 32px;transition:transform .2s,box-shadow .2s}.login-button:hover{box-shadow:0 8px 20px #0d6efd4d;transform:translateY(-2px)}.info-section h3{color:var(--text-primary);font-size:1.2rem;font-weight:600;margin:0 0 16px}.info-cards{display:flex;flex-direction:column;gap:12px}.info-card{align-items:flex-start;background-color:var(--bg-secondary);border-radius:10px;display:flex;gap:16px;padding:16px}.info-number{align-items:center;background:linear-gradient(135deg,var(--color-primary) 0,#0dcaf0 100%);border-radius:50%;color:#fff;display:flex;flex-shrink:0;font-size:.9rem;font-weight:700;height:32px;justify-content:center;width:32px}.info-text strong{color:var(--text-primary);display:block;font-size:1rem;margin-bottom:4px}.info-text p{color:var(--text-secondary);font-size:.85rem;line-height:1.4;margin:0}@media (max-width:600px){.student-dashboard{padding:16px}.student-dashboard-header h1{font-size:2rem}.dashboard-section{padding:20px}.section-header{align-items:center;flex-direction:column;text-align:center}.section-header h2{font-size:1.2rem}}.student-quiz-list{background-color:var(--bg-primary);color:var(--text-primary);min-height:100vh;padding:20px}.quiz-list-header{gap:16px;margin-bottom:24px}.back-button,.quiz-list-header{align-items:center;display:flex}.back-button{background:var(--bg-tertiary);border:none;border-radius:8px;color:var(--text-primary);cursor:pointer;font-size:.9rem;gap:8px;padding:10px 16px;transition:background .2s}.back-button:hover{background:var(--bg-hover)}.back-button svg{height:18px;width:18px}.quiz-list-header h1{color:var(--color-primary);font-size:1.8rem;font-weight:700;margin:0}.filter-tabs{background:var(--bg-secondary);border-radius:10px;display:flex;gap:8px;margin-bottom:24px;padding:4px;width:-webkit-fit-content;width:fit-content}.filter-tab{background:#0000;border:none;border-radius:8px;color:var(--text-secondary);cursor:pointer;font-size:.9rem;font-weight:500;padding:10px 20px;transition:all .2s}.filter-tab:hover{color:var(--text-primary)}.filter-tab.active{background:var(--color-primary);color:#fff}.error-banner{align-items:center;background:#dc35451a;border:1px solid var(--color-danger);border-radius:10px;display:flex;justify-content:space-between;margin-bottom:24px;padding:16px}.error-banner p{color:var(--color-danger);margin:0}.error-banner button{background:#dc354533;border:1px solid var(--color-danger);border-radius:6px;color:var(--color-danger);cursor:pointer;padding:8px 16px}.loading-state{align-items:center;display:flex;flex-direction:column;gap:16px;height:60vh;justify-content:center}.loading-state p{color:var(--text-secondary);font-size:1rem}.empty-state{flex-direction:column;text-align:center}.empty-icon,.empty-state{align-items:center;display:flex;justify-content:center}.empty-icon{background:var(--bg-secondary);border-radius:50%;height:80px;margin-bottom:20px;width:80px}.empty-icon svg{color:var(--text-tertiary);height:40px;width:40px}.empty-state h3{color:var(--text-primary);font-size:1.3rem;font-weight:600;margin:0 0 8px}.empty-state p{color:var(--text-secondary);margin:0;max-width:300px}.quiz-list{display:flex;flex-direction:column;gap:16px;max-width:800px}.quiz-card{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:16px;padding:24px;transition:transform .2s,box-shadow .2s}.quiz-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.quiz-card-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:12px}.quiz-card-header h3{color:var(--text-primary);font-size:1.2rem;font-weight:600;margin:0}.status-badge{font-size:.75rem;text-transform:uppercase}.status-badge.available{background:#19875433;color:var(--color-success)}.status-badge.in-progress{background:#ffc10733;color:var(--color-warning)}.status-badge.completed{background:#0d6efd33;color:var(--color-primary)}.status-badge.expired{background:#dc354533;color:var(--color-danger)}.quiz-description{color:var(--text-secondary);font-size:.9rem;line-height:1.5;margin:0 0 16px}.quiz-meta{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:16px}.meta-item{align-items:center;color:var(--text-tertiary);font-size:.85rem;gap:6px}.meta-item svg{height:16px;width:16px}.meta-item.deadline{color:var(--color-warning)}.quiz-score{align-items:center;background:var(--bg-secondary);border-radius:8px;display:flex;gap:12px;margin-bottom:16px;padding:12px 16px}.score-value{color:var(--text-primary);font-size:1.3rem}.score-value.passing{color:var(--color-success)}.score-value.failing{color:var(--color-danger)}.quiz-actions{display:flex;gap:12px}.action-button{flex:1 1;padding:14px 20px}.action-button.primary:hover:not(:disabled){box-shadow:0 8px 20px #0d6efd4d;transform:translateY(-2px)}.action-button.primary:disabled{cursor:not-allowed;opacity:.5}@media (max-width:600px){.student-quiz-list{padding:16px}.quiz-list-header{align-items:flex-start;flex-direction:column;gap:12px}.filter-tabs{justify-content:space-between;width:100%}.filter-tab{flex:1 1;padding:10px 12px;text-align:center}.quiz-card{padding:20px}.quiz-card-header,.quiz-meta{flex-direction:column;gap:8px}.quiz-actions{flex-direction:column}}.student-quiz-taking{background-color:var(--bg-primary);color:var(--text-primary);min-height:100vh;padding:20px}.error-state,.loading-state{align-items:center;display:flex;flex-direction:column;height:60vh;justify-content:center;text-align:center}.loading-spinner{animation:spin 1s linear infinite;border:3px solid var(--border-secondary);border-radius:50%;border-top-color:var(--color-primary);height:48px;margin-bottom:16px;width:48px}@keyframes spin{to{transform:rotate(1turn)}}.error-state h2{color:var(--color-danger);margin-bottom:8px}.error-state button{background:var(--color-primary);border:none;border-radius:8px;color:#fff;cursor:pointer;margin-top:20px;padding:12px 24px}.quiz-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:20px;margin-left:auto;margin-right:auto;max-width:900px}.quiz-info h1{color:var(--color-primary);font-size:1.5rem;font-weight:600;margin:0 0 8px}.progress-info{color:var(--text-secondary);font-size:.9rem}.answered-count{color:var(--color-success);margin-left:8px}.timer{font-feature-settings:"tnum";align-items:center;background:var(--bg-tertiary);border-radius:10px;color:var(--text-primary);display:flex;font-size:1.2rem;font-variant-numeric:tabular-nums;font-weight:600;gap:8px;padding:12px 20px}.timer svg{height:20px;width:20px}.timer.warning{background:#fbbf2433;color:var(--color-warning)}.timer.critical{animation:pulse 1s infinite;background:#dc354533;color:var(--color-danger)}.progress-bar{background:var(--border-secondary);border-radius:2px;height:4px;margin:0 auto 30px;max-width:900px;overflow:hidden}.progress-fill{background:var(--color-primary);border-radius:2px;height:100%;transition:width .3s ease}.question-container{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:16px;margin:0 auto 30px;max-width:900px}.question-text{color:var(--text-primary);font-size:1.2rem;line-height:1.6;margin-bottom:24px}.options-list{display:flex;flex-direction:column;gap:12px}.option-item{align-items:center;background:var(--bg-secondary);border:2px solid var(--border-secondary);border-radius:12px;cursor:pointer;display:flex;gap:16px;padding:16px 20px;transition:all .2s}.option-item:hover{background:var(--bg-hover);border-color:var(--border-primary)}.option-item.selected{background:var(--bg-info);border-color:var(--color-primary)}.option-item input{display:none}.option-letter{align-items:center;background:var(--bg-tertiary);border-radius:8px;color:var(--text-primary);display:flex;flex-shrink:0;font-size:.9rem;font-weight:600;height:32px;justify-content:center;width:32px}.option-item.selected .option-letter{background:var(--color-primary);color:#fff}.option-text{flex:1 1;font-size:1rem;line-height:1.4}.options-list.true-false{flex-direction:row;gap:16px}.options-list.true-false .option-item{flex:1 1;justify-content:center;padding:20px}.options-list.checkboxes .option-item.selected .option-letter:before{content:"✓"}.helper-text{color:var(--text-secondary);font-size:.85rem;font-style:italic;margin-top:8px}.fill-in-blank input,.short-answer textarea{background:var(--input-bg);border:2px solid var(--border-primary);border-radius:10px;color:var(--text-primary);font-family:inherit;font-size:1rem;padding:16px;resize:vertical;width:100%}.fill-in-blank input:focus,.short-answer textarea:focus{border-color:var(--color-primary);outline:none}.fill-in-blank input::placeholder,.short-answer textarea::placeholder{color:var(--text-tertiary)}.quiz-navigation{align-items:center;display:flex;gap:16px;justify-content:space-between;margin:0 auto 30px;max-width:900px}.nav-button{border:none;border-radius:10px;cursor:pointer;font-size:1rem;font-weight:600;padding:14px 28px;transition:all .2s}.nav-button.next,.nav-button.prev{background:var(--bg-tertiary);color:var(--text-primary)}.nav-button.next:hover:not(:disabled),.nav-button.prev:hover:not(:disabled){background:var(--bg-hover)}.nav-button:disabled{cursor:not-allowed;opacity:.4}.nav-button.submit{background:var(--color-success);color:#fff}.nav-button.submit:hover:not(:disabled){box-shadow:0 8px 20px #1987544d;transform:translateY(-2px)}.question-dots{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.dot{background:var(--border-primary);border:none;border-radius:50%;cursor:pointer;height:12px;padding:0;transition:all .2s;width:12px}.dot:hover{background:var(--text-tertiary)}.dot.current{background:var(--color-primary);transform:scale(1.2)}.dot.answered{background:var(--color-success)}.dot.current.answered{background:var(--color-primary);box-shadow:0 0 0 3px #19875480}.question-overview{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:16px;margin:0 auto;max-width:900px;padding:20px}.question-overview h3{color:var(--text-secondary);font-size:1rem;font-weight:600;margin:0 0 16px}.overview-grid{grid-gap:8px;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}.overview-item{align-items:center;background:#0000;border:2px solid var(--border-secondary);border-radius:8px;color:var(--text-secondary);cursor:pointer;display:flex;font-size:.9rem;font-weight:500;height:40px;justify-content:center;transition:all .2s;width:40px}.overview-item:hover{border-color:var(--border-primary);color:var(--text-primary)}.overview-item.current{background:var(--bg-info);border-color:var(--color-primary);color:var(--color-primary)}.overview-item.answered{background:#1987541a;border-color:var(--color-success);color:var(--color-success)}.overview-item.current.answered{background:var(--bg-info);border-color:var(--color-primary);color:var(--text-primary)}@media (max-width:600px){.student-quiz-taking{padding:16px}.quiz-header{flex-direction:column;gap:16px}.timer{align-self:flex-start}.question-container{padding:20px}.question-text{font-size:1.1rem}.quiz-navigation{flex-wrap:wrap}.question-dots{margin-bottom:16px;order:-1;width:100%}.nav-button{padding:12px 20px}.options-list.true-false{flex-direction:column}}.student-quiz-results{background-color:var(--bg-primary);color:var(--text-primary);min-height:100vh;padding:20px}.no-results{align-items:center;display:flex;flex-direction:column;height:60vh;justify-content:center;text-align:center}.no-results h2{color:var(--text-secondary);margin-bottom:8px}.no-results p{color:var(--text-tertiary);margin-bottom:24px}.no-results button{background:var(--color-primary);border:none;border-radius:8px;color:#fff;cursor:pointer;padding:12px 24px}.results-header{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:20px;gap:30px;margin:0 auto 40px;max-width:800px;padding:30px}.results-header,.score-circle{align-items:center;display:flex}.score-circle{border-radius:50%;flex-direction:column;flex-shrink:0;height:140px;justify-content:center;position:relative;width:140px}.score-circle.passing{background:#19875426;border:4px solid var(--color-success)}.score-circle.failing{background:#dc354526;border:4px solid var(--color-danger)}.score-value{font-size:2.5rem;font-weight:700}.score-circle.passing .score-value{color:var(--color-success)}.score-circle.failing .score-value{color:var(--color-danger)}.score-label{color:var(--text-secondary);font-size:.9rem;margin-top:4px}.results-summary h1{color:var(--color-primary);font-size:2rem;font-weight:700;margin:0 0 12px}.points-summary{color:var(--text-secondary);font-size:1.1rem;margin:0}.points-summary strong{color:var(--text-primary)}.result-message{color:var(--text-tertiary);font-size:.95rem;margin-top:8px}.performance-section{margin:0 auto 30px;max-width:800px}.performance-section h2{color:var(--text-secondary);font-size:1.2rem;font-weight:600;margin:0 0 16px}.performance-stats{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}.stat-card{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:12px}.stat-value{color:var(--text-primary);font-size:2rem;margin-bottom:4px}.stat-value.correct{color:var(--color-success)}.stat-value.incorrect{color:var(--color-danger)}.stat-label{color:var(--text-secondary);font-size:.85rem}.review-section{margin:0 auto 30px;max-width:800px}.review-section h2{color:var(--text-secondary);font-size:1.2rem;font-weight:600;margin:0 0 16px}.questions-review{display:flex;flex-direction:column;gap:12px}.review-item{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:12px;padding:20px}.review-item.correct{border-left:4px solid var(--color-success)}.review-item.incorrect{border-left:4px solid var(--color-danger)}.review-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.question-number{color:var(--text-primary);font-weight:600}.status-badge{border-radius:20px;font-size:.8rem;font-weight:600;padding:4px 12px}.status-badge.correct{background:#19875433;color:var(--color-success)}.status-badge.incorrect{background:#dc354533;color:var(--color-danger)}.review-details{display:flex;flex-direction:column;gap:8px}.answer-row{display:flex;font-size:.9rem;gap:12px}.answer-row .label{color:var(--text-secondary);min-width:120px}.answer-row .value{color:var(--text-primary)}.answer-row.correct-answer .value{color:var(--color-success)}.points-row{border-top:1px solid var(--border-secondary);color:var(--text-tertiary);font-size:.85rem;margin-top:8px;padding-top:8px}.results-actions{display:flex;gap:16px;justify-content:center;margin:40px auto;max-width:800px}.action-button{border:none;border-radius:10px;cursor:pointer;font-size:1rem;font-weight:600;padding:16px 32px;transition:all .2s}.action-button.primary{background:var(--color-primary);color:#fff}.action-button.primary:hover{box-shadow:0 8px 20px #0d6efd4d;transform:translateY(-2px)}.action-button.secondary{background:var(--bg-tertiary);border:1px solid var(--border-primary);color:var(--text-primary)}.action-button.secondary:hover{background:var(--bg-hover)}@media (max-width:600px){.student-quiz-results{padding:16px}.results-header{flex-direction:column;padding:24px;text-align:center}.score-circle{height:120px;width:120px}.score-value{font-size:2rem}.results-summary h1{font-size:1.5rem}.performance-stats{grid-template-columns:1fr}.review-header{align-items:flex-start;flex-direction:column;gap:8px}.answer-row{flex-direction:column;gap:4px}.answer-row .label{min-width:auto}.results-actions{flex-direction:column}}.exam-list-container{margin:0 auto;max-width:1200px;padding:20px}.exam-controls{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px}.exam-stats{margin-bottom:30px}.stat-card{background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:20px;text-align:center}.stat-number{color:#007bff;font-size:2rem;font-weight:700;margin-bottom:5px}.stat-label{color:#6c757d;font-size:.9rem;letter-spacing:.5px;text-transform:uppercase}.empty-state{background:#fff;border:2px dashed #dee2e6;border-radius:12px;padding:60px 20px}.empty-state>div:first-child{font-size:4rem;opacity:.5}.exam-grid{grid-gap:20px;display:grid;gap:20px}.exam-grid-header{border-radius:8px;margin-bottom:10px;padding:15px 20px}.exam-card,.exam-grid-header{background:#fff;border:1px solid #e9ecef}.exam-card{border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden;padding:0;transition:all .3s ease}.exam-card:hover{box-shadow:0 4px 16px #00000026;transform:translateY(-2px)}.exam-card-header{align-items:center;background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:15px 20px}.exam-card-body{padding:20px}.exam-title{margin-bottom:10px}.exam-description{line-height:1.5;margin-bottom:15px}.exam-meta{grid-gap:10px;display:grid;gap:10px;grid-template-columns:1fr 1fr;margin-bottom:15px}.meta-item{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;display:flex;justify-content:space-between;padding:8px 12px}.meta-label{color:#495057;font-weight:500}.meta-value{color:#007bff;font-weight:500}.exam-dates{border-top:1px solid #e9ecef;padding-top:15px}.exam-card-actions{background:#f8f9fa;border-top:1px solid #e9ecef;display:flex;gap:8px;padding:15px 20px}.exam-card-actions .btn{flex:1 1;font-size:.875rem}.badge{border-radius:12px;font-size:.75rem;font-weight:500;padding:6px 12px}.badge-success{background-color:#d4edda;border:1px solid #c3e6cb;color:#155724}.badge-secondary{border:1px solid #d6d8db}.badge-warning{background-color:#fff3cd;border:1px solid #ffeaa7;color:#856404}.badge-danger{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24}@media (max-width:768px){.exam-list-container{padding:15px}.exam-controls .row>div{margin-bottom:15px}.exam-meta{grid-template-columns:1fr}.exam-card-actions{flex-wrap:wrap}.exam-card-actions .btn{flex:none;min-width:calc(50% - 4px)}.stat-card{margin-bottom:15px}}.alert{border-radius:12px;padding:20px}.alert-heading{color:inherit;margin-bottom:15px}.btn:focus{box-shadow:0 0 0 .2rem #007bff40}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.exam-card{animation:slideIn .3s ease-out}.create-exam-container{margin:0 auto;max-width:1000px;padding:20px}.create-exam-header{border-bottom:2px solid #e9ecef;margin-bottom:30px;padding-bottom:20px;text-align:center}.create-exam-header h1{color:#2c3e50;font-weight:600;margin-bottom:10px}.step-indicator{margin-bottom:40px}.steps{gap:20px;justify-content:center}.step,.steps{align-items:center;display:flex;position:relative}.step{flex-direction:column;z-index:2}.step-number{align-items:center;background:#e9ecef;border:2px solid #e9ecef;border-radius:50%;color:#6c757d;display:flex;font-weight:700;height:40px;justify-content:center;transition:all .3s ease;width:40px}.step.active .step-number{background:#007bff;border-color:#007bff;color:#fff}.step.completed .step-number{background:#28a745;border-color:#28a745;color:#fff}.step.completed .step-number:before{content:"✓"}.step-title{color:#6c757d;font-size:.875rem;font-weight:500;margin-top:8px;transition:color .3s ease}.step.active .step-title{color:#007bff}.step.completed .step-title{color:#28a745}.steps:before{background:#e9ecef;content:"";height:2px;left:15%;position:absolute;right:15%;top:20px;z-index:1}.create-exam-form{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 4px 12px #0000001a;margin-bottom:30px;padding:40px}.form-step h3{color:#2c3e50;font-weight:600;margin-bottom:10px}.form-step>p{font-size:1.1rem;margin-bottom:30px}.form-group{margin-bottom:25px}.form-control{border:2px solid #e9ecef;border-radius:8px;padding:12px 16px;transition:all .3s ease}.form-control:focus{border-color:#007bff}.form-text{font-size:.875rem;margin-top:6px}.selection-method{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;margin-bottom:30px;padding:20px}.method-options{grid-gap:15px;display:grid;gap:15px;margin-top:15px}.form-check{background:#fff;border:2px solid #e9ecef;border-radius:8px;padding:15px;transition:all .3s ease}.form-check:hover{background:#f8f9fa;border-color:#007bff}.form-check-input:checked+.form-check-label{color:#007bff}.form-check-label{cursor:pointer;margin-bottom:0;width:100%}.question-selection-manual{margin-top:20px}.question-list{background:#f8f9fa;border:2px solid #e9ecef;max-height:400px;overflow-y:auto}.question-item,.question-list{border-radius:8px;padding:15px}.question-item{background:#fff;border:1px solid #e9ecef;margin-bottom:15px}.question-preview{width:100%}.question-text{color:#2c3e50;margin-bottom:10px}.question-meta{align-items:center;display:flex;flex-wrap:wrap;gap:10px}.question-meta .badge{font-size:.75rem;padding:4px 8px}.selection-summary{background:#e7f3ff;border:1px solid #b3d7ff;border-radius:8px;margin-top:15px;padding:15px;text-align:center}.settings-sections{grid-gap:30px;display:grid;gap:30px}.settings-section{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:25px}.settings-section h5{align-items:center;color:#2c3e50;display:flex;font-weight:600;gap:8px;margin-bottom:20px}.settings-section .form-check{background:#fff;margin-bottom:12px;padding:12px 15px}.exam-summary{grid-gap:25px;display:grid;gap:25px}.summary-section{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px}.summary-section h5{border-bottom:2px solid #e9ecef;color:#2c3e50;font-weight:600;margin-bottom:15px;padding-bottom:8px}.summary-item{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:8px 0}.summary-item:last-child{border-bottom:none}.summary-label{color:#6c757d;font-weight:500}.summary-value{color:#2c3e50;font-weight:500}.form-actions{background:#f8f9fa;border:1px solid #e9ecef;border-radius:12px;display:flex;justify-content:center;padding:20px}.action-buttons{align-items:center;gap:15px}.action-buttons .btn{border-radius:8px;font-weight:500;padding:12px 24px;transition:all .3s ease}.btn-primary{border-color:#007bff}.btn-primary:hover{border-color:#0056b3;transform:translateY(-1px)}.btn-success{background:#28a745;border-color:#28a745}.btn-success:hover{background:#1e7e34;border-color:#1e7e34;transform:translateY(-1px)}.btn-outline-primary,.btn-outline-secondary{border-width:2px}@media (max-width:768px){.create-exam-container{padding:15px}.create-exam-form{padding:20px}.steps{gap:10px}.step-number{height:35px;width:35px}.step-title{font-size:.75rem}.action-buttons{flex-direction:column;width:100%}.action-buttons .btn{width:100%}.question-meta,.summary-item{align-items:flex-start;flex-direction:column;gap:5px}}.form-step{animation:fadeIn .3s ease-out}.btn:disabled{cursor:not-allowed;opacity:.6}.badge-info{background-color:#d1ecf1;color:#0c5460}.badge-secondary{background-color:#e2e3e5;color:#383d41}.form-check-input:focus,button:focus{box-shadow:0 0 0 .2rem #007bff40}button:focus{outline:none}.algorithmic-configuration{background:#f8f9fa;border:2px solid #e9ecef;border-radius:12px;padding:25px}.algorithm-header{margin-bottom:30px;text-align:center}.algorithm-header h5{color:#2c3e50;font-weight:600;margin-bottom:10px}.algorithm-section{background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px;padding:20px}.algorithm-section h6{align-items:center;color:#2c3e50;display:flex;font-weight:600;gap:8px;margin-bottom:15px}.scope-configuration{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:15px}.range-inputs{grid-gap:15px;display:grid;gap:15px}.range-input{display:flex;flex-direction:column;gap:8px}.range-input label{color:#495057;font-size:.9rem;font-weight:500}.distribution-configuration{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:20px}.distribution-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:20px;padding-bottom:15px}.distribution-header span{color:#495057;font-weight:500}.distribution-rules{grid-gap:15px;display:grid;gap:15px}.distribution-rule{background:#fff;border:1px solid #e9ecef;border-radius:6px;padding:15px}.rule-inputs{grid-gap:15px;align-items:end;display:grid;gap:15px;grid-template-columns:2fr 1fr auto}.distribution-summary{background:#fff;border:2px solid #007bff;border-radius:6px;margin-top:20px;padding:15px;text-align:center}.algorithm-preview,.fallback-configuration{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:20px}.preview-info{margin-bottom:20px}.preview-info ul{margin-bottom:0;padding-left:20px}.preview-info li{color:#495057;margin-bottom:8px}@media (max-width:768px){.algorithm-section,.algorithmic-configuration{padding:15px}.range-inputs,.rule-inputs{grid-template-columns:1fr}.rule-inputs{gap:10px}.distribution-header{flex-direction:column;gap:15px;text-align:center}}.form-check label strong{color:#2c3e50}.form-check:has(input[value=algorithmic]:checked){background:linear-gradient(135deg,#e7f3ff,#f8f9fa);border-color:#007bff}.alert{border-radius:8px;margin-bottom:20px}.alert-danger{background-color:#f8d7da;border-color:#f5c6cb;color:#721c24}.take-exam-container{background:#f8f9fa;margin:0;min-height:100vh;padding:0}.tab-warning{animation:pulse 2s infinite;background:#dc3545;color:#fff;font-weight:700;left:0;padding:15px;position:fixed;right:0;text-align:center;top:0;z-index:9999}@keyframes pulse{0%{opacity:1}50%{opacity:.7}to{opacity:1}}.exam-header{align-items:center;background:#fff;border-bottom:2px solid #e9ecef;box-shadow:0 2px 4px #0000001a;display:flex;justify-content:space-between;padding:20px 30px;position:-webkit-sticky;position:sticky;top:0;z-index:1000}[data-theme=dark] .exam-header{background:#1e2124!important;border-bottom:2px solid #495057;box-shadow:0 2px 4px #0000004d}.exam-info{flex:1 1}.exam-title{color:#2c3e50;font-size:1.5rem;font-weight:600;margin:0 0 5px}[data-theme=dark] .exam-title{color:#e9ecef}.exam-description{font-size:1rem;margin:0}[data-theme=dark] .exam-description{color:#adb5bd}.exam-timer{align-items:flex-end;display:flex;flex-direction:column;gap:10px}.timer-display{align-items:center;border-radius:8px;display:flex;font-size:1.2rem;font-weight:700;gap:10px;padding:12px 20px;transition:all .3s ease}.timer-normal{background:#d4edda;border:2px solid #c3e6cb;color:#155724}.timer-caution{background:#fff3cd;border:2px solid #ffeaa7;color:#856404}.timer-warning{animation:flash 1s infinite;background:#f8d7da;border:2px solid #f5c6cb;color:#721c24}.timer-critical{animation:flash .5s infinite;background:#dc3545;border:2px solid #dc3545;color:#fff}[data-theme=dark] .timer-normal{background:#1e4a3f;border-color:#28a745;color:#75d9a0}[data-theme=dark] .timer-caution{background:#4a3f1e;border-color:#ffc107;color:#ffd966}[data-theme=dark] .timer-warning{background:#4a1e1e;border-color:#dc3545;color:#ff8080}[data-theme=dark] .timer-critical{background:#dc3545;border-color:#ff6b6b;color:#fff}@keyframes flash{0%,to{opacity:1}50%{opacity:.7}}.timer-icon{font-size:1.5rem}.security-indicator{background:#dc3545;border-radius:4px;color:#fff;font-size:.875rem;font-weight:500;padding:6px 12px}.exam-progress{align-items:center;background:#fff;border-bottom:1px solid #e9ecef;display:flex;gap:15px;padding:15px 30px}[data-theme=dark] .exam-progress{background:#1e2124;border-bottom-color:#495057}.exam-progress-track{background:#e9ecef;border-radius:4px;flex:1 1;height:8px;overflow:hidden}[data-theme=dark] .exam-progress-track{background:#3d4148}.exam-progress-fill{border-radius:4px;height:100%;transition:width .3s ease}.exam-progress-fill,[data-theme=dark] .exam-progress-fill{background:linear-gradient(90deg,#28a745,#20c997)}.exam-progress-text{color:#495057;font-weight:500;white-space:nowrap}[data-theme=dark] .exam-progress-text{color:#e9ecef}.exam-content{margin:0 auto;max-width:900px;padding:30px}.question-container{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 4px 12px #0000001a;padding:30px}[data-theme=dark] .question-container{background:#25282c!important;border:1px solid #495057;box-shadow:0 4px 12px #0000004d}.question-header{border-bottom:2px solid #e9ecef;margin-bottom:25px;padding-bottom:15px}[data-theme=dark] .question-header{border-bottom:2px solid #495057}.question-header h3{color:#2c3e50;font-weight:600;margin:0}[data-theme=dark] .question-header h3{color:#e9ecef}.question-header h3 .part-label{color:#6b7280}[data-theme=dark] .question-header h3 .part-label{color:#9ca3af}.auto-save-indicator{align-items:center;color:#28a745;display:flex;font-size:.875rem;font-weight:500;gap:5px}.question-content{min-height:auto}.exam-navigation{background:#fff;border-top:2px solid #e9ecef;bottom:0;box-shadow:0 -2px 4px #0000001a;padding:20px 30px;position:-webkit-sticky;position:sticky;z-index:1000}[data-theme=dark] .exam-navigation{background:#1e2124!important;border-top:2px solid #495057;box-shadow:0 -2px 4px #0000004d}.nav-buttons{display:flex;gap:15px;justify-content:center;margin:0 auto;max-width:600px}.nav-buttons .btn{border-radius:8px;font-weight:500;padding:12px 24px;transition:all .3s ease}.nav-buttons .btn:disabled{cursor:not-allowed;opacity:.5}.question-navigator{background:#fff;border:2px solid #e9ecef;border-radius:12px;box-shadow:0 8px 24px #00000026;max-height:80vh;max-width:300px;overflow-y:auto;padding:20px;position:fixed;right:30px;top:50%;transform:translateY(-50%);z-index:1001}.navigator-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;margin-bottom:15px;padding-bottom:10px}.navigator-header h5{color:#2c3e50;font-weight:600;margin:0}.navigator-grid{grid-gap:8px;display:grid;gap:8px;grid-template-columns:repeat(5,1fr);margin-bottom:15px}.question-nav-item{align-items:center;background:#fff;border:2px solid #e9ecef;border-radius:8px;cursor:pointer;display:flex;font-weight:500;height:40px;justify-content:center;transition:all .3s ease;width:40px}.question-nav-item:hover{background:#f8f9fa;border-color:#007bff}.question-nav-item.current{background:#007bff;border-color:#007bff;color:#fff}.question-nav-item.answered{background:#28a745;border-color:#28a745;color:#fff}.question-nav-item.unanswered{background:#ffc107;border-color:#ffc107;color:#212529}.navigator-legend{display:flex;flex-direction:column;font-size:.875rem;gap:8px}.legend-item{align-items:center;display:flex;gap:8px}.legend-color{border:1px solid #e9ecef;border-radius:4px;height:16px;width:16px}.legend-color.current{background:#007bff}.legend-color.answered{background:#28a745}.legend-color.unanswered{background:#ffc107}.submit-dialog-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:2000}.submit-dialog{background:#fff;border-radius:12px;box-shadow:0 12px 36px #0000004d;max-width:500px;padding:30px;width:90%}.submit-dialog h4{color:#2c3e50;font-weight:600;margin-bottom:20px}.submit-dialog p{line-height:1.5;margin-bottom:15px}.dialog-actions{display:flex;gap:15px;justify-content:flex-end;margin-top:25px}.dialog-actions .btn{font-weight:500;padding:10px 20px}.exam-loading{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:50vh;text-align:center}.time-warning-notification{animation:slideInRight .3s ease-out;background:#ffc107;border-radius:8px;box-shadow:0 4px 12px #00000026;color:#212529;font-weight:700;padding:15px 20px;position:fixed;right:20px;top:20px;z-index:3000}@keyframes slideInRight{0%{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}@media (max-width:768px){.exam-header{flex-direction:column;gap:15px;padding:15px 20px;text-align:center}.exam-timer{align-items:center}.exam-progress{padding:10px 20px}.exam-content{padding:20px 15px}.question-container{padding:20px}.exam-navigation{padding:15px 20px}.nav-buttons{flex-direction:column}.nav-buttons .btn{width:100%}.question-navigator{border-radius:0;bottom:0;left:0;max-height:none;max-width:none;overflow-y:auto;position:fixed;right:0;top:0;transform:none}.navigator-grid{grid-template-columns:repeat(4,1fr)}.submit-dialog{margin:20px;width:calc(100% - 40px)}.dialog-actions{flex-direction:column}.dialog-actions .btn{width:100%}}@media print{.take-exam-container{display:none}body:before{color:#dc3545;content:"Printing is not allowed during exams.";font-size:2rem;font-weight:700;left:50%;position:fixed;top:50%;transform:translate(-50%,-50%)}}@media (prefers-contrast:high){.question-nav-item,.timer-display{border-width:3px}.exam-progress-fill{background:#000}}@media (prefers-reduced-motion:reduce){.tab-warning,.time-warning-notification,.timer-critical,.timer-warning{animation:none}*{transition:none!important}}.btn:focus,.question-nav-item:focus{outline:3px solid #007bff;outline-offset:2px}.exam-content,.take-exam-container{-webkit-user-select:none;user-select:none}.exam-content{-webkit-touch-callout:none}.exam-content input,.exam-content textarea{-webkit-user-select:text;user-select:text}.question-context{color:#333;font-size:15px;line-height:1.6;margin-bottom:16px}[data-theme=dark] .question-context,[data-theme=dark] .question-context div,[data-theme=dark] .question-context p{color:#e9ecef!important}.analytics-container{background:#f8f9fa;min-height:100vh}.analytics-header{background:#fff;border-bottom:2px solid #e9ecef;box-shadow:0 2px 4px #0000001a;padding:0;position:-webkit-sticky;position:sticky;top:0;z-index:100}.header-content{align-items:center;display:flex;justify-content:space-between;padding:25px 30px}.exam-info h1{color:#2c3e50;font-size:1.75rem;font-weight:600;margin:0 0 10px}.exam-description{color:#6c757d;font-size:1.1rem;margin:0 0 15px}.exam-meta{color:#495057;display:flex;font-size:.95rem;gap:20px}.header-actions{align-items:center;display:flex;gap:15px}.dropdown{position:relative}.dropdown-menu{background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:150px;position:absolute;right:0;top:100%;z-index:1000}.dropdown-item{background:none;border:none;color:#495057;display:block;padding:10px 15px;text-align:left;text-decoration:none;transition:background-color .2s;width:100%}.dropdown-item:hover{background:#f8f9fa;color:#007bff}.analytics-nav{background:#f8f9fa;border-top:1px solid #e9ecef;display:flex;padding:0 30px}.nav-tab{background:none;border:none;border-bottom:3px solid #0000;color:#6c757d;cursor:pointer;font-weight:500;padding:15px 25px;transition:all .3s ease}.nav-tab:hover{background:#007bff1a;color:#007bff}.nav-tab.active{background:#fff;border-bottom-color:#007bff;color:#007bff}.analytics-content{margin:0 auto;max-width:1400px;padding:30px}.analytics-overview{grid-gap:30px;display:grid;gap:30px}.metrics-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.metric-card{align-items:center;background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 2px 8px #0000001a;display:flex;gap:20px;padding:25px;transition:transform .3s ease}.metric-card:hover{box-shadow:0 4px 16px #00000026;transform:translateY(-2px)}.metric-icon{font-size:2.5rem;opacity:.8}.metric-content{flex:1 1}.metric-value{color:#2c3e50;font-size:2rem;font-weight:700;margin-bottom:5px}.metric-label{color:#6c757d;font-size:.9rem;letter-spacing:.5px;text-transform:uppercase}.chart-section{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:30px}.chart-section h4{color:#2c3e50;font-weight:600;margin-bottom:25px}.score-distribution{align-items:flex-end;border-bottom:2px solid #e9ecef;display:flex;height:200px;justify-content:space-around;padding:20px 0;position:relative}.distribution-bar{align-items:center;display:flex;flex:1 1;flex-direction:column;gap:10px}.bar-label{color:#495057;font-size:.9rem;font-weight:500}.bar-container{align-items:flex-end;display:flex;flex:1 1;width:40px}.bar-fill{background:linear-gradient(180deg,#007bff,#0056b3);border-radius:4px 4px 0 0;min-height:10px;transition:height .5s ease;width:100%}.bar-count{color:#6c757d;font-size:.8rem;text-align:center}.quick-stats{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:25px}.stat-row{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:12px 0}.stat-row:last-child{border-bottom:none}.stat-label{color:#495057;font-weight:500}.stat-value{font-size:1.1rem;font-weight:700}.excellent{color:#28a745}.good{color:#17a2b8}.average{color:#ffc107}.below-average{color:#fd7e14}.poor{color:#dc3545}.question-analytics{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:30px}.question-analytics h4{color:#2c3e50;font-weight:600;margin-bottom:25px}.question-list{grid-gap:20px;display:grid;gap:20px}.question-analytics-card{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px}.question-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:15px}.question-header h5{color:#2c3e50;font-weight:600;margin:0}.difficulty-badge{border-radius:12px;font-size:.75rem;font-weight:500;padding:4px 12px;text-transform:uppercase}.difficulty-badge.easy{background:#d4edda;color:#155724}.difficulty-badge.medium{background:#fff3cd;color:#856404}.difficulty-badge.hard{background:#f8d7da;color:#721c24}.question-text{color:#495057;font-weight:500;line-height:1.5;margin-bottom:20px}.question-metrics{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:15px}.metric{background:#fff;border:1px solid #e9ecef;border-radius:6px;display:flex;justify-content:space-between;padding:8px 12px}.success-rate-bar{background:#e9ecef;border-radius:4px;height:8px;overflow:hidden}.success-fill{background:linear-gradient(90deg,#28a745,#20c997);height:100%;transition:width .5s ease}.student-results{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:30px}.student-results h4{color:#2c3e50;font-weight:600;margin-bottom:25px}.results-table{grid-gap:1px;background:#e9ecef;border-radius:8px;display:grid;gap:1px;overflow:hidden}.table-header{background:#2c3e50;color:#fff;display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr 1.5fr 1fr}.header-cell{font-size:.875rem;font-weight:600;letter-spacing:.5px;padding:15px 20px;text-transform:uppercase}.table-row{background:#fff;display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr 1.5fr 1fr;transition:background-color .2s}.table-row:hover{background:#f8f9fa}.table-row.suspicious{background:#fff3cd;border-left:4px solid #ffc107}.cell{color:#495057;padding:15px 20px}.cell,.student-name{align-items:center;display:flex}.student-name{font-weight:500;gap:8px}.warning-icon{color:#ffc107}.score{border-radius:4px;font-weight:700;padding:4px 8px}.violations{color:#dc3545;font-weight:500}.clean{color:#28a745;font-weight:500}.security-report{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:30px}.security-report h4{color:#2c3e50;font-weight:600;margin-bottom:25px}.security-overview{margin-bottom:30px}.security-metrics{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.security-metric{background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;display:flex;justify-content:space-between;padding:15px 20px}.flagged-sessions h5{color:#2c3e50;font-weight:600;margin-bottom:20px}.flagged-session{background:#fff3cd;border:1px solid #ffc107;border-radius:8px;margin-bottom:15px;padding:20px}.session-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.session-header .student-name{color:#856404;font-weight:600}.timestamp{color:#6c757d;font-size:.875rem}.violations-list{display:flex;flex-wrap:wrap;gap:8px}.violation-tag{background:#ffc107;border-radius:4px;color:#212529;font-size:.75rem;font-weight:500;padding:4px 8px;text-transform:capitalize}.modal-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:2000}.student-detail-modal{background:#fff;border-radius:12px;box-shadow:0 12px 36px #0000004d;max-height:80vh;max-width:600px;overflow-y:auto;width:90%}.modal-header{align-items:center;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;padding:25px 30px}.modal-header h4{color:#2c3e50;font-weight:600;margin:0}.close-btn{align-items:center;background:none;border:none;color:#6c757d;cursor:pointer;display:flex;font-size:1.5rem;height:30px;justify-content:center;padding:0;width:30px}.close-btn:hover{color:#dc3545}.modal-content{padding:30px}.detail-grid{grid-gap:20px;display:grid;gap:20px}.detail-item{align-items:center;background:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;display:flex;justify-content:space-between;padding:15px 20px}.detail-item .label{color:#6c757d;font-weight:500}.detail-item .value{color:#2c3e50;font-weight:600}@media (max-width:768px){.analytics-container{padding:0}.header-content{flex-direction:column;gap:20px;padding:20px 15px;text-align:center}.exam-meta{flex-direction:column;gap:10px}.analytics-nav{overflow-x:auto;padding:0 15px}.nav-tab{padding:15px 20px;white-space:nowrap}.analytics-content{padding:20px 15px}.metrics-grid{grid-template-columns:1fr}.metric-card{padding:20px}.table-header,.table-row{gap:0;grid-template-columns:1fr}.cell,.header-cell{border-bottom:1px solid #e9ecef;padding:10px 15px}.question-metrics,.security-metrics{grid-template-columns:1fr}.student-detail-modal{margin:20px;width:95%}.modal-content,.modal-header{padding:20px}}.spinner-border{color:#007bff;height:3rem;width:3rem}@media print{.analytics-header{box-shadow:none;position:static}.analytics-nav,.header-actions{display:none}.analytics-content{padding:0}.chart-section,.metric-card,.question-analytics,.quick-stats,.security-report,.student-results{border:1px solid #000;box-shadow:none;break-inside:avoid;margin-bottom:20px;page-break-inside:avoid}}@media (prefers-contrast:high){.chart-section,.metric-card,.question-analytics,.quick-stats,.security-report,.student-results{border-width:2px}.nav-tab.active{border-bottom-width:4px}}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.analytics-content>*{animation:fadeIn .3s ease-out}.account-settings{margin:0 auto;max-width:800px;padding:20px}.settings-header{margin-bottom:40px;text-align:center}.settings-header h1{color:#333;font-size:2.5rem;margin-bottom:10px}.settings-header p{color:#666;font-size:1.1rem}.settings-tabs{border-bottom:2px solid #e0e0e0;display:flex;justify-content:center;margin-bottom:30px}.settings-tabs .tab{background:none;border:none;color:#666;cursor:pointer;font-size:1rem;padding:15px 30px;position:relative;transition:all .3s}.settings-tabs .tab:hover{color:#333}.settings-tabs .tab.active{color:#007bff;font-weight:600}.settings-tabs .tab.active:after{background:#007bff;bottom:-2px;content:"";height:2px;left:0;position:absolute;right:0}.message{border-radius:5px;margin-bottom:20px;padding:15px;text-align:center}.message.success{background:#d4edda;border:1px solid #c3e6cb;color:#155724}.message.error{background:#f8d7da;border:1px solid #f5c6cb;color:#721c24}.message.info{background:#d1ecf1;border:1px solid #bee5eb;color:#0c5460}.settings-content{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:40px}.settings-form h2{color:#333;margin-bottom:30px}.form-group label{color:#555;font-weight:600;margin-bottom:5px}.form-group input,.form-group select{border:1px solid #ddd;border-radius:4px;font-size:1rem;padding:10px;transition:border-color .3s;width:100%}.form-group input:focus,.form-group select:focus{border-color:#007bff;outline:none}.role-display{background:#f8f9fa;border-radius:4px;color:#333;font-weight:600;padding:10px}.btn{font-weight:600;padding:12px 30px;transition:all .3s}.btn-primary{background:#007bff}.btn-primary:hover{background:#0056b3}.btn-primary:disabled{background:#6c757d;cursor:not-allowed}.role-info{background:#f8f9fa;border-radius:5px;margin-bottom:20px;padding:20px}.role-info p{margin:5px 0}.role-descriptions{background:#f8f9fa;border-radius:5px;margin-top:30px;padding:20px}.role-descriptions h3{color:#333;margin-bottom:15px}.role-descriptions ul{list-style:none;padding:0}.role-descriptions li{border-bottom:1px solid #e0e0e0;padding:10px 0}.role-descriptions li:last-child{border-bottom:none}.role-descriptions strong{color:#007bff}.navbar-user-info{margin-left:auto;margin-right:20px}.user-info-link{border-radius:4px;color:inherit;padding:5px 10px;text-decoration:none;transition:background .3s}.user-info-link:hover{background:#0000001a}.user-role{opacity:.8;text-transform:capitalize}[data-theme=dark] .role-descriptions h3,[data-theme=dark] .settings-form h2,[data-theme=dark] .settings-header h1{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .form-group label,[data-theme=dark] .settings-header p,[data-theme=dark] .settings-tabs .tab{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .settings-tabs{border-bottom-color:#3a3a3a;border-bottom-color:var(--border-color,#3a3a3a)}[data-theme=dark] .settings-tabs .tab:hover{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .settings-tabs .tab.active{color:#6366f1;color:var(--primary-color,#6366f1)}[data-theme=dark] .settings-tabs .tab.active:after{background:#6366f1;background:var(--primary-color,#6366f1)}[data-theme=dark] .settings-content{background:#1e1e1e;background:var(--card-bg,#1e1e1e);box-shadow:0 2px 4px #0000004d}[data-theme=dark] .form-group input,[data-theme=dark] .form-group select{background:#2a2a2a;background:var(--input-bg,#2a2a2a);border-color:#3a3a3a;border-color:var(--border-color,#3a3a3a);color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .form-group input:focus,[data-theme=dark] .form-group select:focus{border-color:#6366f1;border-color:var(--primary-color,#6366f1)}[data-theme=dark] .form-group input::placeholder{color:#a0a0a0;color:var(--text-secondary,#a0a0a0)}[data-theme=dark] .role-display{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .role-descriptions,[data-theme=dark] .role-display,[data-theme=dark] .role-info{background:#2a2a2a;background:var(--input-bg,#2a2a2a)}[data-theme=dark] .role-descriptions li,[data-theme=dark] .role-info p{color:#e0e0e0;color:var(--text-primary,#e0e0e0)}[data-theme=dark] .role-descriptions li{border-bottom-color:#3a3a3a;border-bottom-color:var(--border-color,#3a3a3a)}[data-theme=dark] .message.success{background:#10b98133;border-color:#10b9814d;color:#34d399}[data-theme=dark] .message.error{background:#ef444433;border-color:#ef44444d;color:#f87171}[data-theme=dark] .message.info{background:#3b82f633;border-color:#3b82f64d;color:#60a5fa}:root{--bg-primary:#fff;--bg-secondary:#f8f9fa;--bg-tertiary:#e9ecef;--bg-card:#fff;--bg-hover:#f1f3f5;--text-primary:#212529;--text-secondary:#6c757d;--text-tertiary:#adb5bd;--text-inverse:#fff;--border-primary:#dee2e6;--border-secondary:#e9ecef;--border-active:#0d6efd;--shadow-sm:0 1px 2px #0000000d;--shadow-md:0 4px 6px #0000001a;--shadow-lg:0 10px 15px #0000001a;--navbar-bg:#fff;--sidebar-bg:#f8f9fa;--input-bg:#fff;--dropdown-bg:#fff;--modal-bg:#fff;--code-bg:#f6f8fa;--bg-info:#e7f1ff;--color-primary:#0d6efd;--color-success:#198754;--color-danger:#dc3545;--color-warning:#ffc107;--color-info:#0dcaf0;--link-color:#0d6efd;--link-hover:#0a58ca}[data-theme=dark]{--bg-primary:#1a1d21;--bg-secondary:#25282c;--bg-tertiary:#2d3035;--bg-card:#25282c;--bg-hover:#2d3035;--text-primary:#e9ecef;--text-secondary:#adb5bd;--text-tertiary:#6c757d;--text-inverse:#1a1d21;--border-primary:#495057;--border-secondary:#343a40;--border-active:#0d6efd;--shadow-sm:0 1px 2px #0000004d;--shadow-md:0 4px 6px #0006;--shadow-lg:0 10px 15px #00000080;--navbar-bg:#25282c;--sidebar-bg:#1a1d21;--input-bg:#2d3035;--dropdown-bg:#25282c;--modal-bg:#25282c;--code-bg:#2d3035;--bg-info:#1e3a5f;--color-primary:#3d8bfd;--color-success:#25a564;--color-danger:#e74c5e;--color-warning:#ffca2c;--color-info:#39cbf3;--link-color:#6cb2eb;--link-hover:#3d8bfd}body{background-color:#fff;color:#212529;transition:background-color .3s ease,color .3s ease}div,h1,h2,h3,h4,h5,h6,label,li,p,span{color:#212529;color:var(--text-primary)}.docx-preview-container div,.docx-preview-container label,.docx-preview-container li,.docx-preview-container p,.docx-preview-container span{color:inherit}a{color:#0d6efd;transition:color .2s ease}a:hover{color:#0a58ca}input,select,textarea{background-color:#fff;background-color:var(--input-bg);border:1px solid #dee2e6;border:1px solid var(--border-primary);color:#212529;color:var(--text-primary);transition:all .3s ease}input:focus,select:focus,textarea:focus{background-color:#fff;background-color:var(--input-bg);border-color:#0d6efd;border-color:var(--border-active);box-shadow:0 0 0 .2rem #0d6efd40;outline:none}.btn{transition:all .3s ease}.btn-primary{background-color:#0d6efd;background-color:var(--color-primary);border-color:#0d6efd;border-color:var(--color-primary);color:#fff}.btn-secondary{background-color:#6c757d;background-color:var(--text-secondary);border-color:#6c757d;border-color:var(--text-secondary);color:#fff}.btn-light,[data-theme=dark] .btn-light{background-color:#e9ecef;background-color:var(--bg-tertiary);border-color:#dee2e6;border-color:var(--border-primary);color:#212529;color:var(--text-primary)}[data-theme=dark] .btn-light:hover{background-color:#f1f3f5;background-color:var(--bg-hover);border-color:#e9ecef;border-color:var(--border-secondary)}.card,.question-card,.version-group-card{background-color:#fff;background-color:var(--bg-card);border:1px solid #dee2e6;border:1px solid var(--border-primary);box-shadow:0 1px 2px #0000000d;box-shadow:var(--shadow-sm);transition:all .3s ease}.card:hover,.question-card:hover{box-shadow:0 4px 6px #0000001a;box-shadow:var(--shadow-md)}.navbar{background-color:#fff!important;background-color:var(--navbar-bg)!important;border-bottom:1px solid #dee2e6;border-bottom:1px solid var(--border-primary)}.navbar-brand,.navbar-nav .nav-link{color:#212529!important;color:var(--text-primary)!important}.navbar-nav .nav-link:hover{color:#0d6efd!important;color:var(--color-primary)!important}.dropdown-menu{background-color:#fff;background-color:var(--dropdown-bg);border:1px solid #dee2e6;border:1px solid var(--border-primary);box-shadow:0 4px 6px #0000001a;box-shadow:var(--shadow-md)}.dropdown-item,.dropdown-item:hover{color:#212529;color:var(--text-primary)}.dropdown-item:hover{background-color:#f1f3f5;background-color:var(--bg-hover)}table,th{color:#212529;color:var(--text-primary)}th{background-color:#f8f9fa;background-color:var(--bg-secondary)}td,th{border-color:#dee2e6!important;border-color:var(--border-primary)!important}td{background-color:#fff;background-color:var(--bg-primary)}tr:hover td{background-color:#f1f3f5;background-color:var(--bg-hover)}.alert,.badge{transition:all .3s ease}.alert{border:1px solid}.alert-info{background-color:#0dcaf01a;border-color:#0dcaf0;border-color:var(--color-info);color:#0dcaf0;color:var(--color-info)}.alert-danger{background-color:#dc35451a;border-color:#dc3545;border-color:var(--color-danger);color:#dc3545;color:var(--color-danger)}.alert-success{background-color:#1987541a;border-color:#198754;border-color:var(--color-success);color:#198754;color:var(--color-success)}.modal-content{background-color:#fff;background-color:var(--modal-bg);border:1px solid #dee2e6;border:1px solid var(--border-primary);color:#212529;color:var(--text-primary)}.modal-header{border-bottom:1px solid #dee2e6;border-bottom:1px solid var(--border-primary)}.modal-footer{border-top:1px solid #dee2e6;border-top:1px solid var(--border-primary)}code,pre{background-color:#f6f8fa;background-color:var(--code-bg);border:1px solid #dee2e6;border:1px solid var(--border-primary);color:#212529;color:var(--text-primary)}.loading-spinner{color:#6c757d;color:var(--text-secondary)}[data-theme=dark] ::-webkit-scrollbar{height:12px;width:12px}[data-theme=dark] ::-webkit-scrollbar-track{background:#0000}[data-theme=dark] ::-webkit-scrollbar-thumb{background:#dee2e6;background:var(--border-primary);border-radius:6px}[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#adb5bd;background:var(--text-tertiary)}.theme-toggle{align-items:center;background-color:#f8f9fa;background-color:var(--bg-secondary);border:2px solid #dee2e6;border:2px solid var(--border-primary);border-radius:50%;bottom:20px;box-shadow:0 4px 6px #0000001a;box-shadow:var(--shadow-md);cursor:pointer;display:flex;height:50px;justify-content:center;position:fixed;right:20px;transition:all .3s ease;width:50px;z-index:1000}.theme-toggle:hover{box-shadow:0 10px 15px #0000001a;box-shadow:var(--shadow-lg);transform:scale(1.1)}.theme-toggle-icon{font-size:24px;transition:transform .3s ease}.theme-toggle:hover .theme-toggle-icon{transform:rotate(180deg)}[data-theme=dark] .filter-container{background-color:#f8f9fa;background-color:var(--bg-secondary);border:1px solid #dee2e6}[data-theme=dark] .category-ordering-bar{background-color:#f8f9fa;background-color:var(--bg-secondary);border-color:#dee2e6}[data-theme=dark] .question-footer{border-top-color:#dee2e6;border-top-color:var(--border-primary)}[data-theme=dark] .answer{background-color:#f8f9fa;background-color:var(--bg-secondary);border-left-color:#dee2e6;border-left-color:var(--border-primary)}[data-theme=dark] .answer.correct{background-color:#25a5641a;border-left-color:#198754;border-left-color:var(--color-success)}[data-theme=dark] [style*="background-color: #fff"],[data-theme=dark] [style*="background-color: #ffffff"],[data-theme=dark] [style*="background-color: white"],[data-theme=dark] [style*="background-color:#fff"],[data-theme=dark] [style*="background-color:#ffffff"],[data-theme=dark] [style*="background: #fff"],[data-theme=dark] [style*="background: #ffffff"],[data-theme=dark] [style*="background: white"],[data-theme=dark] [style*="background:#fff"],[data-theme=dark] [style*="background:#ffffff"],[data-theme=dark] [style*="backgroundColor: '#fff"],[data-theme=dark] [style*="backgroundColor: '#ffffff"],[data-theme=dark] [style*="backgroundColor:'#fff"],[data-theme=dark] [style*="backgroundColor:'#ffffff"]{background-color:initial!important;background:#0000!important}[data-theme=dark] .background-white,[data-theme=dark] .bg-white{background-color:var(--bg-card)!important}[data-theme=dark] article,[data-theme=dark] div[class*=box],[data-theme=dark] div[class*=card],[data-theme=dark] div[class*=container]:not(.docx-preview-container):not(.docx-preview-content-wrapper),[data-theme=dark] div[class*=wrapper]:not(.docx-wrapper):not(.docx-preview-content-wrapper),[data-theme=dark] section:not([class*=docx]){background-color:initial!important}[data-theme=dark] input:not([type=checkbox]):not([type=radio]),[data-theme=dark] select,[data-theme=dark] textarea{background-color:var(--input-bg)!important;border-color:var(--border-primary)!important;color:var(--text-primary)!important}[data-theme=dark] .question-bank-header{border-bottom-color:var(--border-primary)}[data-theme=dark] .filter-container{background:var(--bg-secondary);border:1px solid var(--border-primary)}[data-theme=dark] .question-card{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .question-card:hover{border-color:var(--color-primary)}[data-theme=dark] .question-card.selected{background:#0d6efd1a;border-color:var(--color-primary)}[data-theme=dark] .version-group-card{background:var(--bg-secondary);border-color:var(--color-primary)}[data-theme=dark] .version-group-expanded{background:var(--bg-primary);border-top-color:var(--border-primary)}[data-theme=dark] .category-ordering-bar{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .category-item{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .category-item:hover{border-color:var(--color-primary)}[data-theme=dark] .drill-down-container{background:var(--bg-secondary)}[data-theme=dark] .breadcrumb-nav{background:var(--bg-tertiary);border-color:var(--border-primary)}[data-theme=dark] .drill-down-category-item{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .create-question-container{background:var(--bg-primary)}[data-theme=dark] .form-section{background:var(--bg-card)!important;background-color:var(--bg-card)!important;border-color:var(--border-primary)!important}[data-theme=dark] .option-item{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .option-item.correct{background:#25a5641a;border-color:var(--color-success)}[data-theme=dark] .category-management{background:var(--bg-primary)}[data-theme=dark] .category-form,[data-theme=dark] .category-list-item{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .category-list-item:hover{background:var(--bg-hover)}[data-theme=dark] .dashboard-stats{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .stat-card{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .quiz-designer{background:var(--bg-primary)}[data-theme=dark] .design-toolbar{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .preview-container{background:#fff;color:#000}[data-theme=dark] .auth-container{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .debug-panel{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .debug-section,[data-theme=dark] .export-panel{background:var(--bg-card);border-color:var(--border-primary)}[data-theme=dark] .offline-status{background:var(--bg-secondary);border-color:var(--border-primary)}[data-theme=dark] .modal-backdrop{background-color:#000000bf}[data-theme=dark] .ReactModal__Content{background-color:var(--modal-bg)!important;border-color:var(--border-primary)!important}[data-theme=dark] select option{background-color:var(--dropdown-bg);color:var(--text-primary)}[data-theme=dark] select::-webkit-scrollbar{width:10px}[data-theme=dark] select::-webkit-scrollbar-track{background:var(--bg-secondary)}[data-theme=dark] select::-webkit-scrollbar-thumb{background:var(--border-primary);border-radius:5px}[data-theme=dark] .empty-state,[data-theme=dark] .loading-spinner{color:var(--text-secondary)}[data-theme=dark] .badge.multiple-choice{background:#3d8bfd;color:#fff}[data-theme=dark] .badge.true-false{background:#25a564;color:#fff}[data-theme=dark] .badge.fill-in-blank{background:#ffca2c;color:#000}[data-theme=dark] .badge.difficulty-easy{background:#25a56433;color:#25a564}[data-theme=dark] .badge.difficulty-medium{background:#ffca2c33;color:#ffca2c}[data-theme=dark] .badge.difficulty-hard{background:#e74c5e33;color:#e74c5e}[data-theme=dark] .btn-primary:hover{background-color:#5a9fd4;border-color:#5a9fd4}[data-theme=dark] .btn-danger:hover{background-color:#f66;border-color:#f66}[data-theme=dark] .btn-success:hover{background-color:#2dc26b;border-color:#2dc26b}[data-theme=dark] input:focus,[data-theme=dark] select:focus,[data-theme=dark] textarea:focus{box-shadow:0 0 0 .2rem #3d8bfd40}[data-theme=dark] a{color:var(--link-color)}[data-theme=dark] a:hover{color:var(--link-hover)}[data-theme=dark] tr:nth-child(2n) td{background-color:var(--bg-secondary)}[data-theme=dark] code{background-color:var(--code-bg);border-radius:3px;color:#e06c75;padding:2px 4px}[data-theme=dark] .docx-preview-container section.docx,[data-theme=dark] .docx-wrapper section.docx,[data-theme=dark] .docx-wrapper>section.docx,[data-theme=dark] section.docx{background:#fff!important;background-color:#fff!important;color:#000!important}[data-theme=dark] .docx-preview-container section.docx *,[data-theme=dark] section.docx *{background-color:initial!important;color:#000!important}:root{--primary-color:#17a2b8;--dark-color:#343a40;--light-color:#f4f4f4;--danger-color:#dc3545;--success-color:#28a745}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-primary);color:var(--text-primary);font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.6;transition:background-color .3s,color .3s}a{color:var(--link-color);text-decoration:none;transition:color .2s}a:hover{color:var(--link-hover);text-decoration:underline}.app{display:flex;flex-direction:column;min-height:100vh}.content{flex:1 1;padding-top:60px}.app-navbar{background-color:var(--navbar-bg);border-bottom:1px solid var(--border-primary);box-shadow:var(--shadow-md);left:0;position:fixed;right:0;top:0;z-index:1000}.navbar-content{align-items:center;display:flex;height:60px;justify-content:space-between;margin:0 auto;max-width:1200px;padding:0 20px}.navbar-brand a{color:var(--color-primary);font-size:1.5rem;font-weight:700;transition:color .3s}.navbar-brand a:hover{opacity:.8;text-decoration:none}.navbar-links{align-items:center;display:flex;gap:10px}.navbar-links a,.navbar-links button{color:var(--text-primary)!important;font-weight:500;margin-left:20px;text-decoration:none;transition:color .3s}.navbar-links a:hover,.navbar-links button:hover{color:var(--color-primary)!important;text-decoration:none}.nav-logout{background:none;border:none;color:var(--text-primary);cursor:pointer;font-size:1rem;padding:0}.navbar-user-info,.user-info-link{align-items:center;display:flex}.user-info-link{color:var(--text-primary)!important;gap:5px}.user-name{color:var(--text-primary);font-weight:600}.user-role{color:var(--text-secondary);font-size:.9em}.nav-theme-toggle{transition:transform .2s}.nav-theme-toggle:hover{transform:scale(1.1)}[data-theme=dark] .navbar-links a,[data-theme=dark] .navbar-links button{color:#e9ecef!important}[data-theme=dark] .navbar-brand a,[data-theme=dark] .navbar-links a:hover,[data-theme=dark] .navbar-links button:hover{color:#3d8bfd!important}.app-footer{background-color:#333;color:#fff;margin-top:0;padding:8px 0}.footer-content{margin:0 auto;max-width:1200px;text-align:center}.footer-content p{font-size:12px;margin:0}.btn{border:none;border-radius:4px;cursor:pointer;display:inline-block;font-size:1rem;font-weight:500;padding:8px 16px;text-align:center;transition:background-color .3s,transform .2s}.btn:hover{transform:translateY(-2px)}.btn-primary,.btn-primary:link,.btn-primary:visited,a.btn-primary{background-color:#007bff;color:#e9ecef!important}.btn-primary:hover,a.btn-primary:hover{background-color:#0069d9;color:#e9ecef!important}.btn-secondary,.btn-secondary:link,.btn-secondary:visited,a.btn-secondary{background-color:#6c757d;color:#e9ecef!important}.btn-secondary:hover,a.btn-secondary:hover{background-color:#5a6268;color:#e9ecef!important}.btn-success{background-color:#28a745;color:#fff}.btn-success:hover{background-color:#218838}.btn-danger{background-color:#dc3545;color:#fff}.btn-danger:hover{background-color:#c82333}.btn-warning{background-color:#ffc107;color:#212529}.btn-warning:hover{background-color:#e0a800}.btn-info{background-color:#17a2b8;color:#fff}.btn-info:hover{background-color:#138496}.btn-light{background-color:#f8f9fa;color:#333}.btn-light:hover{opacity:.8}.btn-dark{background-color:#343a40;color:#fff}.btn-lg{font-size:1.1rem;padding:.75rem 1.5rem}button.btn,button.btn-sm{font-family:inherit;line-height:1.5;padding-bottom:.375rem;padding-top:.375rem;vertical-align:middle}a.btn-sm,button.btn-sm{align-items:center;display:inline-flex;height:32px;justify-content:center;line-height:1;padding:6px 12px}.question-actions .btn,.question-actions a.btn-sm,.question-actions button.btn-sm,.version-actions .btn,.version-actions a.btn-sm,.version-actions button.btn-sm{font-size:12px!important;height:auto!important;line-height:1.2!important;padding:4px 8px!important}.dashboard-container{margin:0 auto;max-width:1200px;padding:20px}.dashboard-header{margin-bottom:30px;text-align:center}.dashboard-actions{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));margin-bottom:40px}.action-card{background:var(--bg-card);border:1px solid var(--border-primary);border-radius:8px;box-shadow:var(--shadow-sm);padding:20px;transition:transform .3s,box-shadow .3s}.action-card:hover{border-color:var(--color-primary);box-shadow:var(--shadow-lg);transform:translateY(-5px)}.action-card h2{color:var(--text-primary);margin-bottom:10px}.action-buttons{display:flex;gap:10px;margin-top:15px}.dashboard-debug{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:8px;margin-top:40px;padding:20px}.offline-status{border-radius:5px;bottom:20px;box-shadow:0 2px 5px #0003;color:#fff;font-weight:700;padding:10px 15px;position:fixed;right:20px;transition:background-color .3s,opacity .3s;z-index:1000}.offline-status.online{background-color:#27ae60;opacity:.7}.offline-status.offline{background-color:#e74c3c;opacity:1}.offline-status:hover{opacity:1}.sync-count{background-color:#ffffff4d;border-radius:10px;font-size:.8rem;margin-left:10px;padding:3px 8px}.form-group{margin-bottom:20px}.form-group label{color:#495057;color:var(--text-primary,#495057);display:block;font-weight:500;margin-bottom:8px}.form-control{border:1px solid #ced4da;border-radius:4px;font-size:1rem;padding:10px 12px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:100%}.form-control:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}input[type=date],input[type=email],input[type=number],input[type=password],input[type=text],select,textarea{border:1px solid #ced4da;border-radius:4px;font-size:16px;padding:10px 12px;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:100%}input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=text]:focus,select:focus,textarea:focus{border-color:#80bdff;box-shadow:0 0 0 .2rem #007bff40;outline:0}textarea{min-height:100px;resize:vertical}.form-row{grid-gap:20px;display:grid;gap:20px;grid-template-columns:1fr 1fr;margin-bottom:20px}@media (max-width:768px){.form-row{grid-template-columns:1fr}}.debug-container{background-color:#f5f5f5;border:1px solid #ddd;border-radius:5px;padding:20px}.debug-container,.debug-section,.debug-title{margin-bottom:20px}.debug-title{border-bottom:2px solid #333;padding-bottom:10px}.debug-box{background-color:#fff;border:1px solid #ddd;border-radius:5px;margin-bottom:15px;padding:15px}.debug-controls{display:flex;gap:10px;margin-bottom:15px}.debug-status{border-radius:5px;margin-top:10px;padding:10px}.debug-status.success{background-color:#d4edda;border:1px solid #c3e6cb;color:#155724}.debug-status.error{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24}.debug-status.warning{background-color:#fff3cd;border:1px solid #ffeeba;color:#856404}.debug-status.info{background-color:#d1ecf1;border:1px solid #bee5eb;color:#0c5460}.debug-code{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:5px;font-family:monospace;overflow-x:auto;padding:15px;white-space:pre-wrap}.debug-table{border-collapse:collapse;width:100%}.debug-table td,.debug-table th{border:1px solid #ddd;padding:8px;text-align:left}.debug-table th{background-color:#f2f2f2}.debug-table tr:nth-child(2n){background-color:#f9f9f9}@media screen and (max-width:768px){.hero-content h1{font-size:2rem}.hero-subtitle{font-size:1rem}.hero-buttons{flex-direction:column;gap:.5rem}.features-grid{grid-template-columns:1fr}.navbar-content{flex-direction:column;height:auto;padding:15px}.navbar-links{flex-wrap:wrap;margin-top:15px}.navbar-links a,.navbar-links button{margin:5px}}.question-bank,.question-bank-item,.question-info,.question-item,.question-text,.questions-list,.unified-question-renderer{text-align:left!important}.content .question-bank *,.content .question-info *,.content .question-item *,.content .question-text *,.content .questions-list *{text-align:inherit!important}.btn .question-text,.btn .unified-question-renderer,.ql-align-center,.question-item .question-header .question-info .question-text,.question-item .question-header .question-info .question-text *,.question-text .btn,.question-text [style*="text-align: center"],.question-text div,.question-text p,.question-text span,.question-text-wrapper,.question-text-wrapper *,.unified-question-renderer .btn,.unified-question-renderer [style*="text-align: center"],.unified-question-renderer div,.unified-question-renderer p,.unified-question-renderer span,[style*="text-align: center"] .question-text,[style*="text-align: center"] .unified-question-renderer,body .content .question-bank .questions-list .question-item .question-info .question-text,body .content .question-bank .questions-list .question-item .question-info .question-text *,body .content .question-bank .questions-list .question-item .question-info .question-text div,body .content .question-bank .questions-list .question-item .question-info .question-text p,body .content .question-bank .questions-list .question-item .question-info .question-text span,body .question-text [style*="text-align: center"],body .unified-question-renderer,body .unified-question-renderer *,body .unified-question-renderer [style*="text-align: center"],body .unified-question-renderer div,body .unified-question-renderer p,body .unified-question-renderer span,body [style*="text-align: center"] .question-text,body [style*="text-align: center"] .unified-question-renderer{text-align:left!important}body .content .question-bank .question-text p,body .content .question-bank .unified-question-renderer p,body .content .question-bank p{display:block!important;text-align:left!important}.question-bank *{text-align:inherit!important}.question-bank,.version-text,.version-text *{text-align:left!important}.question-bank-item p,.question-info p,.question-text p,.unified-question-renderer p{display:block!important;margin-left:0!important;margin-right:0!important;max-width:100%!important;padding-left:0!important;padding-right:0!important;text-align:initial!important;text-align:start!important;text-align:left!important;width:auto!important}.question-text>div>span,.unified-question-renderer>div>span{display:block!important;text-align:left!important;width:100%!important}.question-text *,.unified-question-renderer *{text-align:inherit!important}.question-text [style*="text-align: left"]{text-align:left!important}.content .question-bank .question-text p{display:block!important;text-align:left!important}.question-info,.question-info *{text-align:left!important}[data-theme=dark] [class*=dialog]:not([class*=overlay]),[data-theme=dark] [class*=modal]:not([class*=overlay]),[data-theme=dark] [class*=popup]:not([class*=overlay]){background-color:#25282c!important;border-color:#495057!important;color:var(--text-primary)!important}[data-theme=dark] [class*=card]:not(.btn),[data-theme=dark] [class*=panel]:not(.btn){background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] [class*=footer]:not(.btn),[data-theme=dark] [class*=header]:not(.btn),[data-theme=dark] [class*=menu]:not(.btn),[data-theme=dark] [class*=nav]:not(.btn):not([class*=item]){background-color:#1e2124!important;border-color:#495057!important;color:var(--text-primary)!important}[data-theme=dark] .live-preview .preview-header,[data-theme=dark] .live-preview-container .preview-header{background-color:#2d2d2d!important;border:1px solid #555!important;border-radius:6px!important}[data-theme=dark] .live-preview .preview-header .preview-title,[data-theme=dark] .live-preview .preview-info .preview-title,[data-theme=dark] .live-preview-container .preview-header .preview-title,[data-theme=dark] .live-preview-container .preview-info .preview-title{color:#fff!important;font-weight:600!important}[data-theme=dark] .live-preview .preview-header .preview-details,[data-theme=dark] .live-preview .preview-info .preview-details,[data-theme=dark] .live-preview-container .preview-header .preview-details,[data-theme=dark] .live-preview-container .preview-info .preview-details{color:#b0b0b0!important}[data-theme=dark] .exam-header,[data-theme=dark] .exam-navigation{background-color:#1e2124!important;border-color:#495057!important}[data-theme=dark] .question-container{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .template-dialog{background-color:#25282c!important;border:1px solid #495057!important;color:#e9ecef!important}[data-theme=dark] .template-dialog h3{color:#e9ecef!important}[data-theme=dark] .template-dialog label{color:#adb5bd!important}[data-theme=dark] .template-dialog input,[data-theme=dark] .template-dialog textarea{background-color:#2d3035!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .template-dialog .template-preview{background-color:#1e2124!important;border-color:#495057!important}[data-theme=dark] .template-dialog .template-preview h4{color:#e9ecef!important}[data-theme=dark] .template-dialog .template-preview li{color:#adb5bd!important}[data-theme=dark] .template-dialog .dialog-actions{border-top-color:#495057!important}[data-theme=dark] .template-dialog .dialog-actions .btn-secondary{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .template-dialog .dialog-actions .btn-secondary:hover{background-color:#4d5158!important}[data-theme=dark] .form-group,[data-theme=dark] [class*=inner]:not([class*=modal]):not([class*=dialog]):not([class*=popup]):not(.btn),[data-theme=dark] [class*=outer]:not([class*=modal]):not([class*=dialog]):not([class*=popup]):not(.btn),[data-theme=dark] [class*=wrapper]:not([class*=modal]):not([class*=dialog]):not([class*=popup]):not(.btn):not(.docx-wrapper):not(.docx-preview-content-wrapper),[data-theme=dark] article:not([class*=modal]):not([class*=dialog]):not([class*=popup]),[data-theme=dark] aside:not([class*=modal]):not([class*=dialog]):not([class*=popup]),[data-theme=dark] fieldset,[data-theme=dark] main:not([class*=modal]):not([class*=dialog]):not([class*=popup]),[data-theme=dark] section:not([class*=modal]):not([class*=dialog]):not([class*=popup]):not([class*=docx]){background-color:initial!important}html[data-theme=dark] .designer-preview,html[data-theme=dark] .docx-preview-container,html[data-theme=dark] .docx-preview-container .docx-wrapper,html[data-theme=dark] .docx-preview-content-wrapper{background:#1e2124!important;background-color:#1e2124!important}[data-theme=dark] .docx-preview-container .docx-wrapper section.docx,[data-theme=dark] .docx-preview-container .docx-wrapper>section.docx,[data-theme=dark] .docx-preview-container section.docx,[data-theme=dark] section.docx,html[data-theme=dark] .docx-preview-container .docx-wrapper section.docx,html[data-theme=dark] .docx-preview-container .docx-wrapper>section.docx,html[data-theme=dark] .docx-preview-container section.docx,html[data-theme=dark] section.docx{background:#fff!important;background-color:#fff!important;color:#000!important}[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=reset]),[data-theme=dark] select,[data-theme=dark] textarea{background-color:var(--input-bg)!important;border-color:var(--border-primary)!important;color:var(--text-primary)!important}[data-theme=dark] .menu li,[data-theme=dark] .nav li,[data-theme=dark] .sidebar li,[data-theme=dark] td,[data-theme=dark] th{color:var(--text-primary)!important}[data-theme=dark] [class*=overlay]:not(.btn){background-color:#000000b3!important}[data-theme=dark] table,[data-theme=dark] tbody tr{background-color:initial!important}[data-theme=dark] tbody tr:nth-child(2n){background-color:var(--bg-secondary)!important}[data-theme=dark] .docx-preview-container table,[data-theme=dark] .docx-preview-container tbody tr,[data-theme=dark] .docx-preview-container tbody tr:nth-child(2n),[data-theme=dark] .docx-preview-container td,[data-theme=dark] .docx-preview-container th{background-color:initial!important;background:#0000!important;color:inherit!important}[data-theme=dark] [class*=border]:not(.preview-document *):not(.preview-page *),[data-theme=dark] [style*=border]:not(.preview-document *):not(.preview-page *){border-color:var(--border-primary)!important}[data-theme=dark] .quiz-stats{background-color:#1e2124!important;border-radius:8px;color:#e9ecef!important;padding:15px}[data-theme=dark] .quiz-stats p,[data-theme=dark] .quiz-stats strong{color:#e9ecef!important}[data-theme=dark] .quiz-section h4{background-color:#1e2124!important;color:#e9ecef!important}[data-theme=dark] .quiz-questions>div>div[style*="backgroundColor: 'var(--bg-info"]{background-color:#1e3a5f!important}[data-theme=dark] .quiz-questions span[style*="color: 'var(--text-primary"]{color:#e9ecef!important}[data-theme=dark] .quiz-questions span[style*="color: '#0d6efd"]{color:#4da3ff!important}[data-theme=dark] .modal-content{background-color:#25282c!important;color:#e9ecef!important}[data-theme=dark] .modal-header{background-color:#1e2124!important;border-bottom-color:#495057!important}[data-theme=dark] .modal-body,[data-theme=dark] .modal-header h4{color:#e9ecef!important}[data-theme=dark] .modal-body>div:first-child{background-color:#1e2124!important;color:#e9ecef!important}[data-theme=dark] .modal-body strong{color:#e9ecef!important}[data-theme=dark] .modal-body p{color:#adb5bd!important}[data-theme=dark] .modal-body>div>div[style*=backgroundColor]{background-color:#2d3035!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .modal-body>div>div[style*=backgroundColor]:hover{background-color:#3d4148!important}[data-theme=dark] .form-section .version-constraint-settings,[data-theme=dark] .quiz-form .version-constraint-settings,[data-theme=dark] .version-constraint-settings,html[data-theme=dark] .form-section .version-constraint-settings,html[data-theme=dark] .quiz-form .version-constraint-settings,html[data-theme=dark] .version-constraint-settings{background-color:initial!important;background:#0000!important;border-color:#0000!important}[data-theme=dark] .version-constraint-settings .setting-item,[data-theme=dark] .version-constraint-settings .settings-section,[data-theme=dark] .version-constraint-settings .sub-setting,[data-theme=dark] .version-constraint-settings>div,html[data-theme=dark] .version-constraint-settings .setting-item,html[data-theme=dark] .version-constraint-settings .settings-section,html[data-theme=dark] .version-constraint-settings .sub-setting,html[data-theme=dark] .version-constraint-settings>div{background-color:initial!important}[data-theme=dark] .version-constraint-settings h3,[data-theme=dark] .version-constraint-settings h4,[data-theme=dark] .version-constraint-settings h5,html[data-theme=dark] .version-constraint-settings h3,html[data-theme=dark] .version-constraint-settings h4,html[data-theme=dark] .version-constraint-settings h5{color:#e9ecef!important}[data-theme=dark] .version-constraint-settings .settings-section,html[data-theme=dark] .version-constraint-settings .settings-section{border-bottom-color:#495057!important}[data-theme=dark] .version-constraint-settings .setting-item label,[data-theme=dark] .version-constraint-settings label,html[data-theme=dark] .version-constraint-settings .setting-item label,html[data-theme=dark] .version-constraint-settings label{color:#e9ecef!important}[data-theme=dark] .version-constraint-settings .help-text,[data-theme=dark] .version-constraint-settings p.help-text,html[data-theme=dark] .version-constraint-settings .help-text,html[data-theme=dark] .version-constraint-settings p.help-text{color:#adb5bd!important}[data-theme=dark] .version-constraint-settings .version-info,html[data-theme=dark] .version-constraint-settings .version-info{background-color:#0d6efd26!important;border-color:#0d6efd4d!important}[data-theme=dark] .version-constraint-settings .info-text,html[data-theme=dark] .version-constraint-settings .info-text{color:#6ea8fe!important}[data-theme=dark] .version-constraint-settings .number-input,html[data-theme=dark] .version-constraint-settings .number-input{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .version-constraint-settings .sub-settings,html[data-theme=dark] .version-constraint-settings .sub-settings{border-left-color:#495057!important}[data-theme=dark] .version-constraint-settings .preview-info,html[data-theme=dark] .version-constraint-settings .preview-info{background-color:#0d6efd1a!important;border-color:#0d6efd40!important}[data-theme=dark] .quiz-generation-settings,html[data-theme=dark] .quiz-generation-settings{background-color:initial!important;background:#0000!important}[data-theme=dark] .quiz-generation-settings .section-title,html[data-theme=dark] .quiz-generation-settings .section-title{border-bottom-color:#007bff!important;color:#e9ecef!important}[data-theme=dark] .version-tags-filter,html[data-theme=dark] .version-tags-filter{background-color:initial!important;background:#0000!important;border:#0000!important}[data-theme=dark] .version-tags-filter .filter-label,html[data-theme=dark] .version-tags-filter .filter-label{color:#e9ecef!important}[data-theme=dark] .version-tag-checkbox,html[data-theme=dark] .version-tag-checkbox{background-color:#3d4148!important;border-color:#6c757d!important;color:#adb5bd!important}[data-theme=dark] .version-tag-checkbox:hover,html[data-theme=dark] .version-tag-checkbox:hover{background-color:#4d5158!important;border-color:#adb5bd!important}[data-theme=dark] .version-tag-checkbox.selected,html[data-theme=dark] .version-tag-checkbox.selected{background-color:#007bff!important;border-color:#007bff!important;color:#fff!important}[data-theme=dark] .filter-hint,html[data-theme=dark] .filter-hint{color:#adb5bd!important}[data-theme=dark] .quiz-form .form-section,html[data-theme=dark] .quiz-form .form-section{background-color:#2d3136!important;box-shadow:0 2px 4px #0000004d!important}[data-theme=dark] .quiz-form .form-section h2,html[data-theme=dark] .quiz-form .form-section h2{border-bottom-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-form .form-group label,html[data-theme=dark] .quiz-form .form-group label{color:#e9ecef!important}[data-theme=dark] .quiz-form .form-control,html[data-theme=dark] .quiz-form .form-control{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-form .structure-option,html[data-theme=dark] .quiz-form .structure-option{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .quiz-form .structure-option:hover,html[data-theme=dark] .quiz-form .structure-option:hover{background-color:#3d4148!important;border-color:#007bff!important}[data-theme=dark] .quiz-form .structure-option.selected,html[data-theme=dark] .quiz-form .structure-option.selected{background-color:#007bff26!important;border-color:#007bff!important}[data-theme=dark] .quiz-form .option-content h4,html[data-theme=dark] .quiz-form .option-content h4{color:#e9ecef!important}[data-theme=dark] .quiz-form .option-content p,html[data-theme=dark] .quiz-form .option-content p{color:#adb5bd!important}[data-theme=dark] .quiz-form .form-checkboxes label,html[data-theme=dark] .quiz-form .form-checkboxes label{color:#e9ecef!important}[data-theme=dark] .quiz-form .form-actions,html[data-theme=dark] .quiz-form .form-actions{border-top-color:#495057!important}[data-theme=dark] .method-card,html[data-theme=dark] .method-card{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .method-card:hover,html[data-theme=dark] .method-card:hover{border-color:#007bff!important}[data-theme=dark] .method-card.selected,html[data-theme=dark] .method-card.selected{background-color:#007bff26!important;border-color:#007bff!important}[data-theme=dark] .method-card h5,html[data-theme=dark] .method-card h5{color:#e9ecef!important}[data-theme=dark] .method-card p,html[data-theme=dark] .method-card p{color:#adb5bd!important}[data-theme=dark] .question-list,html[data-theme=dark] .question-list{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .category-header,html[data-theme=dark] .category-header{background-color:#25282c!important}[data-theme=dark] .category-name,html[data-theme=dark] .category-name{color:#e9ecef!important}[data-theme=dark] .category-group,html[data-theme=dark] .category-group{border-bottom-color:#495057!important}[data-theme=dark] .question-item,html[data-theme=dark] .question-item{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .question-item:hover,html[data-theme=dark] .question-item:hover{background-color:#3d4148!important}[data-theme=dark] .question-item.selected,html[data-theme=dark] .question-item.selected{background-color:#007bff26!important;border-color:#007bff!important}[data-theme=dark] .question-text,html[data-theme=dark] .question-text{color:#e9ecef!important}[data-theme=dark] .expand-toggle,[data-theme=dark] .question-count,html[data-theme=dark] .expand-toggle,html[data-theme=dark] .question-count{color:#adb5bd!important}[data-theme=dark] .distribution-config,html[data-theme=dark] .distribution-config{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .distribution-config h5,[data-theme=dark] .points-row label,html[data-theme=dark] .distribution-config h5,html[data-theme=dark] .points-row label{color:#e9ecef!important}[data-theme=dark] .selection-summary,html[data-theme=dark] .selection-summary{background-color:#25282c!important}[data-theme=dark] .selection-summary span,html[data-theme=dark] .selection-summary span{color:#e9ecef!important}[data-theme=dark] .grading-mode-selector,html[data-theme=dark] .grading-mode-selector{background-color:#007bff26!important;border-color:#007bff!important}[data-theme=dark] .grading-mode-options .radio-option,html[data-theme=dark] .grading-mode-options .radio-option{color:#e9ecef!important}[data-theme=dark] .question-type-distribution,html[data-theme=dark] .question-type-distribution{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .type-config label,html[data-theme=dark] .type-config label{color:#e9ecef!important}[data-theme=dark] .type-summary,html[data-theme=dark] .type-summary{background-color:#25282c!important}[data-theme=dark] .type-summary span:first-child,html[data-theme=dark] .type-summary span:first-child{color:#e9ecef!important}[data-theme=dark] .range-label,[data-theme=dark] .type-summary span:nth-child(2),html[data-theme=dark] .range-label,html[data-theme=dark] .type-summary span:nth-child(2){color:#adb5bd!important}[data-theme=dark] .point-distribution-preview,html[data-theme=dark] .point-distribution-preview{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .point-distribution-preview h5,html[data-theme=dark] .point-distribution-preview h5{color:#e9ecef!important}[data-theme=dark] .grading-configuration,html[data-theme=dark] .grading-configuration{border-top-color:#495057!important}[data-theme=dark] .automatic-generation h4,[data-theme=dark] .automatic-generation label,[data-theme=dark] .generation-method-selection h4,[data-theme=dark] .grading-configuration h4,[data-theme=dark] .manual-points-input label,[data-theme=dark] .manual-selection h4,html[data-theme=dark] .automatic-generation h4,html[data-theme=dark] .automatic-generation label,html[data-theme=dark] .generation-method-selection h4,html[data-theme=dark] .grading-configuration h4,html[data-theme=dark] .manual-points-input label,html[data-theme=dark] .manual-selection h4{color:#e9ecef!important}[data-theme=dark] .points-input,[data-theme=dark] .quiz-generation-settings input[type=number],[data-theme=dark] .quiz-generation-settings input[type=search],[data-theme=dark] .quiz-generation-settings input[type=text],[data-theme=dark] .quiz-generation-settings select,html[data-theme=dark] .points-input,html[data-theme=dark] .quiz-generation-settings input[type=number],html[data-theme=dark] .quiz-generation-settings input[type=search],html[data-theme=dark] .quiz-generation-settings input[type=text],html[data-theme=dark] .quiz-generation-settings select{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-generation-settings select option,html[data-theme=dark] .quiz-generation-settings select option{background-color:#2d3136!important;color:#e9ecef!important}[data-theme=dark] .grading-config-wrapper,html[data-theme=dark] .grading-config-wrapper{background-color:#2d3136!important}[data-theme=dark] .section-point-config,html[data-theme=dark] .section-point-config{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .section-header-points h6,[data-theme=dark] .section-point-config h6,html[data-theme=dark] .section-header-points h6,html[data-theme=dark] .section-point-config h6{color:#e9ecef!important}[data-theme=dark] .section-difficulty-points,[data-theme=dark] .section-type-points,html[data-theme=dark] .section-difficulty-points,html[data-theme=dark] .section-type-points{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .section-difficulty-points h6,[data-theme=dark] .section-type-points h6,html[data-theme=dark] .section-difficulty-points h6,html[data-theme=dark] .section-type-points h6{color:#adb5bd!important}[data-theme=dark] .section-points-total,html[data-theme=dark] .section-points-total{background-color:#25282c!important;color:#e9ecef!important}[data-theme=dark] .section-distribution>label,[data-theme=dark] .section-points-input label,html[data-theme=dark] .section-distribution>label,html[data-theme=dark] .section-points-input label{color:#e9ecef!important}[data-theme=dark] .advanced-toggle:hover,html[data-theme=dark] .advanced-toggle:hover{background-color:#25282c!important}[data-theme=dark] .quiz-form .form-text,[data-theme=dark] .quiz-form .help-text,html[data-theme=dark] .quiz-form .form-text,html[data-theme=dark] .quiz-form .help-text{color:#adb5bd!important}[data-theme=dark] .quiz-form .alert-danger,html[data-theme=dark] .quiz-form .alert-danger{background-color:#dc354533!important;border-color:#dc354566!important;color:#f5a5a5!important}[data-theme=dark] .quiz-form .alert-success,html[data-theme=dark] .quiz-form .alert-success{background-color:#28a74533!important;border-color:#28a74566!important;color:#90d9a0!important}[data-theme=dark] .quiz-form .loading-spinner,html[data-theme=dark] .quiz-form .loading-spinner{color:#adb5bd!important}[data-theme=dark] .quiz-form h3,[data-theme=dark] .quiz-form h4,[data-theme=dark] .quiz-form h5,[data-theme=dark] .quiz-form h6,html[data-theme=dark] .quiz-form h3,html[data-theme=dark] .quiz-form h4,html[data-theme=dark] .quiz-form h5,html[data-theme=dark] .quiz-form h6{color:#e9ecef!important}[data-theme=dark] .quiz-form select.form-control,html[data-theme=dark] .quiz-form select.form-control{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-form select.form-control option,html[data-theme=dark] .quiz-form select.form-control option{background-color:#2d3136!important;color:#e9ecef!important}[data-theme=dark] .quiz-form input[type=number],html[data-theme=dark] .quiz-form input[type=number]{background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .question-preview-list,html[data-theme=dark] .question-preview-list{background-color:#2d3136!important}[data-theme=dark] .question-preview-item,html[data-theme=dark] .question-preview-item{border-bottom-color:#495057!important}[data-theme=dark] .question-preview-text,html[data-theme=dark] .question-preview-text{color:#e9ecef!important}[data-theme=dark] .question-preview-type,html[data-theme=dark] .question-preview-type{color:#adb5bd!important}[data-theme=dark] .exam-generation-results h3,[data-theme=dark] .pool-results h4,html[data-theme=dark] .exam-generation-results h3,html[data-theme=dark] .pool-results h4{color:#e9ecef!important}[data-theme=dark] .exam-warnings,html[data-theme=dark] .exam-warnings{background-color:#ffc10733!important;border-color:#ffc10766!important;color:#ffd93d!important}[data-theme=dark] .exam-stats>div,html[data-theme=dark] .exam-stats>div{background-color:#25282c!important}[data-theme=dark] .exam-section,[data-theme=dark] .exam-template-settings .exam-section,html[data-theme=dark] .exam-section,html[data-theme=dark] .exam-template-settings .exam-section{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .exam-section h3,[data-theme=dark] .exam-section h4,[data-theme=dark] .exam-section h5,html[data-theme=dark] .exam-section h3,html[data-theme=dark] .exam-section h4,html[data-theme=dark] .exam-section h5{color:#e9ecef!important}[data-theme=dark] .exam-section .help-text,html[data-theme=dark] .exam-section .help-text{color:#adb5bd!important}[data-theme=dark] .quiz-filter-section,html[data-theme=dark] .quiz-filter-section{background-color:#25282c!important}[data-theme=dark] .quiz-filter-section .filter-label,html[data-theme=dark] .quiz-filter-section .filter-label{color:#e9ecef!important}[data-theme=dark] .quiz-card,html[data-theme=dark] .quiz-card{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .quiz-card:hover,html[data-theme=dark] .quiz-card:hover{background-color:#1976d226!important;border-color:#1976d2!important}[data-theme=dark] .quiz-card.selected,html[data-theme=dark] .quiz-card.selected{background-color:#1976d233!important;border-color:#1976d2!important}[data-theme=dark] .quiz-card .quiz-title,html[data-theme=dark] .quiz-card .quiz-title{color:#e9ecef!important}[data-theme=dark] .quiz-card .quiz-category,[data-theme=dark] .quiz-card .quiz-meta,html[data-theme=dark] .quiz-card .quiz-category,html[data-theme=dark] .quiz-card .quiz-meta{color:#adb5bd!important}[data-theme=dark] .source-stats,html[data-theme=dark] .source-stats{background-color:#25282c!important}[data-theme=dark] .source-stats h4,[data-theme=dark] .source-stats h5,html[data-theme=dark] .source-stats h4,html[data-theme=dark] .source-stats h5{color:#e9ecef!important}[data-theme=dark] .stat-item,html[data-theme=dark] .stat-item{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .stat-label,html[data-theme=dark] .stat-label{color:#adb5bd!important}[data-theme=dark] .type-item,html[data-theme=dark] .type-item{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .type-name,html[data-theme=dark] .type-name{color:#adb5bd!important}[data-theme=dark] .question-pool,html[data-theme=dark] .question-pool{background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .pool-header,html[data-theme=dark] .pool-header{background-color:#25282c!important}[data-theme=dark] .pool-header:hover,html[data-theme=dark] .pool-header:hover{background-color:#3d4148!important}[data-theme=dark] .pool-name,html[data-theme=dark] .pool-name{color:#e9ecef!important}[data-theme=dark] .pool-summary,html[data-theme=dark] .pool-summary{color:#adb5bd!important}[data-theme=dark] .pool-details,html[data-theme=dark] .pool-details{border-color:#495057!important}[data-theme=dark] .pool-row .form-group label,html[data-theme=dark] .pool-row .form-group label{color:#e9ecef!important}[data-theme=dark] .exam-summary,html[data-theme=dark] .exam-summary{background-color:#1976d226!important;border-color:#1976d2!important}[data-theme=dark] .summary-row,html[data-theme=dark] .summary-row{background-color:#2d3136!important}[data-theme=dark] .summary-row span,html[data-theme=dark] .summary-row span{color:#adb5bd!important}[data-theme=dark] .no-matches,[data-theme=dark] .no-quizzes-message,html[data-theme=dark] .no-matches,html[data-theme=dark] .no-quizzes-message{background-color:#25282c!important;color:#adb5bd!important}[data-theme=dark] .count-mode-option,html[data-theme=dark] .count-mode-option{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .count-mode-option:hover,html[data-theme=dark] .count-mode-option:hover{background-color:#63b3ed1a!important;border-color:#63b3ed!important}[data-theme=dark] .count-mode-option.selected,html[data-theme=dark] .count-mode-option.selected{background-color:#63b3ed26!important;border-color:#63b3ed!important}[data-theme=dark] .count-mode-option .option-title,html[data-theme=dark] .count-mode-option .option-title{color:#e9ecef!important}[data-theme=dark] .count-mode-option .option-desc,html[data-theme=dark] .count-mode-option .option-desc{color:#adb5bd!important}[data-theme=dark] .count-mode-info,html[data-theme=dark] .count-mode-info{background-color:#fb8c0026!important;border-color:#fb8c00!important;color:#ffb74d!important}[data-theme=dark] .reuse-checkbox,html[data-theme=dark] .reuse-checkbox{background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .reuse-checkbox:hover,html[data-theme=dark] .reuse-checkbox:hover{background-color:#63b3ed1a!important;border-color:#63b3ed!important}[data-theme=dark] .reuse-checkbox .checkbox-label,html[data-theme=dark] .reuse-checkbox .checkbox-label{color:#e9ecef!important}[data-theme=dark] .reuse-limit-setting,html[data-theme=dark] .reuse-limit-setting{background-color:#63b3ed1a!important;border-color:#63b3ed!important}[data-theme=dark] .reuse-limit-setting label,html[data-theme=dark] .reuse-limit-setting label{color:#e9ecef!important}[data-theme=dark] .reuse-hint,html[data-theme=dark] .reuse-hint{color:#adb5bd!important}[data-theme=dark] .quiz-selection-header,html[data-theme=dark] .quiz-selection-header{border-bottom-color:#495057!important}[data-theme=dark] .selection-count,html[data-theme=dark] .selection-count{color:#adb5bd!important}[data-theme=dark] .quiz-table thead,html[data-theme=dark] .quiz-table thead{background-color:#25282c!important}[data-theme=dark] .quiz-table th,html[data-theme=dark] .quiz-table th{border-bottom-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .quiz-table td,html[data-theme=dark] .quiz-table td{border-bottom-color:#3d4148!important}[data-theme=dark] .quiz-table .col-title,html[data-theme=dark] .quiz-table .col-title{color:#e9ecef!important}[data-theme=dark] .quiz-table .col-category,html[data-theme=dark] .quiz-table .col-category{color:#adb5bd!important}[data-theme=dark] .quiz-row:hover,html[data-theme=dark] .quiz-row:hover{background-color:#1976d21a!important}[data-theme=dark] .quiz-row.selected,html[data-theme=dark] .quiz-row.selected{background-color:#1976d233!important}[data-theme=dark] .preview-document,html[data-theme=dark] .preview-document{background:#fff!important;background-color:#fff!important;color:#000}[data-theme=dark] .preview-document .preview-renderer,[data-theme=dark] .preview-document .questions-section,[data-theme=dark] .preview-document div:not([style*=color]),[data-theme=dark] .preview-document p,html[data-theme=dark] .preview-document .preview-renderer,html[data-theme=dark] .preview-document .questions-section,html[data-theme=dark] .preview-document div:not([style*=color]),html[data-theme=dark] .preview-document p{color:#000}[data-theme=dark] .preview-document em,html[data-theme=dark] .preview-document em{color:#666!important}[data-theme=dark] .preview-page,html[data-theme=dark] .preview-page{background:#fff!important;background-color:#fff!important;color:#000}[data-theme=dark] .preview-page .preview-renderer,[data-theme=dark] .preview-page .questions-section,[data-theme=dark] .preview-page div:not([style*=color]),[data-theme=dark] .preview-page p,html[data-theme=dark] .preview-page .preview-renderer,html[data-theme=dark] .preview-page .questions-section,html[data-theme=dark] .preview-page div:not([style*=color]),html[data-theme=dark] .preview-page p{color:#000}[data-theme=dark] .preview-page em,html[data-theme=dark] .preview-page em{color:#666!important}html[data-theme=dark] .docx-preview-container section,html[data-theme=dark] .docx-wrapper section,html[data-theme=dark] section.docx{background:#fff!important;background-color:#fff!important}html[data-theme=dark] .docx-preview-container,html[data-theme=dark] .docx-preview-content-wrapper,html[data-theme=dark] .docx-wrapper{background:#1e2124!important;background-color:#1e2124!important}[data-theme=dark] .category-item,html[data-theme=dark] .category-item{background:#2d3136!important;background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .category-item:hover,html[data-theme=dark] .category-item:hover{background:#3d4148!important;background-color:#3d4148!important}[data-theme=dark] .bulk-actions-bar,[data-theme=dark] .bulk-actions-bar[style],html[data-theme=dark] .bulk-actions-bar,html[data-theme=dark] .bulk-actions-bar[style]{background:#2d3136!important;background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .bulk-actions-bar span,html[data-theme=dark] .bulk-actions-bar span{color:#e9ecef!important}[data-theme=dark] .archived-section,html[data-theme=dark] .archived-section{border-top-color:#495057!important}[data-theme=dark] .archived-section h3,html[data-theme=dark] .archived-section h3{color:#e9ecef!important}[data-theme=dark] .archived-categories-list>div,[data-theme=dark] .archived-questions-list>div,html[data-theme=dark] .archived-categories-list>div,html[data-theme=dark] .archived-questions-list>div{background:#2d3136!important;background-color:#2d3136!important}[data-theme=dark] .archived-category-item,[data-theme=dark] .archived-category-item[style],html[data-theme=dark] .archived-category-item,html[data-theme=dark] .archived-category-item[style]{background:#25282c!important;background-color:#25282c!important;border-color:#495057!important}[data-theme=dark] .archived-category-item div,[data-theme=dark] .archived-category-item span,html[data-theme=dark] .archived-category-item div,html[data-theme=dark] .archived-category-item span{color:#e9ecef!important}[data-theme=dark] .archived-section div[style*=background],html[data-theme=dark] .archived-section div[style*=background]{background:#2d3136!important;background-color:#2d3136!important}[data-theme=dark] .archived-section div[style*=background]>div[style*=background],html[data-theme=dark] .archived-section div[style*=background]>div[style*=background]{background:#25282c!important;background-color:#25282c!important}[data-theme=dark] .bulk-actions-bar[style*=background],[data-theme=dark] div.bulk-actions-bar[style],html[data-theme=dark] .bulk-actions-bar[style*=background],html[data-theme=dark] div.bulk-actions-bar[style]{background:#2d3136!important;background-color:#2d3136!important;border-color:#495057!important}[data-theme=dark] .empty-state[style*=background],[data-theme=dark] div.empty-state[style],html[data-theme=dark] .empty-state[style*=background],html[data-theme=dark] div.empty-state[style]{background:#2d3136!important;background-color:#2d3136!important}[data-theme=dark] .empty-state p,html[data-theme=dark] .empty-state p{color:#adb5bd!important}[data-theme=dark] .archived-section div[style*=display],[data-theme=dark] .archived-section h3[style],[data-theme=dark] .archived-section>div[style],html[data-theme=dark] .archived-section div[style*=display],html[data-theme=dark] .archived-section h3[style],html[data-theme=dark] .archived-section>div[style]{color:#e9ecef!important}[data-theme=dark] .category-container div[style*="#f8f9fa"],[data-theme=dark] .category-container div[style*=f8f9fa],html[data-theme=dark] .category-container div[style*="#f8f9fa"],html[data-theme=dark] .category-container div[style*=f8f9fa]{background:#2d3136!important;background-color:#2d3136!important}[data-theme=dark] .category-container div[style*="#fff"],[data-theme=dark] .category-container div[style*=white],html[data-theme=dark] .category-container div[style*="#fff"],html[data-theme=dark] .category-container div[style*=white]{background:#25282c!important;background-color:#25282c!important}[data-theme=dark] .conflict-warning[style],[data-theme=dark] div.conflict-warning[style*=background],html[data-theme=dark] .conflict-warning[style],html[data-theme=dark] div.conflict-warning[style*=background]{background:#5a4d20!important;background-color:#5a4d20!important;border-color:#7a6a30!important;color:#f9e7a0!important}[data-theme=dark] .archived-section[style*="#dee2e6"],[data-theme=dark] div[style*="#dee2e6"],html[data-theme=dark] .archived-section[style*="#dee2e6"],html[data-theme=dark] div[style*="#dee2e6"]{border-color:#495057!important}[data-theme=dark] span[style*="#6c757d"],[data-theme=dark] span[style*="#999"],html[data-theme=dark] span[style*="#6c757d"],html[data-theme=dark] span[style*="#999"]{color:#adb5bd!important}[data-theme=dark] .question-bank-content>div[style*=borderTop],[data-theme=dark] .question-bank-content>div[style*=marginTop],html[data-theme=dark] .question-bank-content>div[style*=borderTop],html[data-theme=dark] .question-bank-content>div[style*=marginTop]{border-top-color:#495057!important}[data-theme=dark] .question-bank-content div[style*="#f8f9fa"],[data-theme=dark] .question-bank-content div[style*=f8f9fa],html[data-theme=dark] .question-bank-content div[style*="#f8f9fa"],html[data-theme=dark] .question-bank-content div[style*=f8f9fa]{background:#2d3136!important;background-color:#2d3136!important}[data-theme=dark] .question-bank-content div[style*="#fff"],[data-theme=dark] .question-bank-content div[style*=white],html[data-theme=dark] .question-bank-content div[style*="#fff"],html[data-theme=dark] .question-bank-content div[style*=white]{background:#25282c!important;background-color:#25282c!important}[data-theme=dark] div[style*="#fff3cd"],[data-theme=dark] div[style*="backgroundColor: '#fff3cd"],html[data-theme=dark] div[style*="#fff3cd"],html[data-theme=dark] div[style*="backgroundColor: '#fff3cd"]{background:#5a4d20!important;background-color:#5a4d20!important;border-color:#7a6a30!important}[data-theme=dark] span[style*="#856404"],html[data-theme=dark] span[style*="#856404"]{color:#f9e7a0!important}[data-theme=dark] .question-bank-content h3[style],html[data-theme=dark] .question-bank-content h3[style]{color:#e9ecef!important}[data-theme=dark] .page-content div[style*="#f8f9fa"],[data-theme=dark] .page-content div[style*=f8f9fa],html[data-theme=dark] .page-content div[style*="#f8f9fa"],html[data-theme=dark] .page-content div[style*=f8f9fa]{background:#2d3136!important;background-color:#2d3136!important}[data-theme=dark] .page-content div[style*="#fff"],html[data-theme=dark] .page-content div[style*="#fff"]{background:#25282c!important;background-color:#25282c!important}[data-theme=dark] .selection-mode-bar[style],[data-theme=dark] div[style*="linear-gradient(135deg, #e3f2fd"],html[data-theme=dark] .selection-mode-bar[style],html[data-theme=dark] div[style*="linear-gradient(135deg, #e3f2fd"]{background:linear-gradient(135deg,#1e3a5f,#2d3136)!important;border-color:#3d8bfd!important}[data-theme=dark] .selection-mode-bar h3,[data-theme=dark] .selection-mode-bar p,html[data-theme=dark] .selection-mode-bar h3,html[data-theme=dark] .selection-mode-bar p{color:#e9ecef!important}[data-theme=dark] .category-item input[type=number],[data-theme=dark] .order-controls input,[data-theme=dark] .order-input,[data-theme=dark] .order-input[style],[data-theme=dark] input.order-input,[data-theme=dark] input.order-input[style],html[data-theme=dark] .category-item input[type=number],html[data-theme=dark] .category-item input[type=number][style],html[data-theme=dark] .category-tree .order-controls input,html[data-theme=dark] .category-tree input[type=number],html[data-theme=dark] .order-controls input,html[data-theme=dark] .order-controls input[style],html[data-theme=dark] .order-input,html[data-theme=dark] .order-input[style],html[data-theme=dark] input.order-input,html[data-theme=dark] input.order-input[style]{-webkit-appearance:none!important;-moz-appearance:textfield!important;background:#3d4148!important;background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .order-input:focus,[data-theme=dark] input.order-input:focus,html[data-theme=dark] .order-input:focus,html[data-theme=dark] input.order-input:focus{background:#3d4148!important;background-color:#3d4148!important;border-color:#3d8bfd!important;box-shadow:0 0 0 .2rem #3d8bfd40!important}[data-theme=dark] .category-container .ordering-help,[data-theme=dark] .list-section .ordering-help,[data-theme=dark] .ordering-help,html[data-theme=dark] .category-container .ordering-help,html[data-theme=dark] .list-section .ordering-help,html[data-theme=dark] .ordering-help{background:#1e3a5f!important;background-color:#1e3a5f!important;border-color:#2563eb!important}[data-theme=dark] .ordering-help .help-icon,[data-theme=dark] .ordering-help small,html[data-theme=dark] .ordering-help .help-icon,html[data-theme=dark] .ordering-help small{color:#60a5fa!important}[data-theme=dark] .matching-editor input[type=text],[data-theme=dark] .matching-pair input,[data-theme=dark] .matching-pair-input,[data-theme=dark] .matching-pairs-container input[type=text],[data-theme=dark] input.matching-pair-input,html[data-theme=dark] .matching-editor input[type=text],html[data-theme=dark] .matching-pair input,html[data-theme=dark] .matching-pair-input,html[data-theme=dark] .matching-pairs-container input[type=text],html[data-theme=dark] input.matching-pair-input{background:#3d4148!important;background-color:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .matching-editor input::placeholder,[data-theme=dark] .matching-pair-input::placeholder,html[data-theme=dark] .matching-editor input::placeholder,html[data-theme=dark] .matching-pair-input::placeholder{color:#6c757d!important}[data-theme=dark] .matching-editor input:focus,[data-theme=dark] .matching-pair-input:focus,html[data-theme=dark] .matching-editor input:focus,html[data-theme=dark] .matching-pair-input:focus{background:#3d4148!important;background-color:#3d4148!important;border-color:#3d8bfd!important;box-shadow:0 0 0 .2rem #3d8bfd40!important}[data-theme=dark] .advanced-options,html[data-theme=dark] .advanced-options{background-color:#25282c!important;background:#25282c!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .advanced-options h4,html[data-theme=dark] .advanced-options h4{color:#e9ecef!important}[data-theme=dark] .advanced-option,html[data-theme=dark] .advanced-option{background-color:#2d3035!important;border-color:#495057!important}[data-theme=dark] .option-toggle label,html[data-theme=dark] .option-toggle label{color:#e9ecef!important}[data-theme=dark] .option-description,html[data-theme=dark] .option-description{color:#adb5bd!important}[data-theme=dark] .column-header-row input,[data-theme=dark] .columns-list input,[data-theme=dark] .distractor-row input,[data-theme=dark] .distractors-container input,[data-theme=dark] .multi-columns-container input,[data-theme=dark] .subset-container input,[data-theme=dark] .subset-input input,[data-theme=dark] .subset-inputs input,html[data-theme=dark] .column-header-row input,html[data-theme=dark] .columns-list input,html[data-theme=dark] .distractor-row input,html[data-theme=dark] .distractors-container input,html[data-theme=dark] .multi-columns-container input,html[data-theme=dark] .subset-container input,html[data-theme=dark] .subset-input input,html[data-theme=dark] .subset-inputs input{background-color:#3d4148!important;background:#3d4148!important;border-color:#495057!important;color:#e9ecef!important}[data-theme=dark] .subset-input label,html[data-theme=dark] .subset-input label{color:#e9ecef!important}.matching-item span,.option-label span,.option-text,.ordering-item-content,.part-question,.question-content-preview,.question-text,.tf-option span{font-size:16px!important;line-height:1.5!important}.form-check,.form-check-label,.matching-item,.option-label,.question-form label,.question-options label,.tf-option{align-items:flex-start!important;display:flex!important;gap:10px!important}.online-settings-modal .setting-info label{display:block!important}input[type=checkbox],input[type=radio]{-webkit-appearance:none;appearance:none;background-color:initial;border:2px solid #6c757d;cursor:pointer;flex-shrink:0!important;height:18px!important;margin:2px 10px 0 0!important;min-height:18px!important;min-width:18px!important;position:relative;width:18px!important}input[type=radio]{border-radius:50%!important}input[type=checkbox]{border-radius:3px!important}input[type=radio]:checked{background-color:#007bff;border-color:#007bff}input[type=radio]:checked:after{background-color:#fff;border-radius:50%;content:"";height:8px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}input[type=checkbox]:checked{background-color:#007bff;border-color:#007bff}input[type=checkbox]:checked:after{border:solid #fff;border-width:0 2px 2px 0;content:"";height:10px;left:5px;position:absolute;top:1px;transform:rotate(45deg);width:5px}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:0 0 0 3px #007bff40;outline:none}input[type=checkbox]:disabled,input[type=radio]:disabled{cursor:not-allowed;opacity:.6}.form-check-label,.option-label>.option-text,.option-label>span,label>span:not(:first-child){flex:1 1 auto!important;line-height:1.5!important;padding-top:0!important}.multi-part-question-preview .option-label{align-items:flex-start!important;display:flex!important;flex-direction:row!important;gap:10px!important;padding:12px 15px!important}.multi-part-question-preview .option-label input[type=checkbox],.multi-part-question-preview .option-label input[type=radio]{margin-right:0!important;margin-top:2px!important}.true-false-options .option-label,.true-false-options label{align-items:flex-start!important;display:flex!important;gap:10px!important}.matching-item,.matching-row{align-items:flex-start!important;display:flex!important;gap:12px!important}.matching-item input[type=text],.matching-row input[type=text]{margin-top:0!important}.ordering-item{align-items:center!important;display:flex!important;gap:12px!important}.form-group label,.question-content label{align-items:flex-start!important;display:flex!important;gap:8px!important}.form-group label input[type=checkbox],.question-content label input[type=checkbox]{margin-top:3px!important}[data-theme=dark] input[type=checkbox],[data-theme=dark] input[type=radio]{background-color:initial;border-color:#6c757d}[data-theme=dark] input[type=checkbox]:checked,[data-theme=dark] input[type=radio]:checked{background-color:#4dabf7;border-color:#4dabf7}[data-theme=dark] input[type=checkbox]:focus,[data-theme=dark] input[type=radio]:focus{box-shadow:0 0 0 3px #4dabf740}.form-group>div>label,div[style*="display: block"]>label{align-items:flex-start!important;display:flex!important;gap:8px!important;margin-bottom:8px!important}.form-group>div>label input[type=checkbox],div[style*="display: block"]>label input[type=checkbox]{flex-shrink:0!important;margin-top:3px!important}
/*# sourceMappingURL=main.6390f9f7.css.map*/