/**
 * Clean Dashboard Sidebar - Simplified styling
 * Consistent styling for dashboard sidebar
 */

/* Base sidebar structure */
.dashboard-sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  height: calc(100vh - 70px);
  width: 250px;
  background-color: var(--sidebar-bg, #1e2130);
  border-right: 1px solid var(--border-color, #2a2f42);
  z-index: 998;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.dashboard-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 15px 0;
}

/* Navigation section styling */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-section {
  margin-bottom: 25px;
}

.nav-section-title {
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 0 20px;
  margin-bottom: 10px;
}

/* Navigation items */
.sidebar-nav .nav-item {
  margin-bottom: 2px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--nav-text, #94a3b8);
  border-radius: 0;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  font-size: 14px;
  text-decoration: none;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background-color: var(--nav-hover-bg, #252a3d);
  color: var(--nav-active-text, #fff);
}

.sidebar-nav .nav-link.active {
  border-left: 3px solid var(--primary, #6366f1);
}

/* Navigation icons and badges */
.sidebar-nav .nav-icon {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  color: var(--nav-icon, #94a3b8);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav .nav-link:hover .nav-icon,
.sidebar-nav .nav-link.active .nav-icon {
  color: var(--primary, #6366f1);
}

.sidebar-nav .nav-badge {
  position: absolute;
  right: 15px;
  background-color: var(--primary, #6366f1);
  color: white;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar footer with logout button */
.sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color, #2a2f42);
}

.btn-theme-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background-color: var(--btn-bg, #252a3d);
  color: var(--btn-text, #e2e8f0);
  border: 1px solid var(--border-color, #2a2f42);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-theme-logout:hover {
  background-color: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
  color: white;
}

/* Mobile sidebar toggle */
.dashboard-sidebar-toggler {
  display: none;
}

/* Theme variables */
body.theme-dark {
  --sidebar-bg: #1e2130;
  --border-color: #2a2f42;
  --nav-text: #94a3b8;
  --nav-active-text: #fff;
  --nav-hover-bg: #252a3d;
  --nav-icon: #94a3b8;
  --text-muted: #64748b;
  --primary: #6366f1;
  --btn-bg: #252a3d;
  --btn-text: #e2e8f0;
}

body.theme-light {
  --sidebar-bg: #ffffff;
  --border-color: #e2e8f0;
  --nav-text: #64748b;
  --nav-active-text: #1e293b;
  --nav-hover-bg: #f1f5f9;
  --nav-icon: #64748b;
  --text-muted: #64748b;
  --primary: #6366f1;
  --btn-bg: #f1f5f9;
  --btn-text: #1e293b;
}

/* Media queries for mobile responsiveness */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }
  
  .dashboard-sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  }
  
  .dashboard-sidebar-toggler {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
  }
}