/* Shared presentation only. Waiting-room styles are deliberately scoped out. */
body.adda-theme:not(.quiz-room-page) {
 --adda-ink:#152b46; --adda-muted:#60738a; --adda-violet:#1766b9; --adda-blue:#1269c8;
 --adda-line:#dce6ef; --adda-shadow:0 12px 32px #143b6010;
 color:var(--adda-ink); background:radial-gradient(ellipse at 0 0,#e6f3fa,transparent 50%),#f5f8fc;
 font-family:"Segoe UI","Nirmala UI",system-ui,sans-serif; line-height:1.5;
}
body.adda-theme:not(.quiz-room-page) *, body.adda-theme:not(.quiz-room-page) *::before, body.adda-theme:not(.quiz-room-page) *::after { box-sizing:border-box; }
body.adda-theme:not(.quiz-room-page) :is(h1,h2,h3) { color:#152b46; letter-spacing:-.035em; }
body.adda-theme:not(.quiz-room-page) :is(.login-card,.register-card,.admin-login-card,.join-card,.payment-card,.card,.create-quiz-card,.manage-quizzes-card,.manage-question-card,.manage-quiz-card,.admin-results-card,.analytics-main-card,.profile-card,.student-section,.manager-card,.instructions-card,.quiz-header-card,.leaderboard-section,.leaderboard-header) {
 border:1px solid #dce6ef; border-radius:20px; box-shadow:0 12px 36px #143b6010; background:#fff;
}
body.adda-theme:not(.quiz-room-page) :is(.login-card,.register-card,.admin-login-card,.join-card) { border-top:4px solid #087f8c; padding:clamp(24px,4vw,40px); }
body.adda-theme:not(.quiz-room-page) :is(.login-subheading,.register-subheading,.admin-login-subtitle,.join-description,.payment-description) { color:#64758a; line-height:1.7; }
body.adda-theme:not(.quiz-room-page) :is(.login-brand-name,.brand-copy,.payment-brand-name,.register-heading,.login-heading) { color:#152b46; }
body.adda-theme:not(.quiz-room-page) :is(.hero-kicker,.section-kicker,.student-label,.join-kicker,.payment-kicker,.admin-page-kicker,.question-label) { color:#087b86; font-weight:750; letter-spacing:.10em; }
body.adda-theme:not(.quiz-room-page) :is(button,.button,[class$="-button"],.hero-button,.back-btn) {
 border-radius:10px; font-family:inherit; font-weight:650; font-size:14px; line-height:1.35;
 min-height:44px; padding:11px 18px; cursor:pointer; transition:background-color .16s,border-color .16s,box-shadow .16s;
}
body.adda-theme:not(.quiz-room-page) button { border:1px solid #d5e0ec; background:#f1f5fa; color:#24435f; }
body.adda-theme:not(.quiz-room-page) :is(button,.button):hover:not(:disabled) { border-color:#91adc7; box-shadow:0 3px 10px #173d6012; }
body.adda-theme:not(.quiz-room-page) :is(.hero-primary,.login-button,.admin-login-button,.register-submit,.register-button,.join-quiz-btn,.primary-button,.proceed-button,.create-quiz-submit,.create-quiz-button,.results-export-button,button[type="submit"],#startQuizBtn,#startQuizButton) {
 color:#fff; background:linear-gradient(120deg,#1269c8,#145ca6); border-color:#1261b0; box-shadow:0 4px 10px #1269c824;
}
body.adda-theme:not(.quiz-room-page) :is(.hero-secondary,.secondary-button,.back-button,.dashboard-back-button,.monitoring-back-button,.profile-photo-button) { color:#28516f; background:#fff; border:1px solid #ccdce8; box-shadow:none; }
body.adda-theme:not(.quiz-room-page) :is(.logout-button,.student-logout-btn,.admin-logout-button,.profile-photo-remove) { color:#ae3645; background:#fff2f3; border:1px solid #efd2d7; }
body.adda-theme:not(.quiz-room-page) button:disabled { cursor:wait; opacity:.62; transform:none; box-shadow:none; }
body.adda-theme:not(.quiz-room-page) :is(button,a,input,select,textarea):focus-visible { outline:3px solid #2b93bd; outline-offset:3px; }
body.adda-theme:not(.quiz-room-page) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {
 border:1px solid #cddae6; background:#fbfdff; color:#19364f; border-radius:10px; font:inherit; min-height:46px; max-width:100%;
}
body.adda-theme:not(.quiz-room-page) :is(input,select,textarea):focus { border-color:#2584c0; box-shadow:0 0 0 3px #2584c012; }
body.adda-theme:not(.quiz-room-page) textarea { line-height:1.65; }
body.adda-theme:not(.quiz-room-page) :is(.register-field,.input-group,.admin-field,.quiz-field) { margin-bottom:20px; }
body.adda-theme:not(.quiz-room-page) :is(.register-field,.admin-field,.quiz-field) label { display:block; margin-bottom:8px; font-size:13px; font-weight:700; color:#36506b; }
body.adda-theme:not(.quiz-room-page) :is(.payment-actions,.results-actions,.results-action-group,.editor-actions,.review-actions,.bulk-actions,.profile-photo-actions,.button-group,.hero-buttons) {
 display:flex; flex-wrap:wrap; align-items:center; gap:12px;
}
body.adda-theme:not(.quiz-room-page) :is(.payment-actions,.results-actions,.editor-actions,.review-actions) { padding-top:18px; margin-top:20px; border-top:1px solid #e5ecf3; }
body.adda-theme:not(.quiz-room-page) :is(.site-header,.student-header,.admin-topbar) { background:#fff; border-bottom:1px solid #e0e8f1; box-shadow:0 3px 14px #173d6006; }
body.adda-theme:not(.quiz-room-page) .admin-sidebar { background:#112b45; }
body.adda-theme:not(.quiz-room-page) .admin-nav-link.active { background:#ffffff16; border-color:#65d0ca; }
body.adda-theme:not(.quiz-room-page) .admin-brand-name { color:#fff; }
body.adda-theme:not(.quiz-room-page) :is(.admin-stat-card,.stat-card,.result-stat,.analytics-stat,.monitoring-stat,.snapshot-card,.summary-box) { background:#fff; border:1px solid #dce6ef; border-radius:15px; box-shadow:0 6px 20px #143b6007; }
body.adda-theme:not(.quiz-room-page) :is(.admin-action-card,.student-tool,.feature-card,.discovered-quiz-card) { border:1px solid #dce6ef; border-radius:16px; box-shadow:0 4px 16px #143b6006; }
body.adda-theme:not(.quiz-room-page) :is(.admin-action-card,.student-tool):hover { border-color:#88b4d1; background:#f7fbff; }
body.adda-theme:not(.quiz-room-page) .student-welcome-bar { background:linear-gradient(110deg,#eaf4fc,#eefaf6); border:1px solid #d1e5ef; border-radius:20px; }
body.adda-theme:not(.quiz-room-page) .student-welcome-bar h1 { color:#173c56; }
body.adda-theme:not(.quiz-room-page) .join-quiz-panel { background:linear-gradient(115deg,#112e4b,#145979); border-radius:18px; }
body.adda-theme:not(.quiz-room-page) .join-quiz-panel :is(h1,h2,h3,.light) { color:#fff; }
body.adda-theme:not(.quiz-room-page) :is(.fee-box,.payment-box,.schedule-card,.important-note,.join-info) { background:#f0f8fc; border:1px solid #d6e8f1; border-radius:14px; }
body.adda-theme:not(.quiz-room-page) :is(.fee-amount,.amount) { color:#1265b3; letter-spacing:-.04em; }
body.adda-theme:not(.quiz-room-page) :is(.payment-step-number,.instruction-number) { background:#e5f4f3; color:#0a757d; }
body.adda-theme:not(.quiz-room-page) :is(.result-hero,.final-result-card) { background:linear-gradient(125deg,#143652,#126b83); color:#fff; }
body.adda-theme:not(.quiz-room-page) :is(.result-hero,.final-result-card) :is(h1,h2,h3) { color:#fff; }
body.adda-theme:not(.quiz-room-page) .score-circle { border-color:#8edcd5; }
body.adda-theme:not(.quiz-room-page) :is(.leaderboard-header,.hero-logo-card) { background:linear-gradient(135deg,#fff 50%,#edf7fc); border-color:#d7e6ef; }
body.adda-theme:not(.quiz-room-page) #yourRank:not(:empty) { background:linear-gradient(115deg,#124c7e,#097983); border-color:#147d92; }
body.adda-theme:not(.quiz-room-page) .top-three-score { color:#1265b3; }
body.adda-theme:not(.quiz-room-page) table { border-collapse:separate; border-spacing:0; width:100%; font-size:14px; }
body.adda-theme:not(.quiz-room-page) th { background:#edf3f8; color:#35516b; font-weight:700; font-size:12px; letter-spacing:.025em; }
body.adda-theme:not(.quiz-room-page) :is(th,td) { padding:14px 16px; text-align:left; border-bottom:1px solid #e7edf4; }
body.adda-theme:not(.quiz-room-page) tbody tr:hover { background:#f5f9fd; }
body.adda-theme:not(.quiz-room-page) :is(.results-table-wrapper,.table-wrapper) { overflow-x:auto; border:1px solid #e0e8f1; border-radius:12px; }
body.adda-theme:not(.quiz-room-page) :is(.hero-ring,.decor-circle,.register-orb,.join-orb,.admin-login-orb) { opacity:.35; }
body.adda-theme:not(.quiz-room-page) .hero-logo-card { box-shadow:0 24px 60px #17496e18; }
body.adda-theme:not(.quiz-room-page) :is(.site-footer,.payment-footer,.profile-footer) { color:#687d90; border-color:#e0e8f1; }
/* Quiz controls use the new spacing, while the waiting room stays unchanged. */
#mainQuizContent .button-group { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:24px; }
#mainQuizContent .button-group button { min-height:44px; padding:11px 18px; border-radius:10px; border:1px solid #d4e1ef; font:600 14px "Segoe UI",sans-serif; background:#edf4fb; color:#24445f; cursor:pointer; }
#mainQuizContent .button-group .submit-test-btn { background:#176bc3; color:#fff; border-color:#176bc3; margin-left:auto; }
#mainQuizContent .button-group button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:650px) {
 body.adda-theme:not(.quiz-room-page) :is(.login-card,.register-card,.admin-login-card,.join-card,.payment-card) { border-radius:16px; }
 body.adda-theme:not(.quiz-room-page) :is(.payment-actions,.results-action-group,.hero-buttons) > * { flex:1 1 160px; text-align:center; }
 body.adda-theme:not(.quiz-room-page) :is(.results-actions,.editor-actions,.review-actions) { gap:8px; }
 body.adda-theme:not(.quiz-room-page) :is(th,td) { padding:12px; }
 #mainQuizContent .button-group button { flex:1 1 100px; }
}

/* Readable text and reliable action layouts on small screens. */
body.adda-theme:not(.quiz-room-page) :is(.payment-description,.fee-note,.fee-label,.payment-step-text,.payment-step-text strong,.payment-step-text span,.payment-footer,.payment-status,.login-subheading,.register-subheading,.login-footer-note,.register-footer-note,.join-description,.join-footer,.admin-login-subtitle,.admin-login-footer,.feature-card p,.hero-subtitle,.student-section p,.student-tool p,.student-step p,.manual-code-note,.discovered-quiz-meta,.discovered-quiz-schedule,.discovered-quiz-description) { font-size:14px; line-height:1.65; }
body.adda-theme:not(.quiz-room-page) :is(.student-label,.section-kicker,.hero-kicker,.payment-kicker,.join-kicker,.student-class-badge,.quiz-class-badge,.payment-brand-subtitle,.brand-copy span) { font-size:11px; }
body.adda-theme:not(.quiz-room-page) :is(.student-tool h3,.student-step h3,.discovered-quiz-title,.feature-card h3) { font-size:17px; }
body.adda-theme:not(.quiz-room-page) .student-section { padding:24px; }
body.adda-theme:not(.quiz-room-page) .student-header { gap:16px; }
body.adda-theme:not(.quiz-room-page) .student-profile-link { font-size:13px; }
body.adda-theme:not(.quiz-room-page) .student-section-title h2 { font-size:25px; }
body.adda-theme:not(.quiz-room-page) .live-card :is(h1,h2,h3) { color:#fff; }
body.adda-theme:not(.quiz-room-page) :is(.hero-content,.hero-visual,.trust-strip) { animation:none; opacity:1; transform:none; }
body.adda-theme:not(.quiz-room-page) .trust-strip { font-size:14px; }
body.adda-theme:not(.quiz-room-page) .site-nav a { font-size:13px; }
body.adda-theme:not(.quiz-room-page) :is(.login-heading,.register-heading,.admin-login-card h1,.join-card h1) { font-size:30px; }
body.adda-theme:not(.quiz-room-page) .payment-title { font-size:30px; }
body.adda-theme:not(.quiz-room-page) .payment-content { padding:28px; }
body.adda-theme:not(.quiz-room-page) .payment-step { align-items:flex-start; gap:12px; }
body.adda-theme:not(.quiz-room-page) .payment-step-number { min-width:28px; height:28px; font-size:12px; }
body.adda-theme:not(.quiz-room-page) .payment-actions { align-items:stretch; }
body.adda-theme:not(.quiz-room-page) .payment-actions > * { display:flex; align-items:center; justify-content:center; }
body.adda-theme.page-admin-select-questions .main { width:100%; max-width:1120px; margin:32px auto; padding:0 24px 48px; }
body.adda-theme.page-admin-select-questions #questionList { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); }
body.adda-theme.page-admin-select-questions .question-selection-card { margin:0; padding:24px; border:2px solid #dce6ef; }
body.adda-theme.page-admin-select-questions .question-selection-card.question-used { border-color:#edbf69; background:#fffaf0; }
body.adda-theme.page-admin-select-questions #saveSelection { background:#1269c8; color:#fff; min-height:48px; }
body.adda-theme.page-admin-select-questions #quizInfo { padding:16px 20px; border-radius:12px; background:#eaf3fa; }
@media(max-width:650px) {
 body.adda-theme:not(.quiz-room-page) .student-header { display:grid; grid-template-columns:1fr auto; align-items:center; padding:16px; gap:12px; }
 body.adda-theme:not(.quiz-room-page) .student-header-brand { grid-column:1 / -1; }
 body.adda-theme:not(.quiz-room-page) .student-profile-link { justify-self:start; }
 body.adda-theme:not(.quiz-room-page) .student-logout-btn { margin:0; justify-self:end; }
 body.adda-theme:not(.quiz-room-page) .student-section { padding:20px 16px; }
 body.adda-theme:not(.quiz-room-page) .payment-actions { flex-direction:column; }
 body.adda-theme:not(.quiz-room-page) .payment-actions > * { flex:auto; width:100%; }
 body.adda-theme:not(.quiz-room-page) .payment-content { padding:24px 20px; }
 body.adda-theme:not(.quiz-room-page) .payment-title { font-size:27px; }
 body.adda-theme.page-admin-select-questions .main { margin-top:24px; padding:0 16px 32px; }
}

body.adda-theme:not(.quiz-room-page) .btn-green { background:#e9f7f0; color:#166744; border-color:#bcded0; }
body.adda-theme:not(.quiz-room-page) .btn-orange { background:#fff5e6; color:#895319; border-color:#eed4aa; }
body.adda-theme:not(.quiz-room-page) :is(.btn-red,.delete-btn,.delete-button) { background:#fff0f2; color:#ae3645; border-color:#efd2d7; }
body.adda-theme:not(.quiz-room-page) .btn-blue { background:#eaf3ff; color:#155fa8; border-color:#c3d9f1; }

body.adda-theme:not(.quiz-room-page) #registerForm { gap:18px; }
body.adda-theme:not(.quiz-room-page) .register-field { margin-bottom:0; gap:8px; }
body.adda-theme:not(.quiz-room-page) .register-field label { margin-bottom:0; }
/* Additional schedule panel; no overrides to the original waiting card. */
.upcoming-waiting-quizzes { margin:18px 0 0; padding:14px; border:1px solid #ffffff40; border-radius:14px; background:#ffffff12; text-align:left; }
.upcoming-waiting-quizzes[hidden] { display:none; }
.upcoming-waiting-heading { display:flex; justify-content:space-between; gap:12px; color:#dbf4ff; font-size:11px; font-weight:750; letter-spacing:.08em; margin-bottom:8px; }
.upcoming-waiting-quizzes strong { display:block; color:#fff; font-size:16px; overflow-wrap:anywhere; }
.upcoming-waiting-quizzes p { margin:6px 0 12px; font-size:13px; color:#e4f5ff; }
.upcoming-waiting-controls { display:flex; justify-content:center; gap:8px; }
.upcoming-waiting-controls button { border:1px solid #ffffff55; background:#ffffff16; color:#fff; border-radius:8px; min-height:36px; min-width:40px; padding:6px 12px; cursor:pointer; font:600 12px "Segoe UI",sans-serif; }
.upcoming-waiting-controls button[hidden] { display:none; }
