/* Circle USP UAT Guide - Zoho-style Documentation Theme */

/* ========== CSS Variables ========== */
:root {
	--color-primary: #1a73e8;
	--color-primary-dark: #1557b0;
	--color-success: #0f9d58;
	--color-danger: #db4437;
	--color-warning: #f4b400;
	--color-info: #4285f4;
	--color-gray-50: #fafafa;
	--color-gray-100: #f5f5f5;
	--color-gray-200: #eeeeee;
	--color-gray-300: #e0e0e0;
	--color-gray-400: #bdbdbd;
	--color-gray-500: #9e9e9e;
	--color-gray-600: #757575;
	--color-gray-700: #616161;
	--color-gray-800: #424242;
	--color-gray-900: #212121;
	--color-text: #202124;
	--color-text-secondary: #5f6368;
	--color-border: #dadce0;
	--color-bg: #ffffff;
	--color-bg-secondary: #f8f9fa;
	--sidebar-width: 280px;
	--toc-width: 220px;
	--header-height: 64px;
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
}

/* ========== Dark Mode ========== */
[data-theme="dark"] {
	--color-primary: #8ab4f8;
	--color-primary-dark: #669df6;
	--color-success: #81c995;
	--color-danger: #f28b82;
	--color-warning: #fdd663;
	--color-info: #8ab4f8;
	--color-gray-50: #1e1e1e;
	--color-gray-100: #252525;
	--color-gray-200: #2d2d2d;
	--color-gray-300: #3d3d3d;
	--color-gray-400: #5f5f5f;
	--color-gray-500: #7a7a7a;
	--color-gray-600: #a0a0a0;
	--color-gray-700: #c0c0c0;
	--color-gray-800: #e0e0e0;
	--color-gray-900: #f0f0f0;
	--color-text: #e8eaed;
	--color-text-secondary: #9aa0a6;
	--color-border: #3c4043;
	--color-bg: #1a1a1a;
	--color-bg-secondary: #121212;
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .badge-id {
	background: var(--color-gray-700);
	color: var(--color-gray-100);
}

[data-theme="dark"] .badge-module {
	background: var(--color-gray-200);
	color: var(--color-text);
}

[data-theme="dark"] .badge-uc {
	background: var(--color-gray-300);
	color: var(--color-text);
}

[data-theme="dark"] .card-status[data-status="pending"] {
	background: var(--color-gray-300);
	color: var(--color-text);
}

[data-theme="dark"] .card-status[data-status="pass"] {
	background: rgba(129, 201, 149, 0.2);
	color: var(--color-success);
}

[data-theme="dark"] .card-status[data-status="fail"] {
	background: rgba(242, 139, 130, 0.2);
	color: var(--color-danger);
}

[data-theme="dark"] .guide-content.prose pre {
	background: #0d0d0d;
}

[data-theme="dark"] .data-card {
	background: rgba(253, 214, 99, 0.15);
	border-color: rgba(253, 214, 99, 0.3);
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg-secondary);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 1rem;
	font-weight: 600;
	line-height: 1.3;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--color-gray-100);
	padding: 0.2em 0.4em;
	border-radius: var(--radius-sm);
}

