/* UndoubtME SAT Prep — front-end styles for dashboards, practice lists, and the mock-test tab.
   Brand colors sampled from the UndoubtME logo; status colors are colorblind-safe. */
.satps-login, .satps-shell, .satps-dashboard, .satps-practice-list, .satps-mock-launch-btn {
	/* Sidebar */
	--satps-side-bg: #0f172a;
	--satps-side-text: #e2e8f0;
	--satps-side-accent: #fbbf24;
	--satps-side-hover: #1e293b;
	--satps-side-active: #2a78d6;
	--satps-side-active-text: #ffffff;
	/* General (all of these can be changed under SAT Prep Suite > Settings > Appearance) */
	--satps-navy: #0f172a;
	--satps-navy-light: #1e293b;
	--satps-gold: #fbbf24;
	--satps-surface: #fcfcfb;
	--satps-page: #f9f9f7;
	--satps-ink: #0b0b0b;
	--satps-ink-2: #52514e;
	--satps-muted: #898781;
	--satps-grid: #e1e0d9;
	--satps-border: rgba(11,11,11,0.10);
	--satps-blue: #2a78d6;
	--satps-blue-dark: #184f95;
	--satps-good: #0ca30c;
	--satps-warning: #fab219;
	--satps-critical: #d03b3b;
}

