
:root {
	--sidebar-width: 260px;
	--sidebar-collapsed-width: 70px;
	
	
	
	
	
	
	--transition-speed: 0.3s;
	
	
}

/* ── Light mode ──────────────────────────────── */
[data-mode="light"] {
	--bg-main: #f7f7f7;
	--bg-panel: #e5e5e5;
	--border-color: #ccc;
	--text-main: #333;
	--text-muted: #666;
	--nav-link-active-bg: #f2f2f2;
	--nav-link-hover-bg: #e0e0e0;
	--hero-section: linear-gradient(145deg, #fff 0%, #f0f0f0 100% 100%);
}

/* ── Dark mode ───────────────────────────────── */
[data-mode="dark"] {
	--bg-main: #0a0a0a;
	--bg-panel: #141414;
	--border-color: #2a2a2a;
	--text-main: #ffffff;
	--text-muted: #888888;
	--nav-link-active-bg: #2d2d2d;
	--nav-link-hover-bg: #202020;
	--hero-section: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
}

/* ── Accent / primary color variaties ────────── */
[data-accent="green"] {	
	--accent-color: #198754;	/* Green */
	--accent-color2: #1ea164;
}

[data-accent="orange"] {	
	--accent-color: #ff6c00;	/* Orange */
	--accent-color2: #ff7300;
}

[data-accent="blue"] {	
	--accent-color: #0d6efd;	/* Blue */
	--accent-color2: #227bff;
}

[data-accent="cherry"] {	
	--accent-color: #dc3545;	/* Cherry */
	--accent-color2: #d73e4d;
}

[data-accent="teal"] {
	--accent-color: #0dcaf0;	/* Teal */
	--accent-color2: #1bd6fb;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--bg-main);
	color: var(--text-main);
	overflow-x: hidden;
	margin: 0;
}

/* ── Theme Switch start ──────── */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 3.4em;          /* totale breedte */
  height: 1.9em;         /* hoogte */
  font-size: 18px;       /* schaal mee → groter = alles groter */
  cursor: pointer;
  user-select: none;
}

.theme-switch__input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Track = achtergrondbalk */
.theme-switch__track {
  position: absolute;
  inset: 0;
  background: var(--bg-main);          /* light mode */
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5em;
  box-sizing: border-box;
  transition: background 0.4s ease;
  overflow: hidden;
}

[data-mode="dark"] .theme-switch__track {
  background: var(--bg-main);          /* dark mode */
}

/* Vaste iconen op de track (altijd zichtbaar, maar dim) */
.theme-switch__track .theme-switch__icon {
  font-size: 1.1em;
  transition: opacity 0.4s ease;
}

