@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box;margin:0;padding:0}body{color:#1e293b;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f8fafc;min-width:320px;min-height:100vh;margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font-family:inherit}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#a0aec0}*{box-sizing:border-box}#root{width:100%;min-height:100vh;margin:0;padding:0}.app{width:100%;min-height:100vh}.app-loading{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);flex-direction:column;justify-content:center;align-items:center;min-height:100vh;display:flex}.loading-spinner-large{border:6px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:60px;height:60px;margin-bottom:20px;animation:1s linear infinite spin}.app-loading p{margin:0;font-size:18px;font-weight:500}@keyframes spin{to{transform:rotate(360deg)}}.admin-dashboard{background:#f8fafc;min-height:100vh;padding:0}.dashboard-header{background:#fff;border-bottom:1px solid #e2e8f0;padding:1.5rem 2rem;box-shadow:0 1px 3px #0000000d}.header-content{justify-content:space-between;align-items:center;gap:2rem;max-width:1400px;margin:0 auto;display:flex}.header-left{flex:1}.dashboard-header h1{color:#1e293b;letter-spacing:-.02em;margin:0;font-size:1.75rem;font-weight:700}.subtitle{color:#64748b;margin:.25rem 0 0;font-size:.95rem;font-weight:400}.header-right{align-items:center;gap:1rem;display:flex}.connection-status{flex-shrink:0}.logout-button{color:#fff;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);border:none;border-radius:6px;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:600;transition:all .3s;display:flex}.logout-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #ef444466}.logout-button:active{transform:translateY(0)}.status-badge{white-space:nowrap;border-radius:6px;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;display:inline-flex}.status-online{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0}.status-offline{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.loading-screen{flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100vh;display:flex}.loader{border:4px solid #e2e8f0;border-top-color:#1e40af;border-radius:50%;width:50px;height:50px;animation:1s linear infinite spin}.error-banner{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:2rem;padding:1rem 1.5rem;display:flex}.error-banner strong{flex-shrink:0}.error-banner button{color:#991b1b;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.25rem .5rem;font-size:1.25rem;transition:background .2s}.error-banner button:hover{background:#0000000d}.dashboard-content{max-width:1400px;margin:0 auto;padding:2.5rem 2rem}.actions-bar{flex-wrap:wrap;gap:.75rem;margin-bottom:2rem;display:flex}.btn-primary:hover{background:#1e3a8a;box-shadow:0 2px 4px #1e40af33}.empty-state{text-align:center;background:#fff;border-radius:12px;padding:4rem 2rem;box-shadow:0 4px 6px #0000001a}.empty-icon{margin-bottom:1rem;font-size:4rem}.empty-state h2{color:#1a202c;margin-bottom:.5rem}.empty-state p{color:#718096;margin-bottom:2rem}.empty-actions{flex-wrap:wrap;justify-content:center;gap:1rem;display:flex}.quizzes-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem;display:grid}.quiz-card{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1.5rem;transition:all .2s}.quiz-card:hover{border-color:#cbd5e1;box-shadow:0 4px 6px #0000000d,0 1px 3px #00000014}.quiz-card-header{justify-content:space-between;align-items:flex-start;margin-bottom:1rem;display:flex}.quiz-card-header h3{color:#1a202c;flex:1;margin:0;font-size:1.25rem}.quiz-card-actions{gap:.5rem;display:flex}.icon-btn{cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.25rem;font-size:1.2rem;transition:all .2s}.icon-btn:hover{background:#f7fafc;transform:scale(1.1)}.icon-btn.danger:hover{background:#fee}.quiz-description{color:#718096;margin-bottom:1rem;font-size:.95rem;line-height:1.5}.quiz-meta{flex-wrap:wrap;gap:1rem;margin-bottom:1rem;display:flex}.meta-item{color:#4a5568;background:#f7fafc;border-radius:6px;padding:.4rem .8rem;font-size:.9rem}.quiz-date{color:#a0aec0;border-top:1px solid #e2e8f0;padding-top:.75rem;font-size:.85rem}.modal-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:12px;flex-direction:column;width:100%;max-width:800px;max-height:80vh;display:flex;overflow:hidden}.modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.modal-header h2{color:#1a202c;margin:0}.close-btn{cursor:pointer;color:#718096;background:0 0;border:none;border-radius:4px;padding:.25rem .5rem;font-size:1.5rem;transition:all .2s}.close-btn:hover{color:#1a202c;background:#f7fafc}.modal-body{padding:1.5rem;overflow-y:auto}.samples-grid{gap:1rem;display:grid}.sample-card{cursor:pointer;border:2px solid #e2e8f0;border-radius:8px;padding:1.5rem;transition:all .2s}.sample-card:hover{background:#f7fafc;border-color:#4361ee;transform:translate(4px)}.sample-card h3{color:#1a202c;margin:0 0 .5rem}.sample-card p{color:#718096;margin:0 0 1rem;font-size:.95rem}.sample-meta{color:#4361ee;font-size:.9rem;font-weight:600}@media (max-width:768px){.dashboard-header h1{font-size:2rem}.quizzes-grid{grid-template-columns:1fr}.actions-bar{flex-direction:column}.btn{width:100%}}.question-builder{background:#fff;border:2px solid #e2e8f0;border-radius:8px;margin-bottom:1rem;overflow:hidden}.question-header{background:#f7fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1rem;display:flex}.question-header-left{flex:1;align-items:center;gap:.75rem;display:flex}.collapse-btn{cursor:pointer;color:#4a5568;background:0 0;border:none;padding:.25rem .5rem;font-size:1rem}.question-number{color:#2d3748;font-size:1rem;font-weight:600}.question-type-badge{color:#fff;background:#4361ee;border-radius:12px;padding:.25rem .75rem;font-size:.85rem;font-weight:500}.question-header-right{gap:.5rem;display:flex}.move-btn,.delete-btn{cursor:pointer;background:#fff;border:1px solid #cbd5e0;border-radius:4px;padding:.4rem .7rem;font-size:1rem;transition:all .2s}.move-btn:hover:not(:disabled){background:#f7fafc;border-color:#4361ee}.move-btn:disabled{opacity:.4;cursor:not-allowed}.delete-btn:hover{background:#fee;border-color:#fc8181}.question-body{padding:1.5rem}.select-input,.question-text-input{border:1px solid #cbd5e0;border-radius:6px;width:100%;padding:.75rem;font-family:inherit;font-size:1rem;transition:all .2s}.select-input:focus,.question-text-input:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.question-text-input{resize:vertical;min-height:60px}.options-section{margin-top:1.5rem}.options-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.options-header label{color:#2d3748;margin:0;font-size:.95rem;font-weight:600}.btn-small{cursor:pointer;border:none;border-radius:6px;padding:.5rem 1rem;font-size:.9rem;font-weight:600;transition:all .2s}.btn-small.btn-primary{color:#fff;background:#4361ee}.btn-small.btn-primary:hover{background:#3651d4}.options-list{flex-direction:column;gap:.75rem;display:flex}.option-item{background:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;align-items:center;gap:.75rem;padding:.75rem;display:flex}.option-number{color:#fff;background:#4361ee;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:.9rem;font-weight:600;display:flex}.option-text-input{border:1px solid #cbd5e0;border-radius:4px;flex:1;padding:.6rem;font-family:inherit;font-size:.95rem}.option-text-input:focus{border-color:#4361ee;outline:none}.score-input-wrapper{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.score-label{color:#4a5568;font-size:.9rem;font-weight:500}.score-input{text-align:center;border:1px solid #cbd5e0;border-radius:4px;width:70px;padding:.6rem;font-family:inherit;font-size:.95rem}.score-input:focus{border-color:#4361ee;outline:none}.delete-option-btn{cursor:pointer;color:#e53e3e;background:#fff;border:1px solid #cbd5e0;border-radius:4px;flex-shrink:0;padding:.4rem .7rem;font-size:1.1rem;transition:all .2s}.delete-option-btn:hover:not(:disabled){background:#fee;border-color:#fc8181}.delete-option-btn:disabled{opacity:.4;cursor:not-allowed}.empty-options{text-align:center;color:#718096;padding:2rem}.text-question-note{color:#2c5282;background:#ebf8ff;border:1px solid #90cdf4;border-radius:6px;padding:1rem;font-size:.95rem;line-height:1.5}.text-question-note p{margin:0}.text-question-options{margin-top:1rem}.image-upload-section{flex-direction:column;gap:.75rem;display:flex}.file-input{display:none}.file-input-label{color:#fff;cursor:pointer;text-align:center;background:#4361ee;border-radius:6px;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;transition:all .2s;display:inline-block}.file-input-label:hover{background:#3651d4}.file-input-label-small{color:#fff;cursor:pointer;white-space:nowrap;background:#4361ee;border-radius:4px;padding:.5rem .75rem;font-size:.85rem;font-weight:600;transition:all .2s;display:inline-block}.file-input-label-small:hover{background:#3651d4}.image-preview{max-width:300px;display:inline-block;position:relative}.image-preview img{border:2px solid #e2e8f0;border-radius:6px;width:100%;height:auto}.remove-image-btn{color:#fff;cursor:pointer;background:#ef4444e6;border:none;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:1.2rem;transition:all .2s;display:flex;position:absolute;top:.5rem;right:.5rem}.remove-image-btn:hover{background:#dc2626;transform:scale(1.1)}.options-controls{align-items:center;gap:.75rem;display:flex}.select-input-small{cursor:pointer;background:#fff;border:1px solid #cbd5e0;border-radius:6px;padding:.5rem .75rem;font-family:inherit;font-size:.9rem;transition:all .2s}.select-input-small:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.option-item-image{flex-wrap:wrap;align-items:flex-start}.option-image-upload{flex-wrap:wrap;flex:1;align-items:center;gap:.5rem;display:flex}.option-image-preview{border:2px solid #e2e8f0;border-radius:6px;width:100px;height:100px;overflow:hidden}.option-image-preview img{object-fit:cover;width:100%;height:100%}.option-text-input-small{border:1px solid #cbd5e0;border-radius:4px;flex:1;min-width:150px;padding:.5rem;font-family:inherit;font-size:.9rem}.option-text-input-small:focus{border-color:#4361ee;outline:none}@media (max-width:768px){.option-item{flex-wrap:wrap}.option-text-input{order:1;width:100%}.score-input-wrapper{order:2}.delete-option-btn{order:3}.question-header{flex-direction:column;gap:1rem}.question-header-left,.question-header-right{justify-content:space-between;width:100%}}.scoring-config{padding:2rem}.content-header h2{color:#1a202c;margin:0}.scoring-info{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem;display:grid}.info-card{text-align:center;background:#fff;border:2px solid #e2e8f0;border-radius:8px;padding:1.5rem}.info-label{color:#718096;margin-bottom:.5rem;font-size:.9rem}.info-value{color:#4361ee;font-size:2rem;font-weight:700}.validation-errors{background:#fff5f5;border:2px solid #fc8181;border-radius:8px;margin-bottom:2rem;padding:1.5rem}.validation-errors h3{color:#c53030;margin:0 0 1rem}.validation-errors ul{color:#742a2a;margin:0;padding-left:1.5rem}.validation-errors li{margin-bottom:.5rem}.empty-scoring{text-align:center;background:#fff;border:2px dashed #cbd5e0;border-radius:8px;padding:3rem}.empty-scoring p{color:#4a5568;margin-bottom:1rem}.empty-hint{color:#718096;font-size:.95rem;margin-bottom:2rem!important}.ranges-list{flex-direction:column;gap:1rem;display:flex}.range-card{background:#fff;border:2px solid #e2e8f0;border-radius:8px;overflow:hidden}.range-header{cursor:pointer;-webkit-user-select:none;user-select:none;background:#f7fafc;justify-content:space-between;align-items:center;padding:1.25rem;transition:background .2s;display:flex}.range-header:hover{background:#edf2f7}.range-header-left{flex:1;align-items:center;gap:.75rem;display:flex}.range-expand-icon{color:#4a5568;font-size:.9rem}.range-title{color:#2d3748;font-size:1.1rem;font-weight:600}.range-score-badge{color:#fff;background:#4361ee;border-radius:12px;padding:.3rem .8rem;font-size:.85rem;font-weight:500}.delete-range-btn{cursor:pointer;background:#fff;border:1px solid #cbd5e0;border-radius:4px;padding:.4rem .7rem;font-size:1.1rem;transition:all .2s}.delete-range-btn:hover{background:#fee;border-color:#fc8181}.range-body{border-top:1px solid #e2e8f0;padding:1.5rem}.form-row{grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem;display:grid}.text-input,.score-range-input{border:1px solid #cbd5e0;border-radius:6px;width:100%;padding:.75rem;font-family:inherit;font-size:1rem;transition:all .2s}.text-input:focus,.score-range-input:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}textarea.text-input{resize:vertical}.range-preview{background:#f7fafc;border:1px solid #e2e8f0;border-radius:6px;margin-top:1.5rem;padding:1rem}.range-preview strong{color:#2d3748;margin-bottom:.75rem;display:block}.preview-box{background:#fff;border:1px solid #cbd5e0;border-radius:6px;padding:1.25rem}.preview-level{color:#2d3748;margin-bottom:.5rem;font-size:1.2rem;font-weight:700}.preview-score{color:#4361ee;margin-bottom:.75rem;font-weight:600}.preview-message{color:#4a5568;margin-bottom:.5rem;line-height:1.6}.preview-redirect{color:#10b981;border-top:1px solid #e2e8f0;margin-top:.75rem;padding-top:.75rem;font-size:.9rem}.scoring-help{background:#ebf8ff;border:1px solid #90cdf4;border-radius:8px;margin-top:2rem;padding:1.5rem}.scoring-help h3{color:#2c5282;margin:0 0 1rem}.scoring-help ul{color:#2c5282;margin:0;padding-left:1.5rem}.scoring-help li{margin-bottom:.5rem;line-height:1.5}@media (max-width:768px){.scoring-config{padding:1rem}.content-header{flex-direction:column;align-items:stretch;gap:1rem}.form-row{grid-template-columns:1fr}.range-header{flex-direction:column;gap:1rem}.range-header-left{width:100%}}.style-customizer{padding:2rem}.style-customizer h2{color:#1a202c;margin:0 0 2rem}.style-section{background:#fff;border:2px solid #e2e8f0;border-radius:8px;margin-bottom:1.5rem;padding:1.5rem}.style-section h3{color:#2d3748;margin:0 0 1rem;font-size:1.1rem}.themes-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem;display:grid}.theme-card{cursor:pointer;text-align:center;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;padding:1.25rem;transition:all .2s}.theme-card:hover{border-color:#4361ee;transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.theme-colors{justify-content:center;gap:.5rem;margin-bottom:.75rem;display:flex}.theme-color-dot{border:2px solid #fff;border-radius:50%;width:30px;height:30px;box-shadow:0 2px 4px #0000001a}.theme-name{color:#2d3748;font-size:.9rem;font-weight:600}.color-controls{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem;display:grid}.color-control label{color:#2d3748;margin-bottom:.5rem;font-size:.95rem;font-weight:600;display:block}.color-input-wrapper{align-items:center;gap:.75rem;display:flex}.color-picker{cursor:pointer;border:2px solid #cbd5e0;border-radius:6px;width:60px;height:45px;transition:all .2s}.color-picker:hover{border-color:#4361ee}.color-text{border:1px solid #cbd5e0;border-radius:6px;flex:1;padding:.75rem;font-family:Monaco,Courier New,monospace;font-size:1rem;transition:all .2s}.color-text:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.font-control{max-width:500px;margin-bottom:1.25rem}.font-control label{color:#2d3748;margin-bottom:.5rem;font-size:.95rem;font-weight:600;display:block}.font-select{cursor:pointer;background:#fff;border:1px solid #cbd5e0;border-radius:6px;width:100%;padding:.75rem;font-size:1rem;transition:all .2s}.font-select:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.button-style-control{max-width:500px;margin-bottom:1.25rem}.button-style-control label{color:#2d3748;margin-bottom:.5rem;font-size:.95rem;font-weight:600;display:block}.size-control{align-items:center;gap:1rem;display:flex}.size-slider{-webkit-appearance:none;cursor:pointer;background:#e2e8f0;border-radius:5px;outline:none;flex:1;height:6px}.size-slider::-webkit-slider-thumb{appearance:none;cursor:pointer;background:#4361ee;border-radius:50%;width:20px;height:20px;transition:all .2s}.size-slider::-webkit-slider-thumb:hover{background:#3651d4;transform:scale(1.1)}.size-slider::-moz-range-thumb{cursor:pointer;background:#4361ee;border:none;border-radius:50%;width:20px;height:20px;transition:all .2s}.size-slider::-moz-range-thumb:hover{background:#3651d4;transform:scale(1.1)}.size-value{text-align:center;color:#4361ee;background:#ebf5ff;border-radius:4px;min-width:50px;padding:.25rem .75rem;font-size:.95rem;font-weight:600}.preview-container{border:2px solid #e2e8f0;border-radius:8px;padding:2rem}.preview-container h2{text-align:center;margin:0 0 1.5rem;font-size:1.25rem}.preview-buttons{justify-content:center;margin-bottom:1.5rem;display:flex}.preview-btn{cursor:pointer;border:none;border-radius:8px;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;transition:all .3s;box-shadow:0 4px 6px #0000001a}.preview-progress{border-radius:10px;width:60%;height:8px;margin:0 auto}@media (max-width:768px){.style-customizer{padding:1rem}.color-controls{grid-template-columns:1fr}.themes-grid{grid-template-columns:repeat(2,1fr)}}.webhook-config{max-width:900px;padding:2rem}.webhook-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.webhook-header h2{color:#1a202c;margin:0}.webhook-config h2{color:#1a202c;margin:0 0 1.5rem}.webhook-info{background:#ebf8ff;border:1px solid #90cdf4;border-radius:8px;margin-bottom:2rem;padding:1.25rem}.webhook-info p{color:#2c5282;margin:0;line-height:1.6}.webhook-form{background:#fff;border:2px solid #e2e8f0;border-radius:8px;margin-bottom:2rem;padding:1.5rem}.webhooks-list{flex-direction:column;gap:1.5rem;margin-bottom:2rem;display:flex}.webhook-item{background:#fff;border:2px solid #e2e8f0;border-radius:8px;padding:1.5rem}.webhook-item-header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.webhook-name-input{color:#2d3748;border:1px solid #cbd5e0;border-radius:6px;flex:1;padding:.75rem;font-size:1rem;font-weight:600;transition:all .2s}.webhook-name-input:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.btn-remove-webhook{cursor:pointer;color:#e53e3e;background:#fff;border:1px solid #cbd5e0;border-radius:6px;padding:.5rem .75rem;font-size:1.2rem;transition:all .2s}.btn-remove-webhook:hover{background:#fee;border-color:#fc8181;transform:scale(1.05)}.webhook-input{border:1px solid #cbd5e0;border-radius:6px;width:100%;padding:.875rem;font-family:Monaco,Courier New,monospace;font-size:1rem;transition:all .2s}.webhook-input:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.form-hint{color:#718096;margin-top:.5rem;font-size:.85rem;font-style:italic;display:block}.webhook-actions{flex-wrap:wrap;gap:1rem;display:flex}.btn-secondary:hover:not(:disabled){background:#f7fafc;transform:translateY(-2px)}.btn-secondary:disabled{opacity:.5;cursor:not-allowed}.test-result{border-radius:6px;align-items:center;gap:.75rem;margin-top:1.5rem;padding:1rem;display:flex}.test-result.success{color:#166534;background:#f0fdf4;border:1px solid #86efac}.test-result.error{color:#991b1b;background:#fff5f5;border:1px solid #fca5a5}.test-result strong{flex-shrink:0}.webhook-payload-example{background:#fff;border:2px solid #e2e8f0;border-radius:8px;margin-bottom:2rem;padding:1.5rem}.webhook-payload-example h3{color:#2d3748;margin:0 0 1rem;font-size:1.1rem}.code-block{color:#68d391;background:#1a202c;border-radius:6px;margin:0;padding:1.25rem;font-family:Monaco,Courier New,monospace;font-size:.9rem;line-height:1.6;overflow-x:auto}.webhook-help{background:#fffaf0;border:1px solid #fbd38d;border-radius:8px;padding:1.5rem}.webhook-help h3{color:#7c2d12;margin:0 0 1rem}.webhook-help ul{color:#7c2d12;margin:0;padding-left:1.5rem}.webhook-help li{margin-bottom:.5rem;line-height:1.5}@media (max-width:768px){.webhook-config{padding:1rem}.webhook-actions{flex-direction:column}.btn{width:100%}}.export-modal-overlay{z-index:2000;background:#000000b3;justify-content:center;align-items:center;padding:1rem;animation:.2s fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.export-modal{background:#fff;border-radius:12px;flex-direction:column;width:100%;max-width:1000px;max-height:90vh;animation:.3s slideUp;display:flex;overflow:hidden}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.export-modal-header{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-bottom:2px solid #e2e8f0;justify-content:space-between;align-items:center;padding:1.5rem 2rem;display:flex}.export-modal-header h2{margin:0;font-size:1.5rem}.export-close-btn{color:#fff;cursor:pointer;background:#fff3;border:none;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.5rem;transition:all .2s;display:flex}.export-close-btn:hover{background:#ffffff4d;transform:rotate(90deg)}.export-modal-body{padding:2rem;overflow-y:auto}.export-info{background:#f0fdf4;border:2px solid #86efac;border-radius:8px;margin-bottom:1.5rem;padding:1.5rem}.export-info h3{color:#166534;margin:0 0 .75rem}.export-info p{color:#166534;margin:0;line-height:1.6}.export-actions{flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem;display:flex}.btn{cursor:pointer;border:none;border-radius:8px;padding:.875rem 1.75rem;font-family:inherit;font-size:1rem;font-weight:600;transition:all .3s}.btn-primary{color:#fff;background:#4361ee;flex:1}.btn-secondary{color:#4361ee;background:#fff;border:2px solid #4361ee;flex:1}.btn-secondary:hover{background:#f7fafc;transform:translateY(-2px)}.export-code-container{background:#1a202c;border-radius:8px;margin-bottom:1.5rem;overflow:hidden}.code-header{background:#2d3748;border-bottom:1px solid #4a5568;justify-content:space-between;align-items:center;padding:.875rem 1.25rem;display:flex}.code-title{color:#68d391;font-family:Monaco,Courier New,monospace;font-size:.9rem;font-weight:600}.code-size{color:#a0aec0;font-family:Monaco,Courier New,monospace;font-size:.85rem}.export-code{max-height:400px;margin:0;padding:1.25rem;overflow:auto}.export-code code{color:#68d391;white-space:pre-wrap;word-wrap:break-word;font-family:Monaco,Courier New,monospace;font-size:.85rem;line-height:1.6}.export-instructions{background:#fff;border:2px solid #e2e8f0;border-radius:8px;padding:1.5rem}.export-instructions h3{color:#1a202c;margin:0 0 1rem}.export-instructions ol{color:#2d3748;margin:0 0 1.5rem;padding-left:1.5rem}.export-instructions li{margin-bottom:.75rem;line-height:1.6}.export-tips{background:#fffaf0;border:1px solid #fbd38d;border-radius:6px;margin-top:1rem;padding:1.25rem}.export-tips h4{color:#7c2d12;margin:0 0 .75rem}.export-tips ul{color:#7c2d12;margin:0;padding-left:1.5rem}.export-tips li{margin-bottom:.5rem;line-height:1.5}.export-code::-webkit-scrollbar{width:8px;height:8px}.export-code::-webkit-scrollbar-track{background:#2d3748;border-radius:4px}.export-code::-webkit-scrollbar-thumb{background:#4a5568;border-radius:4px}.export-code::-webkit-scrollbar-thumb:hover{background:#718096}@media (max-width:768px){.export-modal{max-height:95vh}.export-modal-header,.export-modal-body{padding:1rem}.export-actions{flex-direction:column}.btn{width:100%}.export-code{font-size:.75rem}}.export-tabs{border-bottom:2px solid #e2e8f0;gap:.5rem;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.export-tab{color:#4a5568;cursor:pointer;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;flex:1;padding:.875rem 1.5rem;font-size:.95rem;font-weight:600;transition:all .2s}.export-tab:hover{background:#edf2f7;border-color:#cbd5e0}.export-tab.active{color:#fff;background:#4361ee;border-color:#4361ee;box-shadow:0 4px 12px #4361ee4d}.embed-code{color:#68d391!important;background:#1a202c!important;padding:1.5rem!important;font-size:.95rem!important}.file-structure{background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;margin:1rem 0;padding:1.25rem}.file-structure code{color:#2d3748;font-family:Monaco,Courier New,monospace;font-size:.9rem;line-height:1.8}.quiz-id-box{text-align:center;background:#ebf8ff;border:2px solid #4299e1;border-radius:8px;margin:1rem 0;padding:1rem}.quiz-id-box code{color:#2c5282;font-family:Monaco,Courier New,monospace;font-size:1.1rem;font-weight:700}.export-warning{color:#742a2a;background:#fff5f5;border:2px solid #fc8181;border-radius:8px;margin-top:1.5rem;padding:1rem}.export-warning strong{color:#c53030}.toast{z-index:10000;border-radius:8px;align-items:center;gap:.75rem;min-width:300px;max-width:500px;padding:1rem 1.25rem;animation:.3s ease-out slideIn;display:flex;position:fixed;bottom:2rem;right:2rem;box-shadow:0 10px 40px #0003}@keyframes slideIn{0%{opacity:0;transform:translate(400px)}to{opacity:1;transform:translate(0)}}.toast-success{color:#fff;background:#10b981}.toast-error{color:#fff;background:#ef4444}.toast-info{color:#fff;background:#3b82f6}.toast-warning{color:#fff;background:#f59e0b}.toast-icon{flex-shrink:0;font-size:1.25rem}.toast-message{flex:1;font-size:.95rem;font-weight:500}.toast-close{color:#fff;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:1.25rem;transition:all .2s;display:flex}.toast-close:hover{background:#fff3}@media (max-width:768px){.toast{min-width:auto;bottom:1rem;left:1rem;right:1rem}}.quiz-editor-loading{color:#1e293b;background:#f8fafc;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;display:flex}.loader{border:4px solid #e2e8f0;border-top-color:#1e40af;border-radius:50%;width:50px;height:50px;margin-bottom:1rem;animation:1s linear infinite spin}.quiz-editor{background:#f8fafc;flex-direction:column;min-height:100vh;display:flex}.editor-header{z-index:100;background:#fff;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 2rem;display:flex;position:sticky;top:0;box-shadow:0 1px 3px #0000000d}.header-left{flex:1;align-items:center;gap:1rem;min-width:200px;display:flex}.back-btn{cursor:pointer;color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:.625rem 1.25rem;font-size:.9rem;font-weight:500;transition:all .2s}.back-btn:hover{background:#f8fafc;border-color:#94a3b8}.quiz-title-section{flex:1;align-items:center;gap:.5rem;display:flex}.quiz-title-input{color:#1a202c;background:0 0;border:none;border-bottom:2px solid #0000;flex:1;max-width:500px;padding:.5rem;font-size:1.25rem;font-weight:700;transition:all .2s}.quiz-title-input:focus{background:#f7fafc;border-bottom-color:#4361ee;outline:none}.unsaved-badge{color:#f59e0b;font-size:1.5rem;animation:2s infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.header-right{flex-wrap:wrap;gap:.75rem;display:flex}.btn{cursor:pointer;border:none;border-radius:6px;padding:.625rem 1.25rem;font-family:inherit;font-size:.9rem;font-weight:500;transition:all .2s;box-shadow:0 1px 2px #0000000d}.btn-secondary{color:#475569;background:#fff;border:1px solid #cbd5e1}.btn-secondary:hover{background:#f8fafc;border-color:#94a3b8}.btn-success{color:#fff;background:#1e40af}.btn-success:hover{background:#1e3a8a;box-shadow:0 2px 4px #1e40af33}.editor-body{flex:1;display:flex;overflow:hidden}.editor-sidebar{background:#fff;border-right:2px solid #e2e8f0;flex-shrink:0;width:250px;overflow-y:auto}.editor-tabs{padding:1rem 0}.tab-btn{text-align:left;cursor:pointer;color:#4a5568;background:0 0;border:none;border-left:3px solid #0000;justify-content:space-between;align-items:center;width:100%;padding:1rem 1.5rem;font-size:1rem;font-weight:600;transition:all .2s;display:flex}.tab-btn:hover{color:#2d3748;background:#f7fafc}.tab-btn.active{color:#4361ee;background:#ebf8ff;border-left-color:#4361ee}.tab-badge{color:#4a5568;background:#e2e8f0;border-radius:12px;padding:.25rem .6rem;font-size:.85rem}.tab-btn.active .tab-badge{color:#fff;background:#4361ee}.editor-content{background:#f7fafc;flex:1;overflow-y:auto}.tab-content{padding:2rem}.tab-content h2{color:#1a202c;margin:0 0 1.5rem}.content-header{justify-content:space-between;align-items:center;margin-bottom:2rem;display:flex}.content-header h2{margin:0}.btn-primary{color:#fff;background:#4361ee}.btn-primary:hover{background:#3651d4;transform:translateY(-2px);box-shadow:0 4px 12px #4361ee4d}.empty-questions{text-align:center;background:#fff;border:2px dashed #cbd5e0;border-radius:8px;padding:3rem}.empty-questions p{color:#4a5568;margin-bottom:1.5rem}.questions-list{flex-direction:column;gap:1rem;display:flex}.settings-section{background:#fff;border:2px solid #e2e8f0;border-radius:8px;margin-bottom:1.5rem;padding:1.5rem}.settings-section h3{color:#2d3748;margin:0 0 1rem;font-size:1.1rem}.quiz-description-input{resize:vertical;border:1px solid #cbd5e0;border-radius:6px;width:100%;padding:.875rem;font-family:inherit;font-size:1rem;transition:all .2s}.quiz-description-input:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.checkbox-label{cursor:pointer;border-radius:6px;align-items:center;gap:.75rem;margin-bottom:.5rem;padding:.75rem;transition:background .2s;display:flex}.checkbox-label:hover{background:#f7fafc}.checkbox-label input[type=checkbox]{cursor:pointer;width:20px;height:20px}.checkbox-label span{color:#2d3748;font-size:.95rem}.form-group{margin-bottom:1.5rem}.form-group label{color:#2d3748;margin-bottom:.5rem;font-size:.95rem;font-weight:600;display:block}.form-group input,.form-group textarea{border:1px solid #cbd5e0;border-radius:6px;width:100%;padding:.75rem;font-family:inherit;font-size:1rem;transition:all .2s}.form-group input:focus,.form-group textarea:focus{border-color:#4361ee;outline:none;box-shadow:0 0 0 3px #4361ee1a}.form-group textarea{resize:vertical}@media (max-width:1024px){.editor-body{flex-direction:column}.editor-sidebar{border-bottom:2px solid #e2e8f0;border-right:none;width:100%}.editor-tabs{padding:0;display:flex;overflow-x:auto}.tab-btn{border-bottom:3px solid #0000;border-left:none;flex-shrink:0;min-width:150px}.tab-btn.active{border-bottom-color:#4361ee;border-left-color:#0000}}@media (max-width:768px){.editor-header{padding:1rem}.header-left,.header-right{width:100%}.quiz-title-input{max-width:100%}.tab-content{padding:1rem}.content-header{flex-direction:column;align-items:stretch;gap:1rem}}.login-container{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{background:#fff;border-radius:16px;width:100%;max-width:420px;padding:40px;animation:.5s slideUp;box-shadow:0 20px 60px #0000004d}.login-header{text-align:center;margin-bottom:40px}.login-header h1{color:#1a202c;margin:0 0 8px;font-size:32px;font-weight:700}.login-header p{color:#718096;margin:0;font-size:16px}.login-form{flex-direction:column;gap:20px;display:flex}.login-error{color:#c53030;background:#fff5f5;border:1px solid #fc8181;border-radius:8px;align-items:center;gap:10px;padding:12px 16px;font-size:14px;animation:.5s shake;display:flex}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-5px)}20%,40%,60%,80%{transform:translate(5px)}}.error-icon{font-size:18px}.form-group{flex-direction:column;gap:8px;display:flex}.form-group label{color:#2d3748;font-size:14px;font-weight:600}.form-group input{border:2px solid #e2e8f0;border-radius:8px;padding:12px 16px;font-family:inherit;font-size:16px;transition:all .3s}.form-group input:focus{border-color:#667eea;outline:none;box-shadow:0 0 0 3px #667eea1a}.form-group input:disabled{cursor:not-allowed;opacity:.6;background-color:#f7fafc}.password-input-wrapper{align-items:center;display:flex;position:relative}.password-input-wrapper input{width:100%;padding-right:50px}.toggle-password{cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:4px 8px;font-size:20px;transition:transform .2s;display:flex;position:absolute;right:12px}.toggle-password:hover{transform:scale(1.1)}.toggle-password:disabled{cursor:not-allowed;opacity:.5}.login-button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border:none;border-radius:8px;justify-content:center;align-items:center;gap:10px;margin-top:10px;padding:14px 20px;font-size:16px;font-weight:600;transition:all .3s;display:flex}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{cursor:not-allowed;opacity:.7}.spinner{border:3px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}.login-footer{text-align:center;border-top:1px solid #e2e8f0;margin-top:30px;padding-top:20px}.login-footer p{color:#a0aec0;margin:0;font-size:13px}@media (max-width:480px){.login-card{padding:30px 20px}.login-header h1{font-size:28px}.login-header p{font-size:14px}}
