:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f4f7fb;--primary: #2563eb;--secondary: #7c3aed;--danger: #dc2626;--text-main: #172033;--text-muted: #64748b;--border: #dbe3ef;--background: #f4f7fb;--shadow: 0 18px 45px rgba(15, 23, 42, .09)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at top left,rgba(37,99,235,.16),transparent 36%),radial-gradient(circle at top right,rgba(124,58,237,.14),transparent 34%),var(--background)}button,input,textarea,select{font:inherit}button{border:none}a{color:inherit;text-decoration:none}.app-container{min-height:100vh}.navbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1rem 5vw;background:#ffffffe6;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.navbar-brand{display:flex;align-items:center;gap:.75rem;font-weight:900}.navbar-brand-icon{display:grid;width:42px;height:42px;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));border-radius:14px}.navbar-links,.navbar-user{display:flex;align-items:center;gap:.75rem}.nav-link{padding:.65rem .95rem;font-weight:800;color:var(--text-muted);border-radius:999px}.nav-link:hover,.nav-link.active{color:var(--primary);background:#dbeafe}.user-pill{display:flex;flex-direction:column;padding:.5rem .85rem;background:#f8fafc;border:1px solid var(--border);border-radius:999px}.user-pill strong{font-size:.9rem}.user-pill span{font-size:.75rem;font-weight:900;color:var(--primary);text-transform:uppercase}.home-page,.page-shell{width:min(1180px,calc(100% - 2rem));margin:0 auto;padding:3rem 0}.hero-section{display:grid;grid-template-columns:1.15fr .85fr;gap:2rem;align-items:center;min-height:calc(100vh - 100px)}.eyebrow{margin:0 0 .75rem;font-size:.78rem;font-weight:900;letter-spacing:.09em;color:var(--primary);text-transform:uppercase}.hero-content h1,.dashboard-header h1,.placeholder-card h1{margin:0;color:var(--text-main);line-height:1.05}.hero-content h1{max-width:850px;font-size:clamp(2.5rem,6vw,5rem);letter-spacing:-.06em}.hero-description{max-width:720px;margin:1.3rem 0 0;font-size:1.15rem;line-height:1.8;color:var(--text-muted)}.hero-actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:2rem}.primary-button,.secondary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:42px;padding:.78rem 1.15rem;font-weight:850;border-radius:999px;cursor:pointer}.primary-button{color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:0 14px 30px #2563eb3d}.secondary-button{color:var(--primary);background:#fff;border:1px solid var(--border)}.danger-button{color:#fff;background:linear-gradient(135deg,#ef4444,#b91c1c)}.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled{cursor:not-allowed;opacity:.62;box-shadow:none}.full-width-button{width:100%}.hero-card,.content-card,.placeholder-card,.stat-card,.exam-card,.question-card{background:#fffffff5;border:1px solid var(--border);box-shadow:var(--shadow)}.hero-card{padding:1.3rem;border-radius:30px}.hero-card-header{padding:1rem;font-weight:900;color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));border-radius:22px}.flow-list{display:grid;gap:1rem;margin-top:1rem}.flow-item{display:grid;gap:.2rem;padding:1rem;background:#f8fafc;border:1px solid var(--border);border-radius:18px}.flow-item span{color:var(--text-muted)}.loading-page{display:grid;min-height:100vh;place-items:center}.loading-card{display:grid;justify-items:center;gap:1rem;padding:2rem;background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}.loading-spinner,.spin-icon{animation:spin .9s linear infinite}.loading-spinner{width:42px;height:42px;border:4px solid #dbeafe;border-top-color:var(--primary);border-radius:999px}@keyframes spin{to{transform:rotate(360deg)}}.auth-page{display:grid;min-height:calc(100vh - 90px);place-items:center;padding:3rem 1rem}.auth-card{width:min(520px,100%);padding:2.2rem;background:#fffffff5;border:1px solid var(--border);border-radius:30px;box-shadow:var(--shadow)}.auth-icon{display:grid;width:54px;height:54px;place-items:center;margin-bottom:1rem;color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));border-radius:18px;box-shadow:0 14px 30px #2563eb38}.auth-card h1{margin:0;font-size:clamp(2rem,4vw,2.7rem);line-height:1.1;letter-spacing:-.05em}.auth-card p{margin:1rem 0 0;color:var(--text-muted);line-height:1.75}.auth-switch{margin-top:1.4rem;text-align:center;color:var(--text-muted)}.auth-switch a{font-weight:900;color:var(--primary)}.form-card{display:grid;gap:1rem;margin-top:1.3rem}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.form-field{display:grid;gap:.5rem}.form-field span{font-size:.9rem;font-weight:850;color:var(--text-main)}.form-field input,.form-field textarea,.form-field select{width:100%;min-height:48px;padding:.85rem .95rem;color:var(--text-main);background:#f8fafc;border:1px solid var(--border);border-radius:15px;outline:none}.form-field textarea{resize:vertical}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{background:#fff;border-color:var(--primary);box-shadow:0 0 0 4px #2563eb1f}.input-with-icon{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.7rem;padding:0 .9rem;background:#f8fafc;border:1px solid var(--border);border-radius:15px}.input-with-icon svg{color:var(--text-muted)}.input-with-icon input{min-height:48px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.input-with-icon:focus-within{background:#fff;border-color:var(--primary);box-shadow:0 0 0 4px #2563eb1f}.input-with-icon input:focus{box-shadow:none}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.6rem}.dashboard-header h1{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.05em}.dashboard-header p,.section-title-row p,.placeholder-card p{color:var(--text-muted);line-height:1.7}.dashboard-header p{max-width:780px;margin:.7rem 0 0}.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:1rem;margin-bottom:1.4rem}.stat-card{display:grid;gap:.45rem;padding:1.25rem;border-radius:20px}.stat-card span{font-weight:800;color:var(--text-muted)}.stat-card strong{font-size:1.8rem}.content-card{padding:1.4rem;border-radius:24px}.content-grid{display:grid;gap:1.3rem}.two-column-grid{grid-template-columns:minmax(360px,.88fr) minmax(0,1.12fr);align-items:start}.section-title-row{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.section-title-row h2{margin:0;font-size:1.35rem}.placeholder-card{display:grid;gap:.6rem;padding:2rem;border-radius:24px}.error-card{border-color:#dc26263d}.alert-message{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem;padding:.9rem 1rem;font-weight:750;border-radius:16px}.alert-error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.alert-success{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.inline-loading{display:flex;align-items:center;justify-content:center;gap:.65rem;min-height:180px;color:var(--text-muted);font-weight:800}.empty-state{display:grid;justify-items:center;gap:.7rem;padding:2.4rem 1rem;text-align:center;color:var(--text-muted);background:#f8fafc;border:1px dashed var(--border);border-radius:22px}.empty-state h3{margin:0;color:var(--text-main)}.exam-list,.question-list{display:grid;gap:1rem}.exam-card{display:flex;justify-content:space-between;gap:1rem;padding:1.1rem;border-radius:22px}.exam-card-main{display:flex;gap:1rem;min-width:0}.exam-icon{display:grid;flex:0 0 auto;width:46px;height:46px;place-items:center;color:var(--primary);background:#dbeafe;border-radius:16px}.exam-title-row,.question-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem}.exam-title-row h3,.question-card-header h3{margin:0;line-height:1.35}.exam-description{margin:.45rem 0 0;line-height:1.6;color:var(--text-muted)}.exam-meta{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:.75rem}.exam-meta span{display:inline-flex;align-items:center;gap:.25rem;padding:.35rem .65rem;font-size:.8rem;font-weight:800;color:#475569;background:#f1f5f9;border-radius:999px}.exam-actions{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:flex-end}.status-pill{display:inline-flex;align-items:center;flex:0 0 auto;gap:.35rem;padding:.36rem .65rem;font-size:.78rem;font-weight:900;border-radius:999px}.status-approved{color:#166534;background:#dcfce7}.status-pending{color:#92400e;background:#fef3c7}.status-rejected{color:#991b1b;background:#fee2e2}.status-draft{color:#1d4ed8;background:#dbeafe}.question-card{display:grid;gap:1rem;padding:1rem;border-radius:22px}.option-list{display:grid;gap:.55rem;padding:.85rem;background:#f8fafc;border:1px solid var(--border);border-radius:16px}.option-list p{margin:0;line-height:1.55}.answer-preview{display:inline-flex;align-items:center;width:fit-content;gap:.45rem;padding:.48rem .75rem;color:#166534;font-weight:900;background:#dcfce7;border-radius:999px}.question-explanation{margin:0;padding:.85rem;color:#475569;line-height:1.65;background:#fff7ed;border:1px solid #fed7aa;border-radius:16px}.timer-card{display:flex;align-items:center;gap:.8rem;min-width:190px;padding:1rem 1.2rem;color:#fff;background:linear-gradient(135deg,#ef4444,#7c3aed);border-radius:22px;box-shadow:0 16px 32px #7c3aed33}.timer-card span{display:block;font-size:.8rem;font-weight:800;opacity:.9}.timer-card strong{display:block;font-size:1.8rem;line-height:1.1}.attempt-option-list{display:grid;gap:.75rem}.attempt-option{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:.75rem;padding:.9rem 1rem;cursor:pointer;background:#f8fafc;border:1px solid var(--border);border-radius:16px}.attempt-option:hover{border-color:var(--primary);background:#eff6ff}.attempt-option.selected{color:#1d4ed8;background:#dbeafe;border-color:#60a5fa;box-shadow:0 0 0 4px #2563eb1a}.attempt-option input{width:18px;height:18px;accent-color:var(--primary)}.submit-bar{position:sticky;bottom:1rem;display:flex;justify-content:space-between;gap:1rem;margin-top:1.5rem;padding:1rem;background:#fffffff0;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.review-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.review-answer-grid .answer-preview:first-child{color:#92400e;background:#fef3c7}@media(max-width:960px){.navbar{position:static;flex-wrap:wrap}.navbar-links,.navbar-user{width:100%;flex-wrap:wrap}.hero-section,.two-column-grid,.review-answer-grid{grid-template-columns:1fr;min-height:auto}.dashboard-header,.exam-card,.section-title-row{flex-direction:column}.exam-actions{justify-content:flex-start}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}}@media(max-width:620px){.home-page,.page-shell{width:min(100% - 1rem,1180px);padding:1.5rem 0}.navbar{padding:1rem}.hero-content h1{font-size:2.35rem}.hero-actions,.exam-actions,.submit-bar{display:grid;width:100%}.primary-button,.secondary-button,.danger-button{width:100%}.stats-grid{grid-template-columns:1fr}.content-card,.placeholder-card,.auth-card{padding:1rem;border-radius:20px}.exam-card-main,.exam-title-row,.question-card-header{flex-direction:column}.timer-card{width:100%}}