/* ========== Layout ========== */
.layout {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.layout-main {
	display: flex;
	flex: 1;
	margin-top: var(--header-height);
}

/* ========== Header ========== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	padding: 0 1.5rem;
	gap: 2rem;
	z-index: 100;
	box-shadow: var(--shadow-sm);
}

.header-brand {
	display: flex;
	align-items: center;
}

.header-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--color-text);
	font-weight: 600;
	font-size: 1.125rem;
}

.logo-badge {
	background: var(--color-primary);
	color: white;
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-sm);
	font-weight: 500;
}

.header-nav {
	display: flex;
	gap: 0.5rem;
	flex: 1;
}

.nav-link {
	padding: 0.5rem 1rem;
	border-radius: var(--radius-md);
	color: var(--color-text-secondary);
	transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
	background: var(--color-gray-100);
	color: var(--color-primary);
	text-decoration: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.session-badge {
	padding: 0.375rem 0.75rem;
	border-radius: var(--radius-sm);
	font-size: 0.813rem;
	font-weight: 500;
}

.session-badge[data-status="inactive"] {
	background: var(--color-gray-200);
	color: var(--color-gray-600);
}

.session-badge[data-status="active"] {
	background: var(--color-success);
	color: white;
}

.session-badge[data-status="paused"] {
	background: var(--color-warning);
	color: var(--color-gray-900);
}

/* ========== Theme Toggle ========== */
.theme-toggle {
	width: 40px;
	height: 40px;
	border: none;
	background: var(--color-gray-100);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	transition: background 0.2s ease;
}

.theme-toggle:hover {
	background: var(--color-gray-200);
}

.theme-icon-light,
.theme-icon-dark {
	line-height: 1;
}

.theme-icon-dark {
	display: none;
}

[data-theme="dark"] .theme-icon-light {
	display: none;
}

[data-theme="dark"] .theme-icon-dark {
	display: inline;
}

[data-theme="dark"] .theme-toggle {
	background: var(--color-gray-200);
}

[data-theme="dark"] .theme-toggle:hover {
	background: var(--color-gray-300);
}

.session-timer {
	font-family: var(--font-mono);
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	margin-left: 0.5rem;
	padding: 0.25rem 0.5rem;
	background: var(--color-gray-100);
	border-radius: var(--radius-sm);
}

/* ========== Sidebar ========== */
.sidebar {
	width: var(--sidebar-width);
	background: var(--color-bg);
	border-right: 1px solid var(--color-border);
	position: fixed;
	top: var(--header-height);
	left: 0;
	bottom: 0;
	overflow-y: auto;
	padding: 1rem 0;
}

.sidebar-header {
	padding: 0 1rem 0.75rem;
	border-bottom: 1px solid var(--color-border);
	margin-bottom: 0.75rem;
}

.sidebar-header h3 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-secondary);
	margin: 0;
}

.nav-group {
	margin-bottom: 0.25rem;
}

.nav-group-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 1rem;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.875rem;
	color: var(--color-text);
	text-align: left;
	transition: background 0.15s ease;
}

.nav-group-toggle:hover {
	background: var(--color-gray-100);
}

.nav-icon {
	font-size: 1.25rem;
	color: var(--color-text-secondary);
}

.nav-label {
	flex: 1;
	font-weight: 500;
}

.nav-chevron {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--color-gray-400);
	transition: transform 0.2s ease;
}

.nav-group-toggle[aria-expanded="true"] .nav-chevron {
	transform: rotate(180deg);
}

.nav-group-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
}

.nav-group-toggle[aria-expanded="true"] + .nav-group-items {
	display: block;
}

.nav-group-items li a {
	display: block;
	padding: 0.5rem 1rem 0.5rem 3rem;
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	transition: all 0.15s ease;
}

.nav-group-items li a:hover,
.nav-group-items li a.active {
	background: var(--color-gray-100);
	color: var(--color-primary);
	text-decoration: none;
}

/* ========== TOC (Right Sidebar) ========== */
.toc {
	width: var(--toc-width);
	position: fixed;
	top: var(--header-height);
	right: 0;
	bottom: 0;
	padding: 1.5rem 1rem;
	overflow-y: auto;
	border-left: 1px solid var(--color-border);
	background: var(--color-bg);
}

.toc-header h4 {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-secondary);
	margin: 0 0 1rem;
}

.toc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc-nav a {
	display: block;
	padding: 0.375rem 0;
	font-size: 0.813rem;
	color: var(--color-text-secondary);
	border-left: 2px solid transparent;
	padding-left: 0.75rem;
	margin-left: -2px;
}

