/* FILE: public/css/sidebar-nav.css
 *
 * Shared layout for the persistent left sidebar nav, used on every
 * logged-in broker and dealer page. Linked (not duplicated per-page)
 * so the visual design only has to be correct in one place - the same
 * reasoning as ledger-fonts.css being a shared stylesheet already.
 *
 * Text-only by design - no icons, matching the rest of this app's
 * minimal aesthetic rather than the icon-heavy reference screenshot
 * this was modeled on.
 */

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #171A38;
  border-right: 1px solid #2E3258;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 19px;
  color: #F6F2E6;
  text-decoration: none;
  padding: 0 22px 22px;
  border-bottom: 1px solid #2E3258;
  margin-bottom: 12px;
  display: block;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A93B8;
  text-decoration: none;
  padding: 12px 22px;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: #0F1229;
  background: #B08D3E;
  border-radius: 10px;
  padding: 1px 7px;
  line-height: 1.5;
  flex-shrink: 0;
}

.sidebar-link:hover {
  color: #F6F2E6;
  background: #1B1F44;
}

.sidebar-link.active {
  color: #B08D3E;
  border-left-color: #B08D3E;
  background: #1B1F44;
  font-weight: 600;
}

.sidebar-logout {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: #9CA2CC;
  text-decoration: none;
  padding: 14px 22px 0;
  margin-top: 12px;
  border-top: 1px solid #2E3258;
}

.sidebar-logout:hover {
  color: #F6F2E6;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 0 28px;
}

/* Slim top bar - hidden on desktop, only shown on mobile where the
   full sidebar collapses into a slide-out drawer. */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #2E3258;
  background: #0F1229;
}

.hamburger-btn {
  background: transparent;
  border: 1px solid #4A4E6E;
  color: #F6F2E6;
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 30, 0.72);
  z-index: 149;
}

.sidebar-overlay.open {
  display: block;
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }
  .mobile-topbar {
    display: flex;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    padding: 0 18px;
  }
}
