body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Profile Section */
.profile-section {
  text-align: center;
  padding: 30px 20px;
  flex-shrink: 0;
  background-color: var(--theme-color1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: .2rem solid var(--theme-color2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.profile-section h3 {
  margin: 10px 0 5px;
  font-size: 1.5rem;
  color: var(--theme-color2);
}

.profile-section p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}


/* Sidebar Styles */
.sidebar {
  height: 100vh;
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--theme-color1);
  color: white;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 1050; /* Higher than navbar */
  border-right: 0.1rem solid snow;
}

.sidebar.collapsed {
  transform: translateX(-250px);
}

.profile-section {
  text-align: center;
  padding: 20px;
  flex-shrink: 0;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.sidebar-links {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px 0;
  margin-left: 2rem;
  height: calc(100vh - 200px); /* Adjust height based on your layout */
  scroll-behavior: smooth; /* Smooth scrolling */
}

.sidebar-nav {
  list-style: none; /* Remove bullet points */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}


/* Sidebar Links Section */
.sidebar-links {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 0;
  margin-left: 1rem;
  height: calc(100vh - 250px); /* Adjust height based on your layout */
  scroll-behavior: smooth; /* Smooth scrolling */
}

.sidebar-nav {
  list-style: none; /* Remove bullet points */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

.sidebar a {
  padding: 12px 20px;
  text-decoration: none;
  font-size: 16px;
  color: white;
  display: block;
  transition: 0.3s;
  border-radius: 8px;
  margin: 5px 10px;
  display: flex;
  align-items: center;
}

.sidebar a:hover {
  background-color: var(--theme-color2);
  color: #343a40 !important;
  transform: translateX(-10px); /* Move the link 10px to the left */
}

.sidebar a.active {
  background-color: var(--theme-color2);
  color: #343a40 !important;
  font-weight: bold;
}

.sidebar a i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Logout Link */
.logout-link {
  flex-shrink: 0;
  text-align: center;
  padding: 15px;
  background-color: var(--theme-color3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
/* Content Styles */
.content {
  margin-left: 250px;
  /* padding: 20px; */
  transition: margin-left 0.3s ease;
}

.content.collapsed {
  margin-left: 0;
}

/* Navbar Toggler Styles */
.navbar-toggler {
  background-color: var(--theme-color1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0.5rem 0.5rem 0.5rem;
  border-radius: 0.25rem;
  float: left;
  margin-bottom: 20px;
}

/* Custom Sidebar Toggler Icon */
.sidebar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 24px;
  height: 24px;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Rotate the icon when sidebar is collapsed */
.sidebar.collapsed + .content .sidebar-toggler-icon {
  transform: rotate(180deg);
}

/* Overlay Styles */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  backdrop-filter: blur(5px); /* Glass effect */
  z-index: 1040; /* Below sidebar but above navbar */
}

.overlay.active {
  display: block; /* Show overlay when active */
}



/* Custom Scrollbar for Sidebar Links */
.sidebar-links::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

.sidebar-links::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1); /* Transparent track */
  border-radius: 10px; /* Rounded corners */
}

.sidebar-links::-webkit-scrollbar-thumb {
  background: var(--theme-color2); /* Scrollbar thumb color */
  border-radius: 10px; /* Rounded corners */
  border: 2px solid rgba(255, 255, 255, 0.2); /* Adds a subtle border */
}

.sidebar-links::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 188, 44, 0.8); /* Lighter color on hover */
}

/* For Firefox */
.sidebar-links {
  scrollbar-width: thin; /* Makes the scrollbar thinner */
  scrollbar-color: var(--theme-color2) rgba(255, 255, 255, 0.1); /* Thumb and track color */
}



/* Media Queries for Mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-250px);
    border-right: none;
  }

  .sidebar.collapsed {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
  }
}
