/* Enhanced Sidebar Navigation with Vibrant Colors */
.sidebar {
  background: linear-gradient(135deg, #0c1e25, #1a2e38, #243d4a);
  color: white;
  padding: 1.5rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-left: 4px solid #4e73df;
  height: calc(100vh - 120px); /* Set fixed height */
  overflow-y: auto; /* Enable vertical scrolling */
  scrollbar-width: thin; /* For Firefox */
}

.sidebar-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffde7d;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  padding: 0 0.5rem; /* Added padding to align with items */
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0; /* Remove default margin */
}

.sidebar-menu li {
  margin-bottom: 0.3rem;
  
}

.sidebar-menu a {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
  background: linear-gradient(90deg, rgba(78, 115, 223, 0.8), rgba(34, 74, 190, 0.9));
  color: #fff;
  transform: translateX(8px);
  box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
  border-left: 3px solid #ffde7d;
}

.sidebar-menu a:hover::before,
.sidebar-menu li.active a::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ffde7d;
  border-radius: 50%;
}

.sidebar-submenu {
  margin-top: 0.4rem;
  padding-left: 1.5rem;
  border-left: 2px dashed rgba(255, 222, 125, 0.3);
}

.sidebar-submenu a {
  font-size: 0.85rem;
  background: rgba(30, 60, 90, 0.4);
  padding: 0.4rem 0.8rem; /* Reduced padding */
  margin-bottom: 0.5rem;
}

.sidebar-submenu a:hover {
  background: rgba(78, 115, 223, 0.6);
  color: #ffde7d;
  transform: translateX(5px);
}

/* Add subtle animation to menu items */
@keyframes menuItemFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.sidebar-menu li {
  animation: menuItemFadeIn 0.4s ease forwards;
  opacity: 0;
}

.sidebar-menu li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-menu li:nth-child(2) { animation-delay: 0.2s; }
.sidebar-menu li:nth-child(3) { animation-delay: 0.3s; }
.sidebar-menu li:nth-child(4) { animation-delay: 0.4s; }
.sidebar-menu li:nth-child(5) { animation-delay: 0.5s; }


/* Content Section Transitions */
.content-area {
  position: relative;
  min-height: 80vh;
}

.content-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-section.active {
  display: block;
  opacity: 1;
  animation: fadeInLeft 0.5s ease forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}