.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 200px;
	height: 100vh;
	background: rgba(0, 174, 255, 0.85); /* transparan glass effect */
	backdrop-filter: blur(10px);
	color: #fff;
	transition: width 0.3s ease, background-color 0.3s ease;
	z-index: 1000;
	overflow-x: hidden;
	box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	color: #e0e0e0;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
	border-radius: 8px;
	margin: 6px 10px;
}

.sidebar a i {
	font-size: 18px;
}

.sidebar a:hover {
	background-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	transform: translateX(4px);
	box-shadow: inset 1px 1px 4px rgba(255,255,255,0.05);
}

.sidebar a.active {
	background-color: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	box-shadow: inset 0 0 6px rgba(255,255,255,0.2);
}

.sidebar .sidebar-brand {
	font-size: 1.2rem;
	font-weight: 700;
	text-align: center;
	padding: 20px 0;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.sidebar .sidebar-brand i {
	font-size: 1.6rem;
}

.sidebar .sidebar-divider {
	height: 1px;
	background-color: rgba(255, 255, 255, 0.15);
	margin: 16px 0;
}

.sidebar.collapsed {
	width: 80px;
}

.sidebar.collapsed a {
	justify-content: center;
	padding: 10px;
}

.sidebar.collapsed span,
.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-heading {
	display: none !important;
}

.sidebar.collapsed .sidebar-brand {
	justify-content: center;
}

/* Content Wrapper */
#content-wrapper {
	margin-left: 200px;
	transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ #content-wrapper {
	margin-left: 80px;
}

/* Toggle Button */
#sidebarToggle {
	background-color: rgba(255, 255, 255, 0.1);
	border: none;
	cursor: pointer;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: auto;
}

#sidebarToggle i {
	font-size: 20px;
	color: #ffffff;
}

#sidebarToggle:hover {
	transform: scale(1.1);
	background-color: rgba(255, 255, 255, 0.2);
}

/* Normal sidebar aktif (width 200px) */
#wrapper {
  display: flex;
}

/* Content ketika sidebar tampil */
#content-wrapper {
  margin-left: 200px;
  width: calc(100% - 200px);
}

/* Ketika sidebar di-collapse */
#wrapper.sidebar-collapsed #content-wrapper {
  margin-left: 80px;
  width: calc(100% - 80px);
}

/* Tambahan untuk transisi halus */
#content-wrapper {
  transition: margin-left 0.3s ease, width 0.3s ease;
}