.theme-switch__icon--sun { color: #f59e0b; }
.theme-switch__icon--moon { color: #60a5fa; }

[data-mode="light"] .theme-switch__icon--sun { opacity: 0.9; }
[data-mode="light"] .theme-switch__icon--moon { opacity: 0.35; }
[data-mode="dark"]  .theme-switch__icon--sun { opacity: 0.35; }
[data-mode="dark"]  .theme-switch__icon--moon { opacity: 0.9; }

/* Slider = bewegende bol */
.theme-switch__slider {
  position: absolute;
  top: 0.225em;
  left: 0.225em;
  width: 1.45em;
  height: 1.45em;
  background: var(--accent-color, #3b82f6); /* jouw accent kleur */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Slider iconen – maar slechts één is zichtbaar tegelijk */
.theme-switch__slider-icon {
  font-size: 0.95em;
  color: white;
  position: absolute;
  transition: opacity 0.3s ease;
}

.theme-switch__slider-icon--sun { opacity: 1; }
.theme-switch__slider-icon--moon { opacity: 0; }

[data-mode="dark"] .theme-switch__slider-icon--sun  { opacity: 0; }
[data-mode="dark"] .theme-switch__slider-icon--moon { opacity: 1; }

/* Beweging van de slider */
.theme-switch__input:checked ~ .theme-switch__slider {
  transform: translateX(1.5em);   /* pas eventueel aan: 1.5em = iets meer ruimte */
}
/* ── Theme Switch einde ────────── */

/* ── Color Picker Start ────────── */
.accent-picker {
	display: flex;
	justify-content: center;
    align-items: center;
	gap: 12px;
}

.accent-btn {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s;
}

.accent-btn.green  	{ background: #198754; }
.accent-btn.orange 	{ background: #ff6c00; }
.accent-btn.blue    { background: #0d6efd; }
.accent-btn.cherry  { background: #dc3545; }
.accent-btn.teal 	{ background: #0dcaf0; }

.accent-btn.active,
.accent-btn:hover {
	border-color: white !important;
	box-shadow: 0 0 0 4px rgba(0,0,0,0.15);
	transform: scale(1.15);
}
/* ── Color Picker End ────────── */

#sidebar.collapsed .themablok {
	opacity: 0;
	pointer-events: none;
	display: none;
}

/* --- Sidebar Styles --- */
#sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: var(--sidebar-width);
	background-color: var(--bg-panel);
	border-right: 1px solid var(--border-color);
	transition: width var(--transition-speed) ease;
	z-index: 1100;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#sidebar.collapsed {
	width: var(--sidebar-collapsed-width);
}

.sidebar-header {
	height: 70px;
	display: flex;
	align-items: center;
	padding: 0 20px;
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition-speed);
}

#sidebar:not(.collapsed) .sidebar-header {
	border-bottom: 1px solid var(--border-color);
}

.logo-container {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text-main);
	white-space: nowrap;
	overflow: hidden;
}

.logo-icon {
	color: var(--accent-color);
	font-size: 1.5rem;
}

#sidebar.collapsed .logo-icon {
	opacity: 0;
	pointer-events: none;
	display: none;
}

.logo-text {
	font-weight: 700;
	font-size: 1.1rem;
	opacity: 1;
	transition: opacity 0.2s;
}

#sidebar.collapsed .logo-text {
	opacity: 0;
	pointer-events: none;
	display: none;
}

.sidebar-nav {
	flex-grow: 1;
	padding: 20px 10px;
	overflow-y: auto;
}

.nav-link {
	display: flex;
	align-items: center;
	color: var(--text-muted);
	padding: 12px 15px;
	margin-bottom: 5px;
	border-radius: 8px;
	transition: all 0.2s;
	text-decoration: none;
	white-space: nowrap;
}

.nav-link:hover {
	background-color: var(--nav-link-hover-bg);
	color: var(--text-main);
}

.nav-link.active {
	background-color: var(--nav-link-active-bg);
	color: var(--accent-color);
}

.nav-link i {
	font-size: 1.2rem;
	min-width: 24px;
	text-align: center;
	margin-right: 12px;
}

#sidebar.collapsed .nav-link span {
	opacity: 0;
	display: none;
}

#sidebar.collapsed .nav-link {
	justify-content: center;
	padding: 12px 0;
}

#sidebar.collapsed .nav-link i {
	margin-right: 0;
}

.sidebar-footer {
	padding: 15px;
	border-top: 1px solid var(--border-color);
}

.user-menu-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: var(--bg-panel);
	border: 1px solid var(--border-color);
	color: var(--text-main);
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
	overflow: hidden;
}

.user-menu-btn:hover {
	background-color: var(--nav-link-hover-bg);
}

.user-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: var(--accent-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: bold;
	flex-shrink: 0;
}

.user-info {
	margin-left: 10px;
	display: flex;
	flex-direction: column;
	transition: opacity 0.2s;
}

#sidebar.collapsed .user-info {
	opacity: 0;
	display: none;
}

#sidebar.collapsed .user-menu-btn {
	justify-content: center;
	padding: 8px 0;
	border: none;
	background: transparent;
}

#sidebar.collapsed .user-menu-btn:hover {
	background: rgba(255,255,255,0.1);
}

.sidebar-toggle {
	position: absolute;
	top: 20px;
	right: 15px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	transition: all 0.2s;
}

.sidebar-toggle:hover {
	background-color: rgba(255,255,255,0.1);
	color: white;
}

