/* ============================================
   CONCEPT 1: DASHBOARD
   Full-height left sidebar · Structured filter panels
   ============================================ */

/* ---- Navbar: Flush top bar ---- */
.c1-nav {
	background: #fff;
	border-radius: 0;
	margin: -24px -24px 0 -24px;
	border-bottom: 1px solid #e8ecf1;
	position: relative;
}

.c1-nav-inner {
	padding: 0 24px;
	display: flex;
	align-items: center;
	height: 56px;
}

.c1-nav-brand {
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: -0.01em;
	margin-right: auto;
}

.c1-nav-brand:hover { color: #0f172a; }

.c1-nav-links {
	display: flex;
	gap: 6px;
}

.c1-nav-links a {
	padding: 6px 12px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #64748b;
	border-radius: 6px;
	transition: all 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.c1-nav-links a:hover {
	color: #0f172a;
	background: #f1f5f9;
}

.c1-nav-links a svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ---- Hero: Frosted Glass Billboard ---- */
.c1-hero {
	background-image: var(--hero-img);
	background-size: cover;
	background-position: center;
	padding: 4rem 2rem;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
}

.c1-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(30, 41, 59, 0.8);
	border-radius: inherit;
	z-index: 1;
}

.c1-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
}

.c1-hero-card {
	border-radius: 20px;
	padding: 3rem 3.5rem;
	text-align: center;
	max-width: 560px;
	width: 100%;
	color: #fff;
}

.c1-hero-eyebrow {
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	color: #93c5fd;
	margin-bottom: 1rem;
}

.c1-hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	margin-bottom: 0.75rem;
}

.c1-hero-sub {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2rem;
	font-weight: 300;
}

.c1-hero-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}

.c1-hero-btn {
	display: inline-block;
	font-size: 1rem;
	font-weight: 600;
	transition: all 0.2s;
}

.c1-btn-primary {
	padding: 0.7rem 1.5rem;
	background: #3b82f6;
	color: #fff;
	border-radius: 8px;
}

.c1-btn-primary:hover { background: #2563eb; color: #fff; }

.c1-btn-ghost {
	padding: 0.7rem 1.5rem;
	border: 1px solid rgba(255,255,255,0.25);
	color: rgba(255,255,255,0.8);
	border-radius: 8px;
}

.c1-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ---- Layout ---- */
.c1-layout {
	display: flex;
	min-height: 100vh;
	align-items: stretch;
}

.c1-right {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	flex: 1;
	min-width: 0;
	background: #f1f5f9;
	padding: 24px;
	gap: 24px;
	position: relative;
}

.c1-top {
	position: relative;
	flex-shrink: 0;
}

/* ---- Sidebar ---- */
.c1-sidebar {
	background: #f8f9fb;
	color: #475569;
	padding: 0;
	overflow-y: auto;
	height: 100vh;
	position: sticky;
	top: 0;
	align-self: start;
	border-right: 1px solid #e8ecf1;
}

/* ---- Sidebar Header ---- */
.c1-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #e8ecf1;
}

.c1-sidebar-header-label {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
}


/* ---- Filter sections (collapsible) ---- */
.c1-section {
	border-top: 1px solid #e8ecf1;
}

.c1-section-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
	padding: 14px 18px;
	cursor: pointer;
	transition: color 0.15s;
}

.c1-section-toggle:hover { color: #0f172a; }

.c1-section-toggle .chevron {
	width: 12px;
	height: 12px;
	transition: transform 0.25s ease;
	opacity: 0.4;
}

.c1-section.collapsed .c1-section-toggle .chevron {
	transform: rotate(-90deg);
}

.c1-section-body {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.3s ease;
}

.c1-section.collapsed .c1-section-body {
	grid-template-rows: 0fr;
}

.c1-section-inner {
	overflow: hidden;
	padding: 0 18px 14px;
	transition: padding 0.3s ease;
}

.c1-section.collapsed .c1-section-inner {
	padding-top: 0;
	padding-bottom: 0;
}

/* ---- Checkbox labels ---- */
.c1-section label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	font-size: 1rem;
	color: #475569;
	cursor: pointer;
	transition: color 0.15s;
}

.c1-section label:hover { color: #0f172a; }

.c1-section label span {
	margin-left: auto;
	font-size: 0.75rem;
	color: #94a3b8;
	font-variant-numeric: tabular-nums;
}

.c1-section input[type="checkbox"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid #cbd5e1;
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	transition: all 0.15s;
}

.c1-section input[type="checkbox"]:checked {
	background: #3b82f6;
	border-color: #3b82f6;
}

.c1-section input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 6px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---- Sidebar toggle button (inside sidebar header) ---- */
.c1-sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 8px;
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
	transition: all 0.25s ease;
	margin-left: auto;
	flex-shrink: 0;
}