.toc-nav a:hover,
.toc-nav a.active {
	color: var(--color-primary);
	border-left-color: var(--color-primary);
	text-decoration: none;
}

.toc-progress {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
}

.progress-bar {
	height: 8px;
	background: var(--color-gray-200);
	border-radius: 4px;
	overflow: hidden;
	margin: 0.75rem 0;
}

.progress-fill {
	height: 100%;
	background: var(--color-success);
	transition: width 0.3s ease;
}

.progress-stats {
	display: flex;
	gap: 0.75rem;
	font-size: 0.75rem;
}

.progress-stats .stat {
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-sm);
}

.progress-stats .pass { background: #e6f4ea; color: var(--color-success); }
.progress-stats .fail { background: #fce8e6; color: var(--color-danger); }
.progress-stats .pending { background: var(--color-gray-100); color: var(--color-gray-600); }

/* ========== Main Content ========== */
.content {
	flex: 1;
	margin-left: var(--sidebar-width);
	margin-right: var(--toc-width);
	padding: 2rem 3rem;
	max-width: 900px;
	background: var(--color-bg);
	min-height: calc(100vh - var(--header-height));
}

/* ========== Test Case Page ========== */
.test-header {
	margin-bottom: 2rem;
}

.test-meta {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.badge {
	display: inline-block;
	padding: 0.25rem 0.625rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 500;
}

.badge-module {
	background: var(--color-primary);
	color: white;
}

.badge-id {
	background: var(--color-gray-800);
	color: white;
	font-family: var(--font-mono);
	font-weight: 600;
}

.badge-uc {
	background: var(--color-info);
	color: white;
}

.test-description {
	color: var(--color-text-secondary);
	font-size: 1.0625rem;
}

.reference-code {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: var(--color-gray-50);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.ref-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-secondary);
}

.ref-value {
	flex: 1;
	font-family: var(--font-mono);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-primary);
	background: var(--color-bg);
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.ref-value:hover {
	background: var(--color-gray-100);
}

.ref-copy {
	padding: 0.5rem 1rem;
	background: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ref-copy:hover {
	background: var(--color-primary-dark);
}

/* ========== Test Sections ========== */
.test-section {
	margin-bottom: 2.5rem;
}

.test-section h2 {
	margin-bottom: 1rem;
}

/* ========== Credentials Card ========== */
.credentials-card {
	background: var(--color-gray-50);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
}

.credential-row {
	display: flex;
	align-items: center;
	padding: 0.5rem 0;
}

.credential-row:not(:last-child) {
	border-bottom: 1px solid var(--color-border);
}

.credential-row .label {
	width: 100px;
	font-weight: 500;
	color: var(--color-text-secondary);
}

.credential-row .value {
	flex: 1;
}

.copyable {
	cursor: pointer;
	position: relative;
}

.copyable:hover::after {
	content: "Click to copy";
	position: absolute;
	left: 100%;
	margin-left: 0.5rem;
	background: var(--color-gray-800);
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	white-space: nowrap;
}

/* ========== Steps Table ========== */
.steps-table {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.steps-header {
	display: grid;
	grid-template-columns: 50px 1fr 1fr 100px 140px;
	background: var(--color-gray-100);
	font-weight: 600;
	font-size: 0.813rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--color-text-secondary);
}

.steps-header > span {
	padding: 0.875rem 1rem;
	border-right: 1px solid var(--color-border);
}

.steps-header > span:last-child {
	border-right: none;
}

.step-row {
	display: grid;
	grid-template-columns: 50px 1fr 1fr 100px 140px;
	border-top: 1px solid var(--color-border);
	transition: background 0.15s ease;
}

.step-row:hover {
	background: var(--color-gray-50);
}

.step-row > div {
	padding: 1rem;
	border-right: 1px solid var(--color-border);
}

.step-row > div:last-child {
	border-right: none;
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--color-gray-200);
	border-radius: 50%;
	font-weight: 600;
	font-size: 0.875rem;
}

.step-row[data-status="pass"] .step-number {
	background: var(--color-success);
	color: white;
}

.step-row[data-status="fail"] .step-number {
	background: var(--color-danger);
	color: white;
}

.action-text,
.expected-text {
	font-size: 0.9375rem;
	line-height: 1.5;
}

.action-text strong {
	color: var(--color-primary);
}

.screenshot-thumb {
	display: block;
	width: 70px;
	height: 50px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid var(--color-border);
}

.screenshot-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.no-screenshot {
	color: var(--color-gray-400);
}

/* ========== Result Buttons ========== */
.result-buttons {
	display: flex;
	gap: 0.5rem;
}

.btn-result {
	width: 36px;
	height: 36px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	transition: all 0.15s ease;
}

.btn-result:hover {
	transform: scale(1.1);
}

.btn-pass {
	color: var(--color-success);
}

.btn-pass:hover,
.btn-pass.selected {
	background: var(--color-success);
	border-color: var(--color-success);
	color: white;
}

.btn-fail {
	color: var(--color-danger);
}

.btn-fail:hover,
.btn-fail.selected {
	background: var(--color-danger);
	border-color: var(--color-danger);
	color: white;
}

.btn-skip {
	color: var(--color-gray-500);
}

.btn-skip:hover,
.btn-skip.selected {
	background: var(--color-gray-500);
	border-color: var(--color-gray-500);
	color: white;
}

.step-notes {
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.875rem;
	resize: vertical;
}

/* ========== Acceptance Criteria ========== */
.criteria-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.criteria-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border);
	cursor: pointer;
}

