/* ========================================================================== */
/* VERBify — Cleaned & Consolidated Styles (responsive + theme-consistent)   */
/* ========================================================================== */

/* 0) Theme tokens + common effects */
:root {
--vf-bg-0: #0b0f14;
--vf-panel-1: #1e2a38;   /* dark UI panels */
--vf-panel-2: #182431;   /* secondary panel */
--vf-text: #cff0f7;      /* primary text color */
--vf-muted: #a7c9d3;     /* secondary text color */
--vf-border: #2a3a4f;    /* subtle border on dark theme */
--vf-brand: #0056b3;     /* brand blue */
--vf-success: #4CAF50;

--vf-btn-grad: linear-gradient(45deg, rgba(14,14,14,0.619), #0056b3, rgba(21,21,21,0.345));
--vf-shadow-1: 0 8px 24px rgba(0,0,0,0.25);
--vf-shadow-2: 0 4px 12px rgba(0,0,0,0.2);

/* NEW: uniform select width (tablet/desktop); overridden on mobile */
--vf-select-w: 210px;
}

/* 1) Base reset & body */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
min-height: 100vh;
background-color: black;
color: var(--vf-text);
font-family: Arial, Helvetica, sans-serif;
text-rendering: optimizeLegibility;
}

/* 2) Layout containers */
main {
display: flex;
justify-content: center;
align-items: center;
max-width: 100%;
width: 1200px;
margin: 80px auto;
padding: 0 30px;
}

section {
position: relative;
padding-top: 10px;
max-width: 100%;
margin: 80px 0;
text-align: center;
border: none;
}

/* 3) Navigation */
nav {
background-color: black;
box-shadow: 3px 3px 3px rgba(0,0,0,0.1);
border-bottom: 1px solid #cff0f7;
}
nav ul {
width: 100%;
list-style: none;
display: flex;
justify-content: flex-end; /* Keep items aligned to the right by default */
align-items: center;

}
nav li { height: 50px; }
nav li img:hover {
background-color: transparent;
color: var(--vf-text);
}
.nav-image img { width: 50px; height: 50px; }
nav a {
height: 100%;
padding: 0 30px;
text-decoration: none;
display: flex;
align-items: center;
color: var(--vf-text);
}

nav ul li.nav-image:first-child {
margin-right: auto; /* Push this item to the left */
}


nav a:hover { background-color: var(--vf-brand); }
.nav-menu-button { display: none; }

