.side-navigation {
  position: fixed;
  left: 0;
  top: 70px; /* Height of header */
  height: calc(100vh - 70px);
  width: 250px;
  background: linear-gradient(180deg, #500707 0%, #2e0303 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  z-index: 50;
  overflow: hidden;
}

.side-navigation.collapsed {
  width: 70px;
}

/* Navigation Header */
.nav-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand-area {
  flex: 1;
  display: flex;
  align-items: center;
}

.brand-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #e7c6c6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.collapse-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.collapse-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.collapse-btn svg {
  transition: all 0.2s ease;
}

/* Navigation Content */
.nav-content {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  position: relative;
}

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

.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-right: 3px solid #800000;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #800000;
}

.nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  background: #e7c6c6;
  color: rgb(73, 14, 14);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Navigation Footer */
.nav-footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 1rem;
}

/* Collapsed State Adjustments */
.side-navigation.collapsed .nav-link {
  justify-content: center;
  padding: 0.75rem;
}

.side-navigation.collapsed .nav-label,
.side-navigation.collapsed .nav-badge {
  display: none;
}

.side-navigation.collapsed .nav-header {
  justify-content: center;
  padding: 1rem 0.5rem;
}

/* Scrollbar Styling */
.nav-content::-webkit-scrollbar {
  width: 4px;
}

.nav-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.nav-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.nav-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .side-navigation {
    top: 60px; /* Adjusted header height for mobile */
    height: calc(100vh - 60px);
    width: 70px; /* Always collapsed on mobile */
  }
  
  .side-navigation .nav-label,
  .side-navigation .nav-badge {
    display: none;
  }
  
  .side-navigation .nav-link {
    justify-content: center;
    padding: 0.75rem;
  }
  
  .side-navigation .nav-header {
    display: none; /* Hide collapse button on mobile */
  }
  
  .side-navigation .nav-content {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .side-navigation {
    width: 60px;
  }
  
  .nav-link {
    padding: 0.625rem;
  }
}

/* Tooltip for collapsed state */
.side-navigation.collapsed .nav-link[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.side-navigation.collapsed .nav-link[title]:hover::before {
  content: '';
  position: absolute;
  left: calc(100% + 0.25rem);
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-right-color: #1f2937;
  z-index: 1000;
}