.criteria-checkbox {
	margin-top: 0.2rem;
	width: 18px;
	height: 18px;
	accent-color: var(--color-success);
}

.criteria-item:has(.criteria-checkbox:checked) .criteria-text {
	text-decoration: line-through;
	color: var(--color-text-secondary);
}

/* ========== Test Data Card ========== */
.data-card {
	background: #fffde7;
	border: 1px solid #fff59d;
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
}

/* ========== Navigation Buttons ========== */
.nav-buttons {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
}

/* ========== Buttons ========== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	border-radius: var(--radius-md);
	font-weight: 500;
	font-size: 0.9375rem;
	cursor: pointer;
	border: none;
	transition: all 0.15s ease;
}

.btn-primary {
	background: var(--color-primary);
	color: white;
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	text-decoration: none;
}

.btn-secondary {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	color: var(--color-text);
}

.btn-secondary:hover {
	background: var(--color-gray-100);
	text-decoration: none;
}

/* ========== Test List Page ========== */
.list-header {
	margin-bottom: 2rem;
}

.test-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.25rem;
}

.test-card {
	display: block;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	transition: all 0.2s ease;
}

.test-card:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--color-primary);
	text-decoration: none;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.card-status {
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.5rem;
	border-radius: var(--radius-sm);
}

.card-status[data-status="pending"] {
	background: var(--color-gray-100);
	color: var(--color-gray-600);
}

.card-status[data-status="pass"] {
	background: #e6f4ea;
	color: var(--color-success);
}

.card-status[data-status="fail"] {
	background: #fce8e6;
	color: var(--color-danger);
}

.card-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--color-text);
}

.card-description {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	color: var(--color-text-secondary);
}

.card-meta {
	display: flex;
	gap: 1rem;
	font-size: 0.75rem;
	color: var(--color-text-secondary);
}

/* ========== Footer ========== */
.footer {
	background: var(--color-gray-100);
	border-top: 1px solid var(--color-border);
	padding: 1.5rem;
	text-align: center;
	margin-left: var(--sidebar-width);
}

.footer p {
	margin: 0.25rem 0;
	font-size: 0.875rem;
	color: var(--color-text-secondary);
}

/* ========== Modal ========== */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 200;
}