/* 4) Sidebar */
.sidebar {
position: fixed; top: 0; right: 0;
height: 100vh; width: 250px; z-index: 999;
background-color: #0c0c0c;
box-shadow: -10px 0 10px rgba(0,0,0,0.1);
display: none; flex-direction: column;
align-items: flex-start; justify-content: flex-start;
}
.sidebar li, .sidebar a { width: 100%; }
.sidebar a { background-color: #0c0c0c; }
.sidebar a:hover { background-color: #4b4b4b; }

/* 5) Common card + banner */
.card {
position: relative;
max-width: 100%;
background-color: black;
text-align: center;
padding-top: 5%;
}
.card img {
max-width: 300px; max-height: 300px;
background: var(--vf-btn-grad);
padding: 3px; border-radius: 10px; border-style: ridge;
}



.feature-card img {
width: 50px !important;
height: 50px !important;

display: block;
margin: 0 auto 12px;

object-fit: contain;
max-width: none;

background: rgba(255, 255, 255, 0.05);
padding: 6px;
border-radius: 10px;
}


.quiz-question h2 {
text-align: center;
}

.hero {
text-align: center;
margin-top: 30px;
}

.hero h1 {
font-size: 2.2rem;
margin-bottom: 10px;
}

.hero p {
color: var(--vf-muted);
margin-bottom: 20px;
font-size: 1.1rem;
}

.features {
text-align: center;
margin-top: 60px;
}

.feature-grid {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
flex-wrap: wrap;
}

.feature-card {
background: var(--vf-panel-1);
padding: 20px;
border-radius: 10px;
max-width: 250px;
border: 1px solid var(--vf-border);
}

.feature-card h3 {
margin-bottom: 10px;
}

.cta {
text-align: center;
margin: 60px 0;
}
.how-it-works {
text-align: center;
margin-top: 100px;
}

/* Row layout */
.steps-row {
display: flex;
justify-content: center;
align-items: center;
gap: 30px;
margin-top: 25px;
flex-wrap: wrap;
}


/* Each step */
.step {
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;    /* 🔥 prevents line breaks */
}



/* Icon styling */
.step-icon {
font-size: 1.4rem;
flex-shrink: 0;
color: #38bdf8;
}

/* Text styling */
.step span{
margin: 0;
color: var(--vf-muted);
text-align: left;
white-space: nowrap;
}


.steps-row {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;              /* tighter spacing */
flex-wrap: wrap;
}



.step::after {
content: "→";
margin-left: 10px;
margin-right: 10px;
color: var(--vf-muted);
}


.step:last-child::after {
content: "";
}





.how-it-works {
text-align: center;
margin-top: 80px;
padding-top: 20px;
}


.steps-grid {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
flex-wrap: wrap;
}

.step-card {
background: var(--vf-panel-1);
padding: 20px;
border-radius: 10px;
max-width: 220px;
border: 1px solid var(--vf-border);
text-align: center;
}

.step-card h3 {
margin-bottom: 10px;
color: #38bdf8;
}

.banner {
position: relative; background-color: black; text-align: center;
display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.banner img { max-width: 100%; }

/* 6) Buttons — unified (no @extend, grouped selectors) */
.btn,
.login-button,
.logout-button,
.dashboard-links a,
#load-questions-btn,
#submit-answer-btn,
.quiz-actions .btn {
appearance: none;
display: inline-flex;
align-items: center; justify-content: center;
gap: 0.5ch;
padding: 0.75rem 1.5rem;
border-radius: .25em;
border: 1px solid white;
background: var(--vf-btn-grad);
color: var(--vf-text);
font-weight: 700; font-size: 0.95rem; line-height: 1;
text-decoration: none; cursor: pointer;
transition: transform 0.2s ease, filter 0.18s ease;
}
.btn:hover,
.login-button:hover,
.logout-button:hover,
.dashboard-links a:hover,
#load-questions-btn:hover,
#submit-answer-btn:hover,
.quiz-actions .btn:hover {
transform: translateY(-1px);
filter: brightness(1.05);
}
.btn:active,
.login-button:active,
.logout-button:active,
.dashboard-links a:active,
#load-questions-btn:active,
#submit-answer-btn:active,
.quiz-actions .btn:active {
transform: translateY(0);
filter: brightness(0.98);
}
/* small/rounded size used for quiz buttons */
.btn--sm,
#load-questions-btn,
#submit-answer-btn {
padding: 0.55rem 1rem;
font-size: 0.85rem;
border-radius: 999px;
}
/* block width helper if needed */
.btn--block { display: inline-block; width: 100%; max-width: 300px; }

/* 7) Login / Signup containers — centered, single source */
.login-container, .signup-container {
display: flex; flex-direction: column; align-items: center; text-align: center;
}
.login-container { max-width: 400px; margin: 25px auto; padding: 20px;
background-color: #111; border-radius: 8px; color: var(--vf-text);}
.login-container h2 { text-align: center; }
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
width: 250px; padding: 10px; margin: 10px 0; border-radius: 4px; border: 1px solid #ccc;
}
.login-container .forgot-password { display: block; text-align: center; margin-top: 10px; color: var(--vf-text); }
.login-container .forgot-password:hover { text-decoration: underline; }

.signup-container {
max-width: 400px; margin: 25px auto; padding: 20px;
background-color: #111; border-radius: 8px; color: var(--vf-text);
}
.signup-container input { width: 90%; padding: 10px; margin: 10px 0; border-radius: 4px; border: 1px solid #ccc; }

/* 8) Dashboard */
.dashboard-layout {
display: flex; justify-content: space-between; align-items: flex-start;
gap: 2rem; max-width: 1200px; margin: 2rem auto; padding: 1rem; flex-wrap: wrap;
}
.dashboard { flex: 1; }
.dashboard-table {
flex: 1; background-color: #0e0e0e; padding: 1rem; border-radius: 8px;
box-shadow: var(--vf-shadow-2); color: var(--vf-text);
}
.dashboard-container { text-align: center; padding: .5rem; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); max-width: 500px; width: 100%; margin: 1rem auto; }

.dashboard-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.dashboard-links li { list-style: none; margin: 0; display: flex; align-items: center; justify-content: center; }
/* buttons already styled via grouped selector above */
.dashboard-links a i { margin-right: 0.5rem; }

/* 9) Progress bar */
.progress-bar-container { width: 100%; background-color: #333; border-radius: 8px; overflow: hidden; height: 20px; margin: 8px 0 16px; }
.progress-bar-fill { height: 100%; width: 0%; background-color: var(--vf-success); transition: width 1s ease-in-out; }
.xp-label { font-weight: bold; margin-bottom: 4px; }

/* 10) Quiz page */
.quiz-container {
max-width: 1000px; margin: 40px auto; padding: 24px;
border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
display: flex; flex-direction: column; gap: 28px; /* slightly tighter */
}
.quiz-header { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.quiz-header h2 { font-size: 2rem; color: var(--vf-text); }

.quiz-info {
display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
gap: 1rem; margin: 20px 0; font-size: 1.2rem;
}
.xp-display, .trophy-display, .xp-progress-container { flex: 1; min-width: 200px; }
.xp-progress-bar { width: 100%; height: 20px; background-color: var(--vf-panel-1); border-radius: 10px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
#xp-progress-fill { height: 100%; width: 0%; background-color: var(--vf-success); color: white; text-align: center; line-height: 20px; font-size: 14px; transition: width 0.5s ease-in-out; border-radius: 10px; }

/* selectors line */
.quiz-selectors {
display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; background-color: transparent;
}
.quiz-selectors label, .quiz-selectors select { font-size: 1rem; }

/* NEW: enforce uniform widths on larger screens */
.quiz-selectors select {
width: var(--vf-select-w);
flex: 0 0 var(--vf-select-w);
padding: 6px;
border-radius: 6px;
border: 1px solid transparent;
height: 38px;
background-color: var(--vf-panel-1);
}

/* Center the Load Question button and put avatar below it */
.action-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
#load-questions-btn { display: inline-flex; margin-inline: auto; }

/* Ensure the avatar sits below and is centered even when not inside action-wrapper */
.action-wrapper + .avatar-container {
display: flex;
justify-content: center;
margin-top: 12px;
}

.avatar-container { display: flex; justify-content: center; }
#quiz-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }

/* question/answer panel */
.quiz-question {
width: 100%; color: var(--vf-text); background-color: var(--vf-panel-1);
padding: 24px; border-radius: 12px; border: 1px solid var(--vf-border);
box-shadow: var(--vf-shadow-1); margin: 20px 0;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quiz-question:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

#question-text { font-size: 1.25rem; font-weight: 600; color: var(--vf-text); margin-bottom: 16px; line-height: 1.6; }

.answer-input {
width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--vf-border);
font-size: 1rem; margin-top: 12px; background-color: var(--vf-panel-1); color: var(--vf-text);
resize: vertical; line-height: 1.6;
}
.answer-input::placeholder { color: #98b1bb; opacity: .9; }
.answer-input:focus {
outline: none; border-color: #1976d2;
box-shadow: 0 0 0 3px rgba(25,118,210,.25);
background: var(--vf-panel-1);
}

.answer-options { display: flex; flex-wrap: wrap; gap: 10px; color: var(--vf-text); }
.answer-options .answer-btn {
min-width: 80px; margin: 5px; padding: 10px 20px; font-size: 1rem;
background-color: var(--vf-panel-1); color: var(--vf-text); border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; border: none;
}
.answer-options .answer-btn:hover { background-color: #1976d2; }
.answer-options .answer-btn:disabled { background-color: #90caf9; cursor: default; }

/* actions row */
.quiz-actions {
display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end;
margin-top: 10px; padding: 10px; background: var(--vf-panel-1);
border-top: 1px solid var(--vf-border); border-radius: 0 0 10px 10px;
}

/* feedback panel */
.quiz-feedback-panel {
position: relative; /* host overlay */
background-color: var(--vf-panel-1);
width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--vf-border);
box-shadow: var(--vf-shadow-1); margin-top: 20px; text-align: left; color: var(--vf-text);
}
.quiz-feedback-panel h3 { margin-bottom: 0.75rem; font-size: 1.2rem; color: #e8fbff; }
.feedback-item { margin: 5px 0; font-size: 1em; color: var(--vf-text); }
.feedback-item ul { list-style: none; padding-left: 14px; margin: 0; font-style: italic; }
.feedback-item strong { color: var(--vf-text); }

.quiz-feedback-panel ul {
padding-left: 28px;
margin: 10px 0 15px 0;
}

.quiz-feedback-panel li {
margin-bottom: 6px;
line-height: 1.6;
}


.quiz-feedback-panel li::marker {
color: var(--vf-muted);
font-size: 0.9em;
}

/* Remove bullet points in feedback */
.review-sections ul {
list-style-type: none;   /* removes bullets */
padding-left: 0;         /* removes indentation */
margin-left: 0;
}

.review-sections li {
margin-bottom: 6px;
padding-left: 0; 
line-height: 1.6;
background: transparent;
border-left: 3px solid rgba(56, 189, 248, 0.4);
padding-left: 10px;
}


.review-item {
margin-bottom: 8px;
padding-left: 10px;
border-left: 3px solid rgba(56, 189, 248, 0.4);
line-height: 1.6;
}


/* review chips */
#mark-display, #xp-earned-display, #key-ideas-display {
display: inline-flex; align-items: center; gap: 6px;
padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35);
background: rgba(11,107,214,0.15); color: #e7f9ff; font-weight: 700; font-size: .9rem; letter-spacing: .2px; white-space: nowrap;
}
.quiz-review-header { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

/* rating badges */
.rating-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 6px; }
.rating-badges .badge {
display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
border: 1px solid var(--vf-border); background: #0f1722; color: var(--vf-muted); font-weight: 600; font-size: .85rem; letter-spacing: .15px;
box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset; transition: transform .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease;
}
.rating-badges .badge:hover { transform: translateY(-1px); }
.badge--needs-work { border-color: #44262a; background: #1b0f12; color: #ffb3b5; }
.badge--okay       { border-color: #3e341d; background: #16120a; color: #ffe3a1; }
.badge--great      { border-color: #1f3b2b; background: #0d1712; color: #b8f3d2; }
.rating-badges .badge.is-active {
color: #fff; border-color: currentColor;
box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 0 0 5px rgba(11,107,214,0.25);
transform: translateY(-1px);
}

/* student answer block + highlights */
.answer-review, #answer-review, .student-answer-review {
background: #2a3b4f; border: 1px solid var(--vf-border); border-radius: 8px;
padding: 12px 14px; color: var(--vf-text); line-height: 1.65; white-space: pre-wrap; word-break: break-word; box-shadow: var(--vf-shadow-1);
}
#student-answer-markup mark { background: #fff3a3; color: #000; padding: 0 .15em; border-radius: .15em; }
.answer-review mark, #answer-review mark, .student-answer-review mark {
color: #eaf6ff; padding: 0 .15em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}
.answer-review mark.match-exact, #answer-review mark.match-exact, .student-answer-review mark.match-exact {
background: #1f7a3a; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 0 3px rgba(47,191,113,.22);
}

/* 11) Loading overlays (question + feedback panel) */
#question-box { position: relative; min-height: 140px; }
.panel-loading-overlay {
position: absolute; inset: 0; display: none;
align-items: center; justify-content: center;
background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.35));
-webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
z-index: 10;
}
#question-box.is-loading .panel-loading-overlay,
.quiz-feedback-panel.is-loading .panel-loading-overlay { display: flex; }
#question-box.is-loading { filter: grayscale(0.1) brightness(0.95); }

.panel-loading-overlay .overlay-inner {
display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px;
background: rgba(30,42,56,0.85); border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.panel-loading-overlay .overlay-text { font-weight: 700; color: #e6eef8; letter-spacing: 0.2px; }
.panel-loading-overlay .spinner {
width: 26px; height: 26px; border-radius: 50%;
border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff;
animation: vf-spin .8s linear infinite;
}
@keyframes vf-spin { to { transform: rotate(1turn); } }

/* 12) Intro splash (fix invalid selector) */
.intro { position: fixed; z-index: 1; inset: 0; height: 100vh; transition: 1s; display: flex; align-items: center; justify-content: center; }
.intro img { height: auto; width: 100%; max-width: 500px; }
.logo-header { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); color: var(--vf-text); }
.logo { position: relative; display: inline-block; bottom: -20px; opacity: 0; }
.logo.active { bottom: 0; opacity: 1; transition: ease-in-out 0.5s; }
.logo.fade   { bottom: 150px; opacity: 0; transition: ease-in-out 0.5s; }

/* 13) Footer */
footer { background-color: black; color: var(--vf-text); text-align: center; position: relative; }
footer img { height: 50px; width: 50px; }

.feature-card img {
width: 50px !important;
height: 50px !important;

object-fit: contain;

display: block;          /* ✅ prevents weird inline stretching */
margin: 0 auto 12px;     /* ✅ centers + spacing */

max-width: none;         /* ✅ CRITICAL FIX */
}

/* 14) How-to text + expand */
.cutoff-text, .cutoff-text-howto {
--max-lines: 3; --line-height: 1.4;
max-height: calc(var(--max-lines) * 1em * var(--line-height));
line-height: var(--line-height);
overflow: hidden; position: relative; text-decoration: none;
}
.cutoff-text::before, .cutoff-text-howto::before {
content: ""; position: absolute; height: calc(1em * var(--line-height)); width: 100%; bottom: 0; pointer-events: none;
}
.expand-btn {
appearance: none; cursor: pointer; margin-top: 1rem;
padding: .5em; border-radius: .25em; border: 1px solid white;
background: var(--vf-btn-grad); color: var(--vf-text);
}
.expand-btn:hover { filter: brightness(1.03); }

/* 15) Video container (fluid) */
.video-container {
position: relative; width: 100%; max-width: 560px;
padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 0 auto;
}
.video-container iframe {
position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* 16) Tables (desktop default) */
#userTable { margin: 0 auto; width: 80%; border-collapse: collapse; text-align: left; }
#userTable th, #userTable td { padding: 12px; border-bottom: 1px solid #ddd; }
#userTable th { background-color: #0e0e0e; }

#student-progress {
margin: 2rem auto; padding: 1rem; max-width: 900px;
background-color: #f9f9f9; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: #000;
}
.progress-table { width: 100%; font-size: 1rem; }
.progress-table tbody tr:hover { background-color: #f1f1f1; }
.progress-table .points { font-weight: bold; color: #2e7d32; }
.progress-table .badges { font-size: 1.2rem; }
.progress-table .score { font-weight: bold; color: #1565c0; }




/* 17) Media queries — consolidated and minimal duplication */
@media (max-width: 960px) {


.dashboard-layout { flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; }
.dashboard, .dashboard-table { width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: center; }
.dashboard-table > * { width: 100%; }


/* Hide LOGIN on mobile */
nav ul li.hideOnMobile {
display: none;
}

/* Ensure hamburger stays visible on mobile */
nav ul li.nav-menu-button {
display: block;
}


.sidebar { max-width: 300px; opacity: 0.9; }

/* Stack selectors vertically and center them */
.quiz-selectors { flex-direction: column; align-items: center; gap: 15px; }

/* On stacked layout, selects fill available width but keep a max for comfort */
.quiz-selectors select {
width: 100%;
max-width: 320px;
flex: 0 0 auto;
}

.action-wrapper { gap: 12px; }
.avatar-container img { width: 80px; height: auto; border-radius: 50%; }
.progress-bar-container { height: 16px; }

.dashboard-links a { max-width: 180px; }
}

.feature-card img {
width: 50px !important;
height: 50px !important;

object-fit: contain;

display: block;          /* ✅ prevents weird inline stretching */
margin: 0 auto 12px;     /* ✅ centers + spacing */

max-width: none;         /* ✅ CRITICAL FIX */
}

@media (max-width: 800px) {
.dashboard-layout { padding: 1rem; }
.dashboard, .dashboard-table { max-width: 100%; padding: 1rem; }
.dashboard-links a { font-size: 0.95rem; padding: 0.6rem 1rem; }

.nav-menu-button {
display: block;
}

.nav-menu-button {
display: none;
}
.sidebar { max-width: 100%; opacity: 0.75; }

/* Mobile card table layout */
.progress-table thead { display: none; }
.progress-table, .progress-table tbody, .progress-table tr, .progress-table td { display: block; width: 100%; }
.progress-table tr {
margin-bottom: 1rem; border: 1px solid #ddd; border-radius: 8px; padding: 0.5rem; background-color: #fff;
}
.progress-table td { text-align: right; padding-left: 50%; position: relative; color: #000; }
.progress-table td::before { content: attr(data-label); position: absolute; left: 1rem; top: 0.5rem; font-weight: bold; text-align: left; color: #000; }
}

.feature-card img {
width: 50px !important;
height: 50px !important;

object-fit: contain;

display: block;          /* ✅ prevents weird inline stretching */
margin: 0 auto 12px;     /* ✅ centers + spacing */

max-width: none;         /* ✅ CRITICAL FIX */
}

@media (max-width: 500px) {
.dashboard, .dashboard-table { width: 100%; padding: 0.5rem; }
.dashboard-container h2, .dashboard-table h3 { font-size: 1.2rem; text-align: center; }
.dashboard-links a { padding: 0.5rem 0.75rem; font-size: 0.85rem; max-width: 140px; }
.progress-bar-container { height: 12px; }
.dashboard-table table td { font-size: 0.9rem; padding: 8px; }

.quiz-actions { justify-content: center; }
.answer-review, #answer-review, .student-answer-review { font-size: .95rem; }

.nav-menu-button {
display: block;
}

.nav-menu-button {
display: none;
}

#quiz-avatar { width: 80px; height: 80px; }
.btn--sm,
#load-questions-btn,
#submit-answer-btn { font-size: 0.8rem; padding: 0.5rem 0.85rem; }
}

.feature-card img {
width: 50px !important;
height: 50px !important;

object-fit: contain;

display: block;          /* ✅ prevents weird inline stretching */
margin: 0 auto 12px;     /* ✅ centers + spacing */

max-width: none;         /* ✅ CRITICAL FIX */
}

@media (max-width: 320px) {
.dashboard-layout { gap: 1rem; }
.dashboard, .dashboard-table { width: 100%; padding: 0.25rem; }
.dashboard-container h2, .dashboard-table h3 { font-size: 1rem; }
.dashboard-links a { font-size: 0.7rem; padding: 0.45rem 0.6rem; max-width: 120px; }
.progress-bar-container { height: 10px; }
.logout-button { font-size: 0.8rem; padding: 0.4rem; max-width: 120px; }

.nav-menu-button {
display: block;
}

.nav-menu-button {
display: none;
}
}


.feature-card img {
width: 50px !important;
height: 50px !important;

object-fit: contain;

display: block;          /* ✅ prevents weird inline stretching */
margin: 0 auto 12px;     /* ✅ centers + spacing */

max-width: none;         /* ✅ CRITICAL FIX */
}

/* 18) Animations (used across UI) */
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
.badge-animated { display: inline-block; font-weight: bold; font-size: 1.2rem; color: #ffd700; animation: popIn 0.6s ease-out; }

.fade-in  { animation: fadeIn 0.5s ease-in-out; }
.fade-out { animation: fadeOut 0.5s ease-in-out; }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; transform: translateY(0); }   to { opacity: 0; transform: translateY(-10px); } }
@keyframes bounce  { 0%{transform:scale(1);}25%{transform:scale(1.1);}50%{transform:scale(0.95);}75%{transform:scale(1.05);}100%{transform:scale(1);} }
@keyframes shake   { 0%{transform:translateX(0);}25%{transform:translateX(-5px);}50%{transform:translateX(5px);}75%{transform:translateX(-5px);}100%{transform:translateX(0);} }


/* === Patch: center selectors row + stretch wrappers so centering is visible === */

/* 1) Center the entire selectors row at all widths */
.quiz-selectors {
justify-content: center;           /* center items horizontally */
/* you already have flex-wrap: wrap and align-items: center */
}

/* 2) Ensure the button wrapper spans the container, so margin:auto can center the button */
.action-wrapper {
width: 100%;                        /* stretch to full row width */
}

/* 3) Center the button within its wrapper */
#load-questions-btn {
display: inline-flex;
margin-inline: auto;                /* center horizontally within full-width wrapper */
}

/* 4) Ensure the avatar container also spans full width so 'justify-content:center' works */
.action-wrapper + .avatar-container,
.avatar-container {
display: flex;
justify-content: center;
width: 100%;                        /* critical: makes centering relative to page, not image width */
margin-top: 12px;                   /* consistent gap below the button */
}

/* 5) Center labels when stacked (mobile); keep if you also want center on desktop, see note below */
@media (max-width: 960px) {
.quiz-selectors {
flex-direction: column;           /* stacked layout */
align-items: center;
}
.quiz-selectors label {
text-align: center;
width: 100%;
max-width: 320px;                 /* matches mobile select width */
margin: 0;
}
.quiz-selectors select {
width: 100%;
max-width: 320px;
}
}

/* === Launch Countdown Banner (VERBify AI) === */
.vf-launch {
/* Match your dark panel look */
background-color: var(--vf-panel-1);
color: var(--vf-text);
border: 1px solid var(--vf-border);
border-radius: 12px;
box-shadow: var(--vf-shadow-2);
max-width: 1100px;
margin: 20px auto;
padding: 16px 18px;
text-align: center;
}

.vf-launch__heading {
font-weight: 800;
letter-spacing: 0.2px;
margin: 0 0 10px;
/* Typographic scale similar to other headings */
font-size: clamp(1.15rem, 2.6vw, 1.6rem);
color: var(--vf-text);
}

.vf-countdown {
display: grid;
grid-auto-flow: column;
gap: clamp(10px, 3vw, 18px);
justify-content: center;
align-items: center;
background-color: var(--vf-panel-2);
border: 1px solid var(--vf-border);
border-radius: 10px;
padding: 10px 12px;
margin: 6px auto 10px;
}

.vf-time {
display: grid;
gap: 2px;
min-width: 62px;
}

.vf-num {
font-size: clamp(1.4rem, 4vw, 2rem);
font-weight: 800;
line-height: 1;
color: var(--vf-text);
}

.vf-label {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--vf-muted);
}

.vf-launch__message {
margin: 6px 0 10px;
color: var(--vf-muted);
font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.vf-cta {
display: flex;
justify-content: center;
gap: 10px;
}

.feature-card img {
width: 50px !important;
height: 50px !important;

object-fit: contain;

display: block;          /* ✅ prevents weird inline stretching */
margin: 0 auto 12px;     /* ✅ centers + spacing */

max-width: none;         /* ✅ CRITICAL FIX */
}

/* Responsive tweaks */
@media (max-width: 520px) {
.vf-time { min-width: 54px; }
}

/* === FIX: Quiz Dropdown Readability (FINAL OVERRIDE) === */
.quiz-selectors select,
.vf-select {
background-color: #ffffff !important;
color: #000000 !important;

padding: 10px;
font-size: 16px;

border-radius: 6px;
border: 1px solid #ccc;

width: 100%;
max-width: 320px;
}

/* When user clicks into dropdown */
.quiz-selectors select:focus,
.vf-select:focus {
outline: none;
border: 2px solid #0056b3;
}

/* Dropdown options */
.quiz-selectors select option {
background-color: #ffffff;
color: #000000;
}
/* ===== Privacy Page Enhancement ===== */

.privacy-doc {
max-width: 800px;
margin: 0 auto;
line-height: 1.7;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Headings */
.privacy-doc h2 {
font-size: 2rem;
margin-bottom: 10px;
}

.privacy-doc h3 {
margin-top: 30px;
margin-bottom: 10px;
font-size: 1.3rem;
color: #38bdf8;
}

/* Paragraph spacing */
.privacy-doc p {
margin-bottom: 15px;
}

/* Lists */
.privacy-doc ul {
margin-bottom: 20px;
padding-left: 20px;
}

.privacy-doc li {
margin-bottom: 8px;
}

/* Subtle section separation */
.privacy-doc h3 {
border-top: 1px solid rgba(255,255,255,0.08);
padding-top: 20px;
}

.privacy-doc p:first-of-type {
font-size: 1.05rem;
color: var(--vf-muted);
}


.privacy-doc:hover {
transform: translateY(-2px);
box-shadow: var(--vf-shadow-1);
}