#sidebar.collapsed .sidebar-toggle {
	right: 50%;
	transform: translateX(50%);
	top: 15px;
}

/* --- User Menu Dropdown --- */
.user-menu-wrapper {
	position: relative;
	width: 100%;
}

/* User Menu Dropdown: always open upward (above the button) */
.user-menu-dropdown {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	right: 0;
	background-color: var(--bg-panel);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.2s ease;
	z-index: 1101; /* above sidebar and main content */
	display: block !important; /* allow controlled visibility via classes */
}

.user-menu-dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* When collapsed: fit dropdown inside the collapsed sidebar and show only icons */
#sidebar.collapsed .user-menu-dropdown {
	left: 0;
	right: 0;
	width: 100%;
	/* Leave a small gutter so it doesn't touch the bottom of the button */
	max-width: calc(var(--sidebar-collapsed-width) - 10px);
	margin-bottom: 0;
}

/* Hide text in collapsed mode for dropdown items */
#sidebar.collapsed .user-menu-dropdown .dropdown-item span {
	display: none;
}

.user-menu-dropdown .dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	color: var(--text-muted);
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s;
	white-space: nowrap;
	cursor: pointer;
}

#sidebar.collapsed .user-menu-dropdown .dropdown-item {
	padding: 10px 3px !important;
}

.user-menu-dropdown .dropdown-item:hover {
	background-color: var(--nav-link-hover-bg);
	color: var(--text-main);
}

.user-menu-dropdown .dropdown-item i {
	font-size: 1rem;
	min-width: 18px;
}

.user-menu-dropdown .dropdown-divider {
	border-color: var(--border-color);
	margin: 8px 0;
	border-top: 1px solid;
}

/* --- Main Content Styles --- */
#content {
	margin-left: var(--sidebar-width);
	transition: margin-left var(--transition-speed) ease;
	min-height: 100vh;
	padding: 40px;
	position: relative;
	z-index: 1; /* below the sidebar/dropdown */
}

#sidebar.collapsed ~ #content {
	margin-left: var(--sidebar-collapsed-width);
}

.content-container {
	max-width: 1200px;
	margin: 0 auto;
}

.hero-section {
	background: var(--hero-section);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 60px 40px;
	text-align: center;
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.hero-title {
	color: var(--text-main);
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(to right, #fff, #aaa);
	-webkit-background-clip: text;
	-webkit-text-fill-color: #00000026;
}

.hero-subtitle {
	color: var(--text-muted);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto 2rem auto;
	line-height: 1.6;
}

.btn-primary-custom {
	background-color: var(--accent-color);
	border: none;
	color: white;
	padding: 12px 30px;
	border-radius: 8px;
	font-weight: 600;
	transition: transform 0.2s, background-color 0.2s;
}

.btn-primary-custom:hover {
	background-color: var(--accent-color2);
	transform: translateY(-2px);
	color: white;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.feature-card {
	background-color: var(--bg-panel);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 25px;
	transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
	border-color: var(--accent-color);
	transform: translateY(-5px);
}

.feature-icon {
	font-size: 1.5rem;
	color: var(--accent-color);
	margin-bottom: 15px;
}

.feature-title {
	font-weight: 600;
	margin-bottom: 10px;
	font-size: 1.1rem;
}

.feature-desc {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.tooltip-inner {
	background-color: #333;
	color: white;
	font-size: 0.8rem;
}
.tooltip-arrow::before {
	border-top-color: #333;
}

@media (max-width: 768px) {
	#sidebar {
		transform: translateX(-100%);
		width: var(--sidebar-width);
	}
	#sidebar.mobile-open {
		transform: translateX(0);
	}
	#content {
		margin-left: 0;
	}
	.sidebar-toggle {
		display: none;
	}
	.mobile-sidebar-trigger {
		display: block;
		position: fixed;
		top: 20px;
		left: 20px;
		z-index: 999;
		background: var(--bg-panel);
		border: 1px solid var(--border-color);
		color: white;
		padding: 8px;
		border-radius: 6px;
	}
}
@media (min-width: 769px) {
	.mobile-sidebar-trigger {
		display: none;
	}
}
		