.modal:not(:empty) {
	display: flex;
}

.modal-content {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: 2rem;
	max-width: 500px;
	width: 90%;
	border: 1px solid var(--color-border);
	max-height: 90vh;
	overflow-y: auto;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
	.toc {
		display: none;
	}
	.content {
		margin-right: 0;
	}
}

@media (max-width: 900px) {
	.sidebar {
		transform: translateX(-100%);
		transition: transform 0.3s ease;
	}
	.sidebar.open {
		transform: translateX(0);
	}
	.content {
		margin-left: 0;
		padding: 1.5rem;
	}
	.footer {
		margin-left: 0;
	}
	.steps-header,
	.step-row {
		grid-template-columns: 40px 1fr 1fr 80px 120px;
	}
}

/* ========== Guide Pages ========== */
.guide-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--color-border);
}

.guide-description {
	font-size: 1.125rem;
	color: var(--color-text-secondary);
	margin-top: 0.5rem;
}

.guide-content.prose {
	line-height: 1.7;
}

.guide-content.prose h2 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.guide-content.prose h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.guide-content.prose p {
	margin-bottom: 1rem;
}

.guide-content.prose ul,
.guide-content.prose ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.guide-content.prose li {
	margin-bottom: 0.5rem;
}

.guide-content.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.guide-content.prose th,
.guide-content.prose td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	text-align: left;
}

.guide-content.prose th {
	background: var(--color-gray-100);
	font-weight: 600;
}

.guide-content.prose blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	background: var(--color-gray-50);
	border-left: 4px solid var(--color-primary);
	color: var(--color-text-secondary);
}

.guide-content.prose pre {
	background: var(--color-gray-900);
	color: #f8f8f2;
	padding: 1rem;
	border-radius: var(--radius-md);
	overflow-x: auto;
	margin: 1rem 0;
}

.guide-content.prose code {
	background: var(--color-gray-100);
	padding: 0.2em 0.4em;
	border-radius: var(--radius-sm);
	font-size: 0.9em;
}

.guide-content.prose pre code {
	background: none;
	padding: 0;
}

.guide-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
}

.guide-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.guide-card {
	display: block;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	transition: all 0.2s ease;
}

.guide-card:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--color-primary);
	text-decoration: none;
}

.guide-card .card-title {
	margin: 0 0 0.5rem;
	color: var(--color-text);
}

.guide-card .card-description {
	margin: 0;
	color: var(--color-text-secondary);
	font-size: 0.9375rem;
}

/* ========== Disabled Form State ========== */
.form-disabled {
	position: relative;
}

.form-disabled::before {
	content: "Start a test session to record results";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--color-text-secondary);
	z-index: 10;
	border-radius: var(--radius-md);
}

.form-disabled .btn-result {
	pointer-events: none;
	opacity: 0.5;
}

.form-disabled textarea:disabled,
.criteria-checkbox:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/* ========== Module Status ========== */
.module-status-badge {
	display: inline-block;
	padding: 0.125rem 0.375rem;
	border-radius: var(--radius-sm);
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-left: 0.5rem;
}

.module-status-badge.coming-soon {
	background: var(--color-warning);
	color: var(--color-gray-900);
}

.module-coming-soon {
	opacity: 0.6;
}

.card-status-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.05);
	border-radius: var(--radius-md);
}

.card-status-overlay .module-status-badge {
	font-size: 0.75rem;
	padding: 0.25rem 0.75rem;
}

.module-blocked-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
	text-align: center;
}

.module-blocked-message {
	max-width: 400px;
	padding: 2rem;
}

.module-blocked-message h2 {
	margin: 1rem 0 0.5rem;
}

.module-blocked-message p {
	color: var(--color-text-secondary);
	margin: 0.5rem 0;
}

/* ========== Animations ========== */
@keyframes fadeIn {
	from { opacity: 0; transform: translateX(-50%) translateY(10px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
