/* Modern Sidebar Styles */

.modern-sidebar-desktop {
  height: 100vh;
  padding: 1rem;
  display: none;
  flex-direction: column;
  background: var(--sidebar-bg, #f5f5f5);
  border-right: 1px solid var(--border-color, #e0e0e0);
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.3s ease;
}

@media (min-width: 768px) {
  .modern-sidebar-desktop {
    display: flex;
  }
}

/* Mobile Sidebar */
.modern-sidebar-mobile-header {
  height: 60px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sidebar-bg, #f5f5f5);
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  width: 100%;
}

@media (min-width: 768px) {
  .modern-sidebar-mobile-header {
    display: none;
  }
}

.modern-sidebar-mobile-toggle {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  cursor: pointer;
  color: var(--text-color, #333);
}

.modern-sidebar-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.modern-sidebar-mobile-menu {
  position: fixed;
  height: 100vh;
  width: 100%;
  inset: 0;
  background: var(--sidebar-bg, #fff);
  padding: 2.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modern-sidebar-mobile-close {
  position: absolute;
  right: 2.5rem;
  top: 2.5rem;
  z-index: 50;
  cursor: pointer;
  color: var(--text-color, #333);
}

.modern-sidebar-mobile-close svg {
  width: 24px;
  height: 24px;
}

/* Sidebar Link */
.modern-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  color: var(--text-color, #333);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modern-sidebar-link:hover {
  background: var(--hover-bg, rgba(0, 0, 0, 0.05));
  transform: translateX(2px);
}

.modern-sidebar-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modern-sidebar-link-icon svg {
  width: 20px;
  height: 20px;
}

.modern-sidebar-link-label {
  font-size: 0.875rem;
  white-space: pre;
  margin: 0;
  padding: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .modern-sidebar-desktop,
  .modern-sidebar-mobile-header,
  .modern-sidebar-mobile-menu {
    background: var(--dark-sidebar-bg, #1a1a1a);
    border-color: var(--dark-border-color, #333);
  }
  
  .modern-sidebar-link {
    color: var(--dark-text-color, #e0e0e0);
  }
  
  .modern-sidebar-link:hover {
    background: var(--dark-hover-bg, rgba(255, 255, 255, 0.1));
  }
  
  .modern-sidebar-mobile-toggle,
  .modern-sidebar-mobile-close {
    color: var(--dark-text-color, #e0e0e0);
  }
}

