:root {
  --sidebar-width: 240px;
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
  --surface: #f5f7fb;
}

body {
  background: var(--surface);
  min-height: 100vh;
}

body.no-sidebar {
  display: flex;
  flex-direction: column;
}

#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

#sidebar .nav-link {
  border-radius: 0.5rem;
  margin-bottom: 0.15rem;
  padding: 0.65rem 0.85rem;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

#page-content {
  min-width: 0;
}

.stat-card {
  border: 0;
  border-radius: 0.85rem;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}

.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  background: linear-gradient(135deg, #0b1220 0%, #1e3a5f 55%, #2563eb 100%);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: #e7f0ff;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.card-soft {
  border: 0;
  border-radius: 0.85rem;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.auth-card {
  max-width: 440px;
  margin: 3rem auto;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

@media (max-width: 991.98px) {
  #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  #sidebar.show {
    transform: translateX(0);
  }
}