.satps-notice, .satps-notice-error, .satps-notice-success {
	padding: 14px 18px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	margin: 1em 0;
	border-radius: 4px;
}
.satps-notice-success {
	border-left-color: var(--satps-good, #0ca30c);
	background: rgba(12,163,12,0.08);
}

/* ---------- Brand row (logo on every dashboard) ---------- */
.satps-brand-row { margin-bottom: 20px; }
.satps-brand-logo { height: 44px; width: auto; display: block; }

/* ---------- Mock test launch button ---------- */
.satps-mock-launch-btn {
	display: inline-block;
	padding: 10px 22px;
	background: var(--satps-navy);
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	border: 2px solid var(--satps-navy);
}
.satps-mock-launch-btn:hover {
	background: #fff;
	color: var(--satps-navy) !important;
}

/* ---------- Practice list / domain grouping ---------- */
.satps-practice-list {
	background: var(--satps-page);
	color: var(--satps-ink);
	padding: 20px 24px;
	border-radius: 14px;
	box-sizing: border-box;
}
.satps-practice-list * { box-sizing: border-box; }
.satps-domain-heading {
	margin-top: 1.5em;
	border-bottom: 2px solid var(--satps-gold, #eee);
	padding-bottom: 6px;
	color: var(--satps-navy, inherit);
}
.satps-content-items { list-style: none; margin: 0.5em 0 1.5em; padding: 0; }
.satps-content-items li { padding: 6px 0; }
.satps-inline-target {
	margin: 12px 0 24px;
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
}

/* ---------- Dashboard shell ---------- */
/* Give the dashboard its own light background + padding, independent of
   whatever background color the active theme uses for its content area —
   otherwise gaps between cards show through as the theme's own color
   (e.g. black, on a dark theme), which looks like a bug. */
.satps-dashboard {
	max-width: 980px;
	background: var(--satps-page);
	color: var(--satps-ink);
	padding: 24px;
	border-radius: 14px;
	box-sizing: border-box;
}
.satps-dashboard * { box-sizing: border-box; }
.satps-dashboard p, .satps-dashboard h2, .satps-dashboard h3, .satps-dashboard h4 { color: inherit; }
.satps-dash-title { font-size: 22px; font-weight: 700; margin: 0 0 18px; color: var(--satps-navy); }
.satps-section-label {
	font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
	color: var(--satps-muted); margin: 28px 0 12px;
}

/* ---------- Stat cards (tutor dashboard) ---------- */
.satps-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.satps-stat-card {
	background: var(--satps-surface); border: 1px solid var(--satps-border);
	border-radius: 12px; padding: 16px 18px;
}
.satps-stat-card .label { color: var(--satps-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.satps-stat-card .value { font-size: 24px; font-weight: 700; color: var(--satps-navy); }
.satps-stat-card .meta { font-size: 12px; color: var(--satps-muted); margin-top: 2px; }
.satps-critical-text { color: var(--satps-critical) !important; }

/* ---------- Panels ---------- */
.satps-panel {
	background: var(--satps-surface); border: 1px solid var(--satps-border);
	border-radius: 12px; padding: 20px; margin-bottom: 22px;
}
.satps-panel h3 { font-size: 15px; margin: 0 0 14px; font-weight: 700; color: var(--satps-navy); }

/* ---------- Domain performance bars (tutor) ---------- */
.satps-domain-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.satps-domain-row .name { width: 230px; font-size: 13px; color: var(--satps-ink-2); flex-shrink: 0; }
.satps-domain-row .pct { width: 44px; text-align: right; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: var(--satps-grid); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; }
.satps-bg-good { background: var(--satps-good); }
.satps-bg-warning { background: var(--satps-warning); }
.satps-bg-critical { background: var(--satps-critical); }
.satps-bg-blue { background: var(--satps-blue); }
.satps-text-good { color: var(--satps-good); }
.satps-text-warning { color: #8a5a00; }
.satps-text-critical { color: var(--satps-critical); }

/* ---------- Students table (tutor) ---------- */
table.satps-students-table, table.satps-attempts-table {
	width: 100%; border-collapse: collapse; margin-top: 4px;
}
table.satps-students-table th, table.satps-attempts-table th {
	text-align: left; font-size: 12px; color: var(--satps-muted); text-transform: uppercase;
	letter-spacing: .03em; padding: 0 10px 10px; border-bottom: 1px solid var(--satps-grid); font-weight: 600;
}
table.satps-students-table td, table.satps-attempts-table td {
	padding: 12px 10px; border-bottom: 1px solid var(--satps-grid); font-size: 14px; vertical-align: middle;
}
.satps-student-name { display: flex; align-items: center; gap: 10px; }
.satps-mini-avatar {
	width: 28px; height: 28px; border-radius: 50%; background: #eef2f8; color: var(--satps-blue-dark);
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.satps-muted { color: var(--satps-muted); font-size: 12px; }
.satps-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.satps-pill-good { background: rgba(12,163,12,0.12); color: var(--satps-good); }
.satps-pill-warning { background: rgba(250,178,25,0.18); color: #8a5a00; }
.satps-pill-critical { background: rgba(208,59,59,0.12); color: var(--satps-critical); }

/* ---------- Student hero + score ring ---------- */
.satps-hero {
	display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
	background: var(--satps-surface); border: 1px solid var(--satps-border);
	border-radius: 14px; padding: 24px; margin-bottom: 12px;
}
.satps-hero h2 { margin: 0 0 4px; font-size: 20px; color: var(--satps-navy); }
.satps-hero p { margin: 0; color: var(--satps-ink-2); font-size: 13px; max-width: 460px; }
.satps-ring {
	width: 92px; height: 92px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.satps-ring-inner {
	width: 72px; height: 72px; border-radius: 50%; background: var(--satps-surface);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.satps-ring-inner .n { font-size: 19px; font-weight: 800; color: var(--satps-navy); }
.satps-ring-inner .l { font-size: 9px; color: var(--satps-muted); letter-spacing: .04em; }

/* ---------- Domain cards (student) ---------- */
.satps-domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 6px; }
.satps-domain-card {
	background: var(--satps-surface); border: 1px solid var(--satps-border);
	border-radius: 12px; padding: 16px 18px;
}
.satps-domain-card .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.satps-domain-card .top .name { font-weight: 700; font-size: 14px; color: var(--satps-navy); }
.satps-domain-card .top .pct { font-weight: 700; font-size: 14px; }
.satps-domain-card .bar-track { height: 8px; margin-bottom: 10px; }
.satps-domain-card .meta { font-size: 12px; color: var(--satps-muted); }

@media (max-width: 640px) {
	.satps-stat-row, .satps-domain-grid { grid-template-columns: 1fr; }
}

/* ---------- Locked mock-test states (Practice Only students) ---------- */
.satps-locked-mock {
	display: inline-block; padding: 10px 16px; border-radius: 6px;
	background: #f4f2ee; color: var(--satps-ink-2); font-size: 13px; border: 1px dashed var(--satps-grid);
}
.satps-lock-icon { margin-right: 4px; }
.satps-locked-item {
	display: block; padding: 8px 0; color: var(--satps-muted); font-style: italic;
}
.satps-locked-sub { display: block; font-size: 11px; font-style: normal; margin-top: 2px; }

/* ---------- Mock test standalone tab ---------- */
.satps-mock-topbar {
	background: var(--satps-navy, #0f172a);
	padding: 14px 24px;
}

/* ---------- Quick links row (tutor dashboard) ---------- */
.satps-quick-links { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.satps-quick-links .button { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Announcements (student dashboard) ---------- */
.satps-announcements-panel { border-left: 4px solid var(--satps-gold); }
.satps-announcement { padding: 8px 0; border-bottom: 1px solid var(--satps-grid); }
.satps-announcement:last-child { border-bottom: none; }
.satps-announcement-msg { font-size: 14px; color: var(--satps-ink); }
.satps-announcement-msg p { margin: 0 0 4px; }
.satps-announcement-meta { font-size: 11px; color: var(--satps-muted); margin-top: 2px; }

/* ---------- Assignments ---------- */
.satps-assignment-wrap {
	background: var(--satps-surface, #fff); border: 1px solid var(--satps-border, #eee);
	border-radius: 10px; padding: 18px 20px; margin: 12px 0 20px;
}
.satps-assignment-title { margin: 0 0 10px; font-size: 15px; color: var(--satps-navy, inherit); }
.satps-assignment-instructions { margin-bottom: 14px; }
.satps-assignment-form textarea { width: 100%; font-family: inherit; margin-bottom: 10px; padding: 8px; border-radius: 6px; border: 1px solid var(--satps-grid, #ccc); }
.satps-assignment-form input[type="file"] { display: block; margin-bottom: 10px; }
.satps-assignment-pending { background: #f4f2ee; border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; }
.satps-assignment-resubmit summary { cursor: pointer; font-size: 12px; color: var(--satps-blue, #2a78d6); margin-top: 4px; }
.satps-assignment-graded { display: flex; gap: 18px; flex-wrap: wrap; }
.satps-assignment-your-work { flex: 1; min-width: 220px; }
.satps-assignment-grade-box { flex: 1; min-width: 220px; }
.satps-assignment-feedback { margin-top: 8px; font-size: 13px; color: var(--satps-ink-2); background: #f4f2ee; padding: 10px 12px; border-radius: 8px; }

/* ---------- Tutor gate password form ---------- */
.satps-gate-form {
	max-width: 320px; padding: 20px; border: 1px solid #ddd; border-radius: 10px; background: #fff;
}
.satps-gate-form input[type="password"] { width: 100%; margin-bottom: 10px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.satps-gate-form button {
	background: var(--satps-navy, #0f172a); color: #fff; border: none; padding: 9px 18px; border-radius: 6px; font-weight: 600; cursor: pointer;
}
.satps-gate-error { color: #d63638; }

/* Interactive question banks (v1.4.0) */
.satps-bank-frame { display: block; width: 100%; height: 88vh; min-height: 620px; border: 1px solid var(--satps-border); border-radius: 14px; background: #fff; }
.satps-domain-qline { margin: -6px 0 14px; font-size: 12px; color: var(--satps-muted); }
@media (max-width: 640px) { .satps-question-stats { grid-template-columns: repeat(2, 1fr); } }

/* Side menu around plugin pages (v1.4.1) */
.satps-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.satps-sidenav { position: sticky; top: 24px; background: var(--satps-side-bg); color: var(--satps-side-text); border-radius: 14px; padding: 18px 12px; }
.satps-sidenav-user { font-size: 13px; font-weight: 700; padding: 0 10px 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.14); color: var(--satps-side-accent); }
.satps-sidenav ul { list-style: none; margin: 0; padding: 0; }
.satps-sidenav li { margin: 2px 0; }
.satps-sidenav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--satps-side-text); text-decoration: none; font-size: 14px; opacity: 1; }
.satps-sidenav a:hover { background: var(--satps-side-hover); color: var(--satps-side-text); }
.satps-sidenav li.is-active a { background: var(--satps-side-active); color: var(--satps-side-active-text); font-weight: 600; }
.satps-sidenav .ico { width: 18px; text-align: center; opacity: .9; }
.satps-back-link { margin: 0 0 10px; font-size: 14px; }
@media (max-width: 782px) {
	.satps-shell { grid-template-columns: 1fr; gap: 14px; }
	.satps-sidenav { position: static; padding: 8px; }
	.satps-sidenav-user { display: none; }
	.satps-sidenav ul { display: flex; flex-wrap: wrap; gap: 4px; }
}

/* Login page (v1.5.0) */
.satps-login { display: flex; justify-content: center; padding: 32px 16px; }
.satps-login-card { width: 100%; max-width: 420px; background: var(--satps-surface); border: 1px solid var(--satps-border); border-radius: 18px; padding: 32px 30px; box-shadow: 0 10px 30px rgba(15,23,42,.08); color: var(--satps-ink); }
.satps-login-logo { margin: 0 auto 18px; }
.satps-login-card h2 { margin: 0 0 6px; text-align: center; font-size: 22px; color: var(--satps-navy); }
.satps-login-sub { margin: 0 0 20px; text-align: center; color: var(--satps-ink-2); font-size: 14px; }
.satps-login-form label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--satps-navy); }
.satps-login-form input[type=text], .satps-login-form input[type=password] { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--satps-grid); border-radius: 10px; font-size: 15px; background: #fff; color: var(--satps-ink); }
.satps-login-form input:focus { outline: 2px solid var(--satps-blue); outline-offset: 1px; border-color: var(--satps-blue); }
.satps-pwd-wrap { position: relative; }
.satps-pwd-wrap input { padding-right: 64px !important; }
.satps-pwd-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--satps-blue); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.satps-login-form .satps-login-remember { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--satps-ink-2); margin: 16px 0 4px; }
.satps-login-btn { display: block; width: 100%; box-sizing: border-box; margin-top: 18px; padding: 12px 16px; background: var(--satps-blue); color: #fff !important; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.satps-login-btn:hover { background: var(--satps-blue-dark); }
.satps-login-links { text-align: center; margin: 16px 0 0; font-size: 13px; }
.satps-login-links a { color: var(--satps-blue); }
.satps-login-error { background: rgba(208,59,59,.10); border-left: 4px solid var(--satps-critical); color: var(--satps-critical); padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.satps-login-ok { background: rgba(12,163,12,.10); border-left: 4px solid var(--satps-good); color: var(--satps-ink); padding: 10px 12px; border-radius: 6px; font-size: 14px; }

/* Student / Tutor login toggle (v1.6.0) */
.satps-role-toggle { display: flex; gap: 0; background: var(--satps-grid); border-radius: 12px; padding: 4px; margin: 0 0 6px; }
.satps-role-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.satps-login-form .satps-role-toggle label { flex: 1; margin: 0; padding: 10px 8px; text-align: center; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--satps-ink-2); }
.satps-role-toggle input:checked + label { background: var(--satps-blue); color: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.18); }
.satps-role-toggle input:focus-visible + label { outline: 2px solid var(--satps-navy); outline-offset: 2px; }