.c1-sidebar-toggle:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.c1-sidebar-toggle svg {
	transition: transform 0.35s ease;
}

.c1.sidebar-hidden .c1-sidebar-toggle {
	position: fixed;
	left: 12px;
	top: 14px;
	z-index: 9;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	margin-left: 0;
	visibility: visible;
}

.c1.sidebar-hidden .c1-sidebar-toggle:hover {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #cbd5e1;
}

.c1.sidebar-hidden .c1-sidebar-toggle svg {
	transform: rotate(180deg);
}

.c1.sidebar-hidden .c1-nav-inner {
	padding-left: 52px;
}

/* ---- Sidebar slide toggle ---- */
.c1-layout {
	position: relative;
}

.c1-sidebar {
	transition: margin-left 0.35s ease, visibility 0.35s;
	width: 322px;
	flex-shrink: 0;
}

.c1.sidebar-hidden .c1-sidebar {
	margin-left: -322px;
	visibility: hidden;
}

/* ---- Year Range Slider ---- */
.c1-year-range { padding: 0.25rem 0; }

.c1-year-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.5rem;
}

.c1-year-range-track {
	position: relative;
	height: 28px;
}

.c1-year-range-rail {
	position: absolute;
	width: 100%;
	height: 4px;
	background: #e2e8f0;
	border-radius: 2px;
	top: 50%;
	transform: translateY(-50%);
}

.c1-year-range-fill {
	position: absolute;
	height: 4px;
	background: #3b82f6;
	border-radius: 2px;
	top: 50%;
	transform: translateY(-50%);
	transition: left 0.1s, width 0.1s;
}

.c1-year-range-track input[type="range"] {
	position: absolute;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
	height: 4px;
}

.c1-year-range-track input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: all;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #3b82f6;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.c1-year-range-track input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.2);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.c1-year-range-track input[type="range"]::-moz-range-thumb {
	pointer-events: all;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #3b82f6;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ---- Main content ---- */
.c1-main {
	padding: 24px 32px 32px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	flex: 1;
}

/* ---- Search row (toggle + search + view toggle) ---- */
.c1-search-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.c1-search { flex: 1; }

.c1-search input {
	width: 100%;
	height: 42px;
	padding: 0 18px;
	background: #f8f9fb;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	color: #1e293b;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.c1-search input::placeholder { color: #94a3b8; }
.c1-search input:focus {
	border-color: #93b4f8;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

/* ---- Toolbar ---- */
.c1-toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.c1-count {
	font-size: 1rem;
	color: #64748b;
	font-weight: 500;
	white-space: nowrap;
}

.c1-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	flex: 1;
}

.c1-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: #eef2ff;
	color: #3b82f6;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.15s;
}

