:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel2: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);

  --sidebar-width: 280px;
  --radius: 16px;
  
}

.main {
  flex: 1;
  padding: 40px;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  margin-left: calc(var(--sidebar-width) - 110px);
}

.centered-body .main {
flex: 1;
  padding: 40px;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
}

/* Sidebar styles */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 240px;
	height: 100vh;
  --a1: rgba(7, 110, 170, 0.78); 
--a2: rgba(16, 43, 85, 0.65);   
	background:
    radial-gradient(600px 320px at 15% 15%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(700px 380px at 85% 35%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, var(--a1), var(--a2));
	color: white;
	padding: 20px;
	box-sizing: border-box;
	transition: width 0.3s ease;
	overflow: hidden;
	z-index: 1000;
}

.sidebar.collapsed {
	width: 70px;
}

.sidebar.collapsed ~ .main {
	margin-left: 70px;
}

.sidebar .toggle-btn {
	font-size: 20px;
	cursor: pointer;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
}

.sidebar h1 {
	font-size: 24px;
	margin-bottom: 40px;
	transition: opacity 0.3s ease;
}

.sidebar.collapsed h1,
.sidebar.collapsed .label {
	opacity: 0;
	pointer-events: none;

}


/* Labels + emphasis */
.label {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}


.nav-link {
	display: flex;
	align-items: center;
	color: white;
	text-decoration: none;
	margin-bottom: 20px;
	font-weight: bold;
	transition: opacity 0.2s ease;
}

.nav-link:hover {
	opacity: 0.8;
}

.nav-link i {
	font-size: 18px;
	width: 24px;
	text-align: center;
}

.tab-nav {
	display: flex; 
	border-bottom: 2px solid #ddd; 
	margin-bottom: 20px;  
	max-width: 1040px;
	margin: auto;
}


.nav-link .label {
  margin-left: 20px;
}

/* Logo fits + centered */
.sidebar-logo {
  display: block;
  width: 100%;
  max-width: 150px;          /* keeps it inside sidebar */
  height: auto;
  margin: 6px auto 14px;
  object-fit: contain;
}

/* Optional: logo container divider (if you wrap it) */
.sidebar__brand {
  display: flex;
  justify-content: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}



/* ===== Folder-style tabs ===== */

.tabs {
  display: flex;
  gap: 4px;
  padding-left: 6px;
  border-bottom: 2px solid var(--border);
}

/* Individual tab */
.tab {
  position: relative;
  appearance: none;
  border: 1px solid var(--border);
  border-bottom: none;

  padding: 10px 18px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);

  background: #f3f4f6;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  cursor: pointer;
  text-decoration: none;

  transition: background 140ms ease, color 140ms ease;
}

/* Hover (inactive tabs) */
.tab:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Active tab (folder front) */
.tab.active {
  background: #ffffff;
  color: #111827;
  z-index: 2;
}

/* Create the illusion that the tab connects to content */
.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: #ffffff;
}
