:root{--bg: #faf5ff;--bg-elevated: #ffffff;--surface: #f7f3fd;--surface-border: #e2d5f1;--text-primary: #1e293b;--text-muted: #64748b;--accent: #7c3aed;--accent-strong: #6d28d9;--accent-soft: rgba(124, 58, 237, .12);--accent-2: #ec4899;--success: #10b981;--warning: #f59e0b;--destructive: #ef4444;--ring: #7c3aed;--shadow-sm: 0 1px 3px rgba(30, 27, 75, .08);--shadow-md: 0 6px 18px rgba(30, 27, 75, .1);--shadow-lg: 0 14px 40px rgba(76, 29, 149, .18);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 20px;--transition-fast: .15s ease-out;--transition-normal: .25s ease-out}[data-theme=dark]{--bg: #0f172a;--bg-elevated: #1e293b;--surface: #16213a;--surface-border: #2d3f5e;--text-primary: #f8fafc;--text-muted: #94a3b8;--accent: #a78bfa;--accent-strong: #c4b5fd;--accent-soft: rgba(167, 139, 250, .14);--accent-2: #ec4899;--success: #34d399;--warning: #fbbf24;--destructive: #f87171;--ring: #a78bfa;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);--shadow-md: 0 6px 18px rgba(0, 0, 0, .45);--shadow-lg: 0 14px 40px rgba(0, 0, 0, .55)}*{box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text-primary);margin:0;min-height:100vh;transition:background-color var(--transition-normal),color var(--transition-normal);line-height:1.55}#root,.app{min-height:100vh}h1,h2,h3,h4{line-height:1.25;margin:0 0 .5rem}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:4px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:0s!important;animation-duration:0s!important}}button{font-family:inherit;font-size:.95rem;border:none;border-radius:var(--radius-sm);padding:.6rem 1.1rem;cursor:pointer;transition:transform var(--transition-fast),box-shadow var(--transition-fast),background var(--transition-fast),opacity var(--transition-fast)}button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-md)}button:active:not(:disabled){transform:translateY(0) scale(.98)}button:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;font-weight:600}.btn-secondary{background:var(--accent-soft);color:var(--accent);font-weight:600;border:1px solid var(--surface-border)}[data-theme=dark] .btn-secondary{color:var(--accent-strong)}.btn-danger{background:#ef44441f;color:var(--destructive);font-weight:600}.btn-small{padding:.35rem .7rem;font-size:.82rem}.btn-large{padding:.85rem 1.6rem;font-size:1.05rem}.w-full{width:100%}input,select,textarea{font-family:inherit;font-size:.95rem;color:var(--text-primary);background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-sm);padding:.55rem .75rem;width:100%}textarea{resize:vertical}.form-row{display:flex;gap:1rem;flex-wrap:wrap}.form-row .form-group{flex:1 1 200px}.form-group{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.9rem}.form-group label{font-size:.85rem;font-weight:600;color:var(--text-muted)}.form-error{background:#ef44441a;border:1px solid rgba(239,68,68,.35);color:var(--destructive);border-radius:var(--radius-sm);padding:.55rem .8rem;font-size:.88rem;margin-bottom:.9rem}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:radial-gradient(1000px 500px at 85% -10%,rgba(236,72,153,.16),transparent 60%),radial-gradient(900px 500px at -10% 110%,rgba(124,58,237,.2),transparent 60%),var(--bg)}.auth-container{width:100%;max-width:420px;background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:2.2rem 2rem}.auth-brand{text-align:center;margin-bottom:1.6rem}.auth-brand h1{font-size:2rem;background:linear-gradient(135deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent;margin-bottom:.15rem}.auth-brand p{margin:0;color:var(--text-muted);font-size:.92rem;letter-spacing:.04em}.auth-form h2{font-size:1.15rem;margin-bottom:1rem}.auth-footer{text-align:center;margin-top:1.2rem;font-size:.9rem;color:var(--text-muted)}.auth-footer .link{font-weight:600}.dashboard-layout{display:flex;min-height:100vh}.sidebar{width:240px;flex-shrink:0;background:var(--bg-elevated);border-right:1px solid var(--surface-border);padding:1.4rem 1rem;display:flex;flex-direction:column;gap:1.5rem;position:sticky;top:0;height:100vh}.sidebar-header .logo{font-size:1.3rem;font-weight:800;background:linear-gradient(135deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}.nav-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.nav-link{display:flex;align-items:center;gap:.65rem;padding:.65rem .8rem;border-radius:var(--radius-md);color:var(--text-muted);text-decoration:none;font-weight:600;font-size:.95rem;transition:background var(--transition-fast),color var(--transition-fast)}.nav-link:hover,.nav-link.active{background:var(--accent-soft);color:var(--accent)}.sidebar-footer{margin-top:auto}.brand-tag{font-size:.78rem;color:var(--text-muted);margin:0;text-align:center}.main-content{flex:1;min-width:0;display:flex;flex-direction:column}.header{display:flex;justify-content:flex-end;align-items:center;padding:.9rem 1.6rem;background:var(--bg-elevated);border-bottom:1px solid var(--surface-border);position:sticky;top:0;z-index:10}.header-actions{display:flex;align-items:center;gap:.8rem}.theme-toggle,.logout-btn{background:transparent;border:1px solid var(--surface-border);color:var(--text-muted);border-radius:var(--radius-pill, 999px);padding:.45rem .9rem}.theme-toggle:hover:not(:disabled),.logout-btn:hover:not(:disabled){color:var(--accent);border-color:var(--accent)}.user-chip{display:flex;align-items:center;gap:.5rem;background:var(--surface);border:1px solid var(--surface-border);border-radius:999px;padding:.3rem .9rem .3rem .35rem}.user-avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem}.user-name{font-weight:600;font-size:.9rem}.content-wrapper{padding:1.8rem 1.6rem 3rem;max-width:1100px;width:100%;margin:0 auto}.footer{text-align:center;color:var(--text-muted);font-size:.82rem;padding:1.2rem;border-top:1px solid var(--surface-border);background:var(--bg-elevated)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}.toolbar h2{margin:0}.subtitle{color:var(--text-muted);margin:.2rem 0 0;font-size:.92rem}.welcome{background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:2.4rem 2rem}.welcome-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.4rem}.filters-panel,.generator-controls,.create-question-form{background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:1.2rem 1.3rem;margin-bottom:1.4rem;box-shadow:var(--shadow-sm)}.questions-list{background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:1rem 1.3rem;box-shadow:var(--shadow-sm)}.results-count{color:var(--text-muted);font-size:.85rem;margin:.2rem 0 .8rem}.question-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.question-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:.85rem .2rem;border-bottom:1px solid var(--surface-border)}.question-item:last-child{border-bottom:none}.question-info{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;min-width:220px}.question-id{font-weight:800;color:var(--accent)}.question-type{background:var(--accent-soft);color:var(--accent);font-size:.72rem;font-weight:700;padding:.15rem .55rem;border-radius:999px;letter-spacing:.05em}.question-difficulty{font-size:.75rem;font-weight:700;padding:.15rem .55rem;border-radius:999px}.diff-easy{background:#10b98124;color:var(--success)}.diff-medium{background:#f59e0b29;color:var(--warning)}.diff-hard{background:#ef444424;color:var(--destructive)}.question-meta{display:flex;flex-direction:column;color:var(--text-muted);font-size:.85rem;flex:1;min-width:200px}.question-actions{display:flex;gap:.5rem}.no-results{color:var(--text-muted);padding:1.4rem 0;text-align:center}.paper-header{margin-bottom:1.2rem}.generated-paper{margin-top:1.5rem}.paper-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-bottom:1.2rem}.summary-card{background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:1.2rem 1.3rem;box-shadow:var(--shadow-sm)}.summary-stats{background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:1.2rem 1.3rem;box-shadow:var(--shadow-sm);display:flex;gap:1.5rem;flex-wrap:wrap}.stat{display:flex;flex-direction:column}.stat-value{font-size:1.35rem;font-weight:800;color:var(--accent)}.stat-label{font-size:.8rem;color:var(--text-muted)}.paper-actions{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;margin-bottom:1.2rem}.save-message{font-size:.88rem;color:var(--success);font-weight:600}.question-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.question-card{background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:1.1rem 1.2rem;box-shadow:var(--shadow-sm)}.question-header{font-size:.98rem}.question-card .question-meta{display:block;margin:.4rem 0 .6rem;font-size:.82rem}.options-list{margin:.4rem 0 .6rem;padding-left:1.2rem;font-size:.9rem}.analytics{display:flex;flex-direction:column;gap:1.2rem}.chart-card{background:var(--bg-elevated);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:1.2rem 1.3rem;box-shadow:var(--shadow-sm)}.chart-card h3{font-size:1rem;margin-bottom:.9rem}.chart-container{overflow-x:auto}.bar-chart{display:flex;flex-direction:column;gap:.55rem;min-width:320px}.bar{display:flex;align-items:center;justify-content:space-between;color:#fff;border-radius:6px;padding:.3rem .7rem;font-size:.82rem;font-weight:600;min-width:120px;transition:width var(--transition-normal)}.bar-label{text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:.6rem}.bar-value{font-weight:800}.progress-bars{display:flex;flex-direction:column;gap:.7rem}.progress-bar{display:grid;grid-template-columns:110px 1fr 90px;align-items:center;gap:.7rem;font-size:.88rem}.progress-label{font-weight:600;color:var(--text-muted)}.progress-fill{height:10px;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent-2));display:block;min-width:2px}.progress-value{color:var(--text-muted);text-align:right;font-size:.82rem}.skeleton-loader{display:flex;flex-direction:column;gap:.8rem;padding:1rem 0}.skeleton-loader-row{height:56px;border-radius:var(--radius-md);background:linear-gradient(90deg,var(--surface) 25%,var(--accent-soft) 50%,var(--surface) 75%);background-size:200% 100%;animation:shimmer 1.3s infinite}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.error-state{background:var(--bg-elevated);border:1px solid rgba(239,68,68,.4);border-radius:var(--radius-md);padding:1.6rem;text-align:center}.retry-btn{background:var(--destructive);color:#fff;font-weight:600;margin-top:.6rem}@media(max-width:900px){.dashboard-layout{flex-direction:column}.sidebar{width:100%;height:auto;position:static;flex-direction:row;align-items:center;justify-content:space-between;padding:.8rem 1rem;border-right:none;border-bottom:1px solid var(--surface-border)}.nav-links{flex-direction:row}.nav-link{padding:.45rem .65rem;font-size:.85rem}.nav-text,.sidebar-footer{display:none}.content-wrapper{padding:1.2rem 1rem 2.4rem}.question-item{flex-direction:column;align-items:flex-start}}
