/* Personal Area - dashboard.php, login.php, register.php.
   Tokens match the /pro rebuild + live-quiz restyle done earlier this project. */

/* ---------- Auth pages (login / register) ---------- */
.dmv-auth-page {
	display: flex;
	justify-content: center;
	padding: 64px 24px 96px;
	background: #f6f7f8;
}
.dmv-auth-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border: 1px solid rgba(7, 16, 48, 0.08);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}
.dmv-auth-title { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 24px; line-height: 28px; letter-spacing: -0.48px; color: #071030; margin: 0 0 8px; }
.dmv-auth-subtitle { font-family: "Inter Tight", sans-serif; font-size: 14px; line-height: 20px; color: rgba(7, 16, 48, 0.64); margin: 0 0 24px; }
.dmv-auth-error { background: #ffdee7; border: 1px solid rgba(231, 42, 92, 0.16); color: #e72a5c; font-family: "Inter Tight", sans-serif; font-size: 14px; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; }
.dmv-auth-form { display: flex; flex-direction: column; gap: 16px; }
.dmv-auth-field { display: flex; flex-direction: column; gap: 6px; }
.dmv-auth-field span { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase; color: rgba(7, 16, 48, 0.36); }
.dmv-auth-field input,
.dmv-auth-field select {
	font-family: "Inter Tight", sans-serif;
	font-size: 16px;
	color: #071030;
	padding: 12px 16px;
	border: 1px solid rgba(7, 16, 48, 0.08);
	border-radius: 8px;
	box-sizing: border-box;
	outline: none;
}
.dmv-auth-field input:focus,
.dmv-auth-field select:focus { border-color: #22cc6b; }
.dmv-auth-checkbox { display: flex; align-items: center; gap: 8px; font-family: "Inter Tight", sans-serif; font-size: 14px; color: rgba(7, 16, 48, 0.64); }
.dmv-auth-submit {
	margin-top: 4px;
	background: #22cc6b;
	color: #fff;
	font-family: "Inter Tight", sans-serif;
	font-weight: 600;
	font-size: 16px;
	border: none;
	border-radius: 8px;
	padding: 14px;
	cursor: pointer;
	box-shadow: 0 4px 2px rgba(41, 186, 85, 0.24);
}
.dmv-auth-submit:hover { background: #1eb85f; }
.dmv-auth-forgot { display: block; text-align: center; margin-top: 16px; font-family: "Inter Tight", sans-serif; font-size: 14px; color: rgba(7, 16, 48, 0.64); text-decoration: none; }
.dmv-auth-forgot:hover { text-decoration: underline; }
.dmv-auth-switch { margin-top: 24px; text-align: center; font-family: "Inter Tight", sans-serif; font-size: 14px; color: rgba(7, 16, 48, 0.64); }
.dmv-auth-switch a { color: #071030; font-weight: 600; text-decoration: none; }
.dmv-auth-switch a:hover { text-decoration: underline; }

/* ---------- Dashboard shell ---------- */
.dmv-dash { background: #fff; }
.dmv-dash-body { padding: 24px 120px 96px; max-width: 1440px; margin: 0 auto; box-sizing: border-box; }

/* Toolbar (state switch + logout) - sits above the greeting; the site's own
   header (get_header()) already provides logo/nav/mega-menu, so this stays
   deliberately small rather than duplicating a second nav bar. */
.dmv-dash-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dmv-dash-state-form { display: flex; align-items: center; gap: 8px; }
.dmv-dash-state-form label { font-family: "Inter Tight", sans-serif; font-size: 14px; color: rgba(7, 16, 48, 0.64); }
.dmv-dash-state-form select {
	font-family: "Inter Tight", sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: #071030;
	background: #f6f7f8;
	border: 1px solid rgba(7, 16, 48, 0.08);
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
}
.dmv-dash-logout-link { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 14px; color: rgba(7, 16, 48, 0.64); text-decoration: none; }
.dmv-dash-logout-link:hover { color: #071030; text-decoration: underline; }
.dmv-dash-avatar {
	width: 32px; height: 32px; border-radius: 999px; background: #c3f07f;
	display: flex; align-items: center; justify-content: center;
	font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 14px; color: #2a9231;
	flex: none;
}
.dmv-dash-avatar-lg { width: 48px; height: 48px; font-size: 20px; }

/* Buttons (shared) */
.dmv-dash-btn { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border: none; cursor: pointer; }
.dmv-dash-btn-primary { background: #22cc6b; color: #fff; box-shadow: 0 4px 2px rgba(41, 186, 85, 0.24); }
.dmv-dash-btn-primary:hover { background: #1eb85f; color: #fff; }
.dmv-dash-btn-secondary { background: #f6f7f8; color: #071030; border: 1px solid rgba(7, 16, 48, 0.08); }
.dmv-dash-btn-secondary:hover { background: #eceef0; color: #071030; }

/* Hero */
.dmv-dash-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dmv-dash-greeting { display: flex; align-items: center; gap: 8px; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 16px; color: #071030; }
.dmv-dash-hero-buttons { display: flex; gap: 8px; }

/* Top cards */
.dmv-dash-top-cards { display: flex; gap: 24px; align-items: stretch; margin-bottom: 24px; flex-wrap: wrap; }
.dmv-dash-profile-card { flex: 1 1 420px; background: #d8ebff; border-radius: 24px; padding: 8px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.dmv-dash-profile-head { display: flex; align-items: center; gap: 8px; padding: 16px; }
.dmv-dash-profile-name { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.48px; color: #071030; }
.dmv-dash-profile-meta { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase; color: rgba(7, 16, 48, 0.36); margin-top: 4px; }
.dmv-dash-stat-row { display: flex; gap: 4px; text-align: center; }
.dmv-dash-stat-tile { flex: 1 1 0; background: #fff; border-radius: 16px; padding: 8px 16px; }
.dmv-dash-stat-num { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.48px; color: #071030; }
.dmv-dash-stat-success { color: #22cc6b; }
.dmv-dash-stat-info { color: #3287fe; }
.dmv-dash-stat-label { font-family: "Inter Tight", sans-serif; font-size: 14px; color: rgba(7, 16, 48, 0.64); }

.dmv-dash-progress-card { flex: 1 1 420px; background: #fff; border: 1px solid rgba(7, 16, 48, 0.08); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; box-sizing: border-box; }
.dmv-dash-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dmv-dash-progress-title { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 20px; color: #071030; }
.dmv-dash-progress-count { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase; color: rgba(7, 16, 48, 0.36); }
.dmv-dash-progress-bar-wrap { position: relative; }
.dmv-dash-progress-bar { height: 28px; background: #f6f7f8; border: 1px solid rgba(7, 16, 48, 0.08); border-radius: 64px; overflow: hidden; }
.dmv-dash-progress-bar-fill { height: 100%; background: #22cc6b; border-radius: 64px; transition: width .3s ease; }
.dmv-dash-pass-marker { position: absolute; top: -8px; height: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateX(-50%); pointer-events: none; }
.dmv-dash-pass-marker-line { width: 2px; height: 36px; background: #3287fe; border-radius: 9px; }
.dmv-dash-pass-marker-label { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: #3287fe; white-space: nowrap; }
.dmv-dash-progress-legend { display: flex; gap: 24px; font-family: "Inter Tight", sans-serif; font-size: 14px; flex-wrap: wrap; }
.dmv-dash-legend-success { color: #22cc6b; }
.dmv-dash-legend-muted { color: rgba(7, 16, 48, 0.36); }

/* Main columns */
.dmv-dash-main-columns { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.dmv-dash-col-left { flex: 1 1 0; min-width: 0; }
.dmv-dash-col-right { width: 320px; flex: none; display: flex; flex-direction: column; gap: 16px; }

.dmv-dash-section-card { background: #fff; border: 1px solid rgba(7, 16, 48, 0.08); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); border-radius: 24px; padding: 16px; box-sizing: border-box; }
.dmv-dash-section-title { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 20px; color: #071030; margin: 0 0 8px; padding: 0 8px; }
.dmv-dash-group-header { background: #f6f7f8; border-radius: 8px; padding: 8px 16px; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase; color: rgba(7, 16, 48, 0.64); margin: 16px 0 4px; }
.dmv-dash-group-header:first-of-type { margin-top: 4px; }

.dmv-dash-test-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 16px; padding: 8px 16px; border-bottom: 1px solid rgba(7, 16, 48, 0.08); }
.dmv-dash-test-row:last-child { border-bottom: none; }
.dmv-dash-test-row-name { display: flex; align-items: center; gap: 8px; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 16px; color: #071030; }
.dmv-dash-badge-pill { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 0.6px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; flex: none; }
.dmv-dash-badge-free { background: #e2ffe0; color: #22cc6b; }
.dmv-dash-badge-premium { background: #e6eaff; color: #2580ff; }
.dmv-dash-test-row-progress { display: flex; align-items: center; gap: 8px; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: #071030; white-space: nowrap; }
.dmv-dash-test-row-progress.dmv-dash-not-started { color: rgba(7, 16, 48, 0.36); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; }
.dmv-dash-mini-bar { width: 64px; height: 8px; background: #f6f7f8; border: 1px solid rgba(7, 16, 48, 0.08); border-radius: 64px; overflow: hidden; }
.dmv-dash-mini-bar-fill { height: 100%; background: #22cc6b; border-radius: 64px; }
.dmv-dash-test-row-meta { font-family: "Inter Tight", sans-serif; font-size: 12px; color: rgba(7, 16, 48, 0.64); white-space: nowrap; }
.dmv-dash-test-row-actions { display: flex; justify-content: flex-end; }

.dmv-dash-mini-stat { background: #fff; border: 1px solid rgba(7, 16, 48, 0.08); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); border-radius: 24px; padding: 16px; text-align: center; }
.dmv-dash-mini-stat-label { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase; color: rgba(7, 16, 48, 0.36); }
.dmv-dash-mini-stat-num { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 44px; letter-spacing: -1.76px; margin: 8px 0; }
.dmv-dash-mini-stat-caption { font-family: "Inter Tight", sans-serif; font-size: 14px; color: rgba(7, 16, 48, 0.64); }
.dmv-dash-fix-bank-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #ffe8c6;
	border-radius: 24px;
	padding: 20px 24px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.dmv-dash-fix-bank-banner-text { font-family: "Inter Tight", sans-serif; font-size: 16px; color: #071030; }
.dmv-dash-fix-bank-banner-count { font-weight: 600; font-size: 20px; margin-right: 4px; }

/* Recent results */
.dmv-dash-recent-header, .dmv-dash-recent-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: center; gap: 16px; padding: 8px 16px; }
.dmv-dash-recent-header { background: #f6f7f8; border-radius: 8px; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.96px; text-transform: uppercase; color: rgba(7, 16, 48, 0.64); }
.dmv-dash-recent-row { font-family: "Inter Tight", sans-serif; font-size: 14px; color: #071030; border-bottom: 1px solid rgba(7, 16, 48, 0.08); }
.dmv-dash-recent-row:last-child { border-bottom: none; }
.dmv-dash-recent-row span:first-child { font-weight: 600; }

/* Empty state */
.dmv-dash-empty-card { background: #f6f7f8; border-radius: 24px; padding: 64px 24px; text-align: center; }
.dmv-dash-empty-emoji { font-size: 64px; margin-bottom: 16px; }
.dmv-dash-empty-card h2 { font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 20px; color: #071030; margin: 0 0 8px; }
.dmv-dash-empty-card p { font-family: "Inter Tight", sans-serif; font-size: 14px; color: rgba(7, 16, 48, 0.64); margin: 0 0 24px; }

/* Responsive */
@media (max-width: 1100px) {
	.dmv-dash-header { padding: 16px 24px 0; }
	.dmv-dash-body { padding: 24px 24px 64px; }
	.dmv-dash-main-columns { flex-direction: column; }
	.dmv-dash-col-right { width: 100%; flex-direction: row; }
}
@media (max-width: 720px) {
	.dmv-dash-header { flex-direction: column; align-items: stretch; }
	.dmv-dash-header-menu { flex-wrap: wrap; height: auto; }
	.dmv-dash-top-cards { flex-direction: column; }
	/* flex-basis:420px on these cards means "420px wide" in the desktop row
	   layout - once the container above switches to a column, that same
	   basis is read as a *height*, stretching each card with empty space
	   (justify-content:space-between then spreads it between the card's own
	   children). Reset to content-driven height here. */
	.dmv-dash-profile-card, .dmv-dash-progress-card { flex: 1 1 auto; }
	.dmv-dash-test-row { grid-template-columns: 1fr; gap: 8px; }
	.dmv-dash-test-row-actions { justify-content: flex-start; }
	.dmv-dash-recent-header { display: none; }
	.dmv-dash-recent-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
	.dmv-dash-col-right { flex-direction: column; }
}

/* Study program additions: exam-date + language + access-left */
.dmv-dash-exam-days { font-size: 13px; font-weight: 600; color: #2580ff; white-space: nowrap; }
.dmv-dash-access-left { font-size: 13px; font-weight: 600; color: #07103099; white-space: nowrap; }
.dmv-dash-access-left.is-expiring { color: #e5484d; }
.dmv-dash-state-form input[type="date"] { border: 1px solid rgba(7,16,48,0.14); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; }

/* Button-styled link on reset-flow screens */
.dmv-auth-submit-link { display: block; text-align: center; text-decoration: none; box-sizing: border-box; margin-top: 8px; }