.c1-chip:hover { background: #dbeafe; }

.c1-view-toggle {
	display: flex;
	gap: 2px;
	background: #f1f5f9;
	border-radius: 10px;
	padding: 3px;
	height: 42px;
	align-items: center;
}

.c1-vbtn {
	padding: 8px 10px;
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.15s;
	display: flex;
	align-items: center;
}

.c1-vbtn.active {
	background: #fff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ---- List view ---- */
.c1-list-item {
	display: grid;
	grid-template-columns: 1fr 200px 140px 60px;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.1s;
}

.c1-list-item:first-child {
	border-top: 1px solid #f1f5f9;
}

.c1-list-item:hover {
	background: #f8fafc;
}

.c1-item-name {
	font-size: 1rem;
	font-weight: 500;
	color: #0f172a;
}

.c1-item-div {
	font-size: 1rem;
	color: #64748b;
}

.c1-badge {
	font-size: 1rem;
	color: #64748b;
}

.c1-badge::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dot, #94a3b8);
	margin-right: 6px;
	vertical-align: middle;
}

.c1-item-year {
	font-size: 1rem;
	color: #94a3b8;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* ---- Card view ---- */
.c1-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.c1-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e8ecf1;
	transition: transform 0.2s, box-shadow 0.2s;
	animation: c1FadeUp 0.35s ease both;
}

.c1-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@keyframes c1FadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.c1-card-thumb {
	aspect-ratio: 1;
	background: linear-gradient(135deg, #f0f4ff, #e8ecf5);
	background-size: cover;
	background-position: top center;
}

.c1-card-body { padding: 14px; }

.c1-card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.c1-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.c1-card-year {
	font-size: 1rem;
	color: #94a3b8;
}

/* ============================================
   DARK MODE
   ============================================ */

/* ---- Theme toggle ---- */
.c1-theme-toggle {
	position: absolute;
	right: 24px;
	top: 4px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
}

.c1-theme-toggle-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: #94a3b8;
	user-select: none;
}

.c1-theme-switch {
	position: relative;
	width: 40px;
	height: 22px;
	background: #e2e8f0;
	border-radius: 11px;
	cursor: pointer;
	transition: background 0.25s;
	border: none;
	padding: 0;
}

.c1-theme-switch::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.25s, background 0.25s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.c1-dark .c1-theme-switch {
	background: #3b82f6;
}

.c1-dark .c1-theme-switch::after {
	transform: translateX(18px);
}

/* ---- Dark overrides ---- */
.c1-dark .c1-nav {
	background: #1e293b;
	border-bottom-color: #334155;
}

.c1-dark .c1-nav-brand { color: #e2e8f0; }
.c1-dark .c1-nav-brand:hover { color: #e2e8f0; }

.c1-dark .c1-nav-links a { color: rgba(255,255,255,0.5); }
.c1-dark .c1-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.c1-dark .c1-right { background: #0f172a; }

.c1-dark .c1-sidebar {
	background: #0f172a;
	border-right-color: #1e293b;
}

.c1-dark .c1-sidebar-header { border-bottom-color: #1e293b; }
.c1-dark .c1-sidebar-header-label { color: #64748b; }

.c1-dark .c1-section { border-top-color: #1e293b; }
.c1-dark .c1-section-toggle { color: #64748b; }
.c1-dark .c1-section-toggle:hover { color: #e2e8f0; }

.c1-dark .c1-section label { color: #94a3b8; }
.c1-dark .c1-section label:hover { color: #e2e8f0; }
.c1-dark .c1-section label span { color: #475569; }

.c1-dark .c1-section input[type="checkbox"] {
	background: #1e293b;
	border-color: #475569;
}

.c1-dark .c1-sidebar-toggle { background: #1e293b; color: #94a3b8; }
.c1-dark .c1-sidebar-toggle:hover { background: #334155; color: #e2e8f0; }
.c1-dark.sidebar-hidden .c1-sidebar-toggle {
	background: #1e293b;
	border-color: #334155;
}
.c1-dark.sidebar-hidden .c1-sidebar-toggle:hover {
	background: #334155;
	color: #e2e8f0;
	border-color: #475569;
}

.c1-dark .c1-year-range-rail { background: #334155; }
.c1-dark .c1-year-range-labels { color: #94a3b8; }

.c1-dark .c1-main {
	background: #1e293b;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.c1-dark .c1-search input {
	background: #0f172a;
	border-color: #334155;
	color: #e2e8f0;
}

.c1-dark .c1-search input::placeholder { color: #475569; }
.c1-dark .c1-search input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.c1-dark .c1-count { color: #64748b; }

.c1-dark .c1-chip {
	background: rgba(59,130,246,0.15);
	color: #93c5fd;
}
.c1-dark .c1-chip:hover { background: rgba(59,130,246,0.25); }

.c1-dark .c1-view-toggle { background: #0f172a; }
.c1-dark .c1-vbtn { color: #64748b; }
.c1-dark .c1-vbtn.active {
	background: #334155;
	color: #e2e8f0;
	box-shadow: none;
}

.c1-dark .c1-toolbar { border-bottom-color: #334155; }

.c1-dark .c1-list-item { border-bottom-color: #334155; }
.c1-dark .c1-list-item:first-child { border-top-color: #334155; }
.c1-dark .c1-list-item:hover { background: rgba(255,255,255,0.03); }
.c1-dark .c1-item-name { color: #e2e8f0; }
.c1-dark .c1-item-div { color: #94a3b8; }
.c1-dark .c1-badge { color: #94a3b8; }
.c1-dark .c1-item-year { color: #64748b; }

.c1-dark .c1-card {
	background: #1e293b;
	border-color: #334155;
}
.c1-dark .c1-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.c1-dark .c1-card-thumb { background: linear-gradient(135deg, #1e293b, #334155); }
.c1-dark .c1-card-title { color: #e2e8f0; }
.c1-dark .c1-card-year { color: #64748b; }

.c1-dark .c1-theme-toggle-label { color: #64748b; }
