/* Unified Sidebar Component Styles
 * Uses design tokens from grid-system.css
 */

.dw-sidebar-container {
  width: 100%;
  height: 100%;
}

.dw-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--dw-bg-elevated, #0f141c);
  border-right: 1px solid var(--dw-border, #2b3543);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Section */
.dw-sidebar-section {
  border-bottom: 1px solid var(--dw-border, #2b3543);
}

.dw-sidebar-section:last-child {
  border-bottom: none;
}

.dw-sidebar-section-header {
  display: flex;
  align-items: center;
  gap: var(--dw-space-2, 8px);
  padding: var(--dw-space-4, 16px);
  background: var(--dw-bg-elevated, #0f141c);
  border-bottom: 1px solid var(--dw-border, #2b3543);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.dw-sidebar-section-header:hover {
  background: var(--dw-bg-muted, #111821);
}

.dw-sidebar-section-toggle {
  background: none;
  border: none;
  color: var(--dw-text-muted, #9fb0c2);
  cursor: pointer;
  font-size: var(--dw-font-size-xs, 12px);
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.dw-sidebar-section-toggle:hover {
  color: var(--dw-text, #e6edf3);
}

.dw-sidebar-section-title {
  display: flex;
  align-items: center;
  gap: var(--dw-space-2, 8px);
  flex: 1;
  font-size: var(--dw-font-size-md, 14px);
  font-weight: 600;
  color: var(--dw-text, #e6edf3);
}

.dw-sidebar-section-icon {
  font-size: var(--dw-font-size-md, 14px);
  line-height: 1;
}

.dw-sidebar-section-content {
  padding: var(--dw-space-4, 16px);
  color: var(--dw-text, #e6edf3);
}

/* Compact variant */
.dw-sidebar.compact .dw-sidebar-section-header,
.dw-sidebar.compact .dw-sidebar-section-content {
  padding: var(--dw-space-3, 12px);
}

/* Responsive */
@media (max-width: 768px) {
  .dw-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--dw-border, #2b3543);
  }
}

