/**
 * ChronoForge Booking — Back-Office Command Center SPA Styles v2.0 (cf-admin.css)
 * Inspired by Amelia 2.0 Back-Office, Linear & Stripe Dashboard.
 * Features: SVG Navigation Rail, Revenue Sparkline Bars, Visual Weekly Schedule Timeline Grid.
 */

.cf-admin-wrap {
	margin: 20px 20px 40px 0;
	font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #0f172a;
	-webkit-font-smoothing: antialiased;
}

.cf-admin-shell {
	display: grid;
	grid-template-columns: 248px 1fr;
	min-height: 780px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
}

/* Deep Obsidian Navigation Rail */
.cf-admin-rail {
	background: #0b1120;
	background-image: radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
	color: #f8fafc;
	padding: 22px 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cf-brand-lockup {
	padding: 4px 10px 20px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 11px;
}

.cf-brand-icon-box {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: #4f46e5;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.cf-brand-title {
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
	margin: 0;
}

.cf-brand-sub {
	font-size: 11px;
	color: #94a3b8;
	margin: 2px 0 0 0;
}

.cf-nav-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cf-nav-btn {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border-radius: 9px;
	border: none;
	background: transparent;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 140ms ease;
	font-family: inherit;
}

.cf-nav-btn svg {
	width: 17px;
	height: 17px;
	stroke-width: 1.85;
	flex-shrink: 0;
}

.cf-nav-btn:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.cf-nav-btn.is-active {
	color: #ffffff;
	background: #4f46e5;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Main Admin Content Area */
.cf-admin-main {
	padding: 30px 34px;
	overflow-x: auto;
}

.cf-admin-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e2e8f0;
	flex-wrap: wrap;
}

.cf-admin-topbar h1 {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.025em;
	margin: 0;
	color: #0f172a;
}

.cf-admin-topbar-sub {
	font-size: 13px;
	color: #64748b;
	margin: 3px 0 0 0;
}

/* KPI Metric Cards */
.cf-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.cf-kpi-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cf-kpi-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cf-kpi-label {
	font-size: 11.5px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cf-kpi-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #eef2ff;
	color: #4f46e5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cf-kpi-value {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	margin-top: 10px;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}

.cf-kpi-sub {
	font-size: 12px;
	color: #10b981;
	font-weight: 600;
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Visual Weekly Timeline Schedule Grid */
.cf-week-timeline {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	margin-top: 12px;
}

.cf-day-col {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	min-height: 220px;
}

.cf-day-col-header {
	font-size: 12px;
	font-weight: 700;
	color: #0f172a;
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
}

.cf-timeline-event {
	background: #ffffff;
	border-left: 3.5px solid #4f46e5;
	border-top: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	border-radius: 7px;
	padding: 8px 10px;
	margin-bottom: 8px;
	font-size: 11.5px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cf-timeline-time {
	font-weight: 700;
	color: #4f46e5;
	font-variant-numeric: tabular-nums;
}

.cf-timeline-title {
	font-weight: 700;
	color: #0f172a;
	margin: 2px 0;
}

.cf-timeline-meta {
	color: #64748b;
	font-size: 11px;
}

/* Panel Cards & Data Tables */
.cf-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 22px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.cf-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.cf-panel-title {
	font-size: 15.5px;
	font-weight: 700;
	margin: 0;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.cf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.cf-table th {
	text-align: left;
	padding: 11px 14px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.cf-table td {
	padding: 13px 14px;
	border-bottom: 1px solid #f1f5f9;
	color: #1e293b;
	font-variant-numeric: tabular-nums;
}

.cf-status-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: capitalize;
}

.cf-status-confirmed,
.cf-status-paid,
.cf-status-completed,
.cf-status-active,
.cf-status-open {
	background: #ecfdf5;
	color: #047857;
}

.cf-status-pending,
.cf-status-deposit_paid,
.cf-status-waiting {
	background: #fffbeb;
	color: #b45309;
}

.cf-status-cancelled,
.cf-status-no_show,
.cf-status-sold_out {
	background: #fef2f2;
	color: #b91c1c;
}

/* Admin Form Controls & Buttons */
.cf-admin-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.cf-admin-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 12px;
}

.cf-admin-field label {
	font-size: 12px;
	font-weight: 600;
	color: #334155;
}

.cf-admin-input,
.cf-admin-select,
.cf-admin-textarea {
	padding: 9px 12px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	background: #ffffff;
	color: #0f172a;
	font-family: inherit;
}

.cf-admin-input:focus,
.cf-admin-select:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.cf-admin-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 140ms ease;
	font-family: inherit;
}

.cf-admin-btn-primary {
	background: #4f46e5;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.cf-admin-btn-primary:hover {
	background: #4338ca;
	color: #ffffff;
}

.cf-admin-btn-ghost {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #0f172a;
}

.cf-admin-btn-ghost:hover {
	background: #f1f5f9;
}

.cf-admin-btn-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #dc2626;
}
