/**
 * MainLayout Styles
 */

.mainLayout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg-primary, #ffffff);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 280px;
  min-width: 280px;
  height: 100%;
  background: var(--surface-color, #f8f9fa);
  border-right: 1px solid var(--border-color, #e0e0e0);
  overflow: visible;
}

/* Logo */
.logoContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.logoImage {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logoText {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logoPower {
  color: var(--text-primary, #1a1a1a);
}

.logoOn {
  color: var(--primary-color, #2563eb);
}

/* Navigation */
.navigation {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
}

.loadingNav,
.errorNav {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary, #666);
  font-size: 0.875rem;
}

.errorNav {
  color: var(--error-color, #dc2626);
}

/* User Section */
.userSection {
  padding: 1rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
  flex-shrink: 0;
}

/* Content */
.content {
  flex: 1;
  overflow: auto;
  background: var(--bg-primary, #ffffff);
}

/* Dark Theme */
:global(.dark-theme) .mainLayout {
  background: var(--bg-dark, #0a0a0a);
}

:global(.dark-theme) .sidebar {
  background: var(--surface-dark, #1a1a1a);
  border-right-color: var(--border-dark, #333);
}

:global(.dark-theme) .logoContainer {
  border-bottom-color: var(--border-dark, #333);
}

:global(.dark-theme) .logoImage {
  filter: brightness(0) invert(1);
}

:global(.dark-theme) .logoPower {
  color: var(--text-primary-dark, #ffffff);
}

:global(.dark-theme) .userSection {
  border-top-color: var(--border-dark, #333);
}

:global(.dark-theme) .content {
  background: var(--bg-dark, #0a0a0a);
}

/* Scrollbar Styling */
.navigation::-webkit-scrollbar {
  width: 6px;
}

.navigation::-webkit-scrollbar-track {
  background: transparent;
}

.navigation::-webkit-scrollbar-thumb {
  background: var(--border-color, #d0d0d0);
  border-radius: 3px;
}

.navigation::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary, #888);
}

:global(.dark-theme) .navigation::-webkit-scrollbar-thumb {
  background: var(--border-dark, #444);
}

:global(.dark-theme) .navigation::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary-dark, #666);
}
