/* ==========================================================================
   Lex Advisor — Custom Styles
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #212529;
  overflow-y: auto;
  z-index: 1040;
  transition: transform 0.3s ease;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.55rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
}

.sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------------------
   Main content
   --------------------------------------------------------------------------- */

.main-content {
  margin-left: 250px;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.topbar {
  height: 56px;
}

/* ---------------------------------------------------------------------------
   Login page
   --------------------------------------------------------------------------- */

.login-page {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

/* ---------------------------------------------------------------------------
   Sidebar overlay (mobile)
   --------------------------------------------------------------------------- */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1030;
}

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

/* ---------------------------------------------------------------------------
   Responsive: collapse sidebar on screens < 992px
   --------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}
