.sidebar {
  width: var(--mz-sidebar-width, 312px);
  flex: 0 0 var(--mz-sidebar-width, 312px);
  min-height: calc(100vh - 24px);
  margin: 12px 0 12px 12px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(8, 15, 39, 0.98) 0%, rgba(21, 27, 59, 0.96) 48%, rgba(23, 37, 84, 0.98) 100%);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.32);
  border: 1px solid rgba(125, 211, 252, 0.14);
  transition: width 160ms ease, flex-basis 160ms ease;
}

.flex-grow-1 {
  min-width: 0;
  padding-right: 12px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 26%),
    linear-gradient(180deg, #eef4ff 0%, #e8f0ff 52%, #eff7ff 100%);
}

main.container-fluid {
  padding-top: 20px !important;
  padding-bottom: 26px !important;
}

.sidebar .sidebar-brand,
.sidebar .sidebar-nav,
.sidebar .sidebar-footer {
  transition: padding 160ms ease;
}

.sidebar-link {
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, padding 160ms ease;
}

body.sidebar-collapsed .sidebar {
  width: var(--mz-sidebar-collapsed-width, 84px);
  flex: 0 0 var(--mz-sidebar-collapsed-width, 84px);
}

body.sidebar-collapsed .sidebar .brand-title,
body.sidebar-collapsed .sidebar .brand-subtitle,
body.sidebar-collapsed .sidebar .sidebar-user-meta,
body.sidebar-collapsed .sidebar .sidebar-label,
body.sidebar-collapsed .sidebar .sidebar-user-subtitle {
  display: none !important;
}

body.sidebar-collapsed .sidebar .sidebar-brand {
  justify-content: center;
  padding: 14px 10px;
}

body.sidebar-collapsed .sidebar .sidebar-nav {
  padding: 10px 8px;
}

body.sidebar-collapsed .sidebar .sidebar-link {
  justify-content: center;
  gap: 0;
  padding: 10px 10px;
}

body.sidebar-collapsed .sidebar .sidebar-link::before {
  left: 0;
  top: 8px;
  bottom: 8px;
}

body.sidebar-collapsed .sidebar .sidebar-footer {
  padding: 12px 10px;
}

body.sidebar-collapsed .sidebar .sidebar-user {
  justify-content: center;
}

body.sidebar-collapsed .sidebar .btn.sidebar-logout-btn {
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.sidebar-logout-btn i.bi {
  font-size: 16px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin: 12px 0 0;
  border-radius: 24px;
  background: rgba(8, 15, 39, 0.84);
  border: 1px solid rgba(125, 211, 252, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.topbar .btn-outline-secondary {
  border-color: rgba(226, 232, 240, 0.22);
  color: rgba(248, 250, 252, 0.92);
}

.topbar .btn-outline-secondary:hover,
.topbar .btn-outline-secondary:focus {
  background: rgba(226, 232, 240, 0.10);
  border-color: rgba(226, 232, 240, 0.30);
  color: rgba(248, 250, 252, 0.98);
}

.topbar .fw-semibold {
  color: rgba(248, 250, 252, 0.98);
  letter-spacing: 0.2px;
}

.topbar .text-secondary {
  color: rgba(226, 232, 240, 0.72) !important;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(14, 165, 233, 0.2));
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(248, 250, 252, 0.98);
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.70);
}

.sidebar-nav {
  padding: 14px 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(226, 232, 240, 0.86);
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.1;
  font-size: 15px;
  position: relative;
}

.sidebar-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.sidebar-link.active .nav-icon {
  opacity: 1;
}

.sidebar-link:hover {
  background: rgba(125, 211, 252, 0.09);
  color: rgba(248, 250, 252, 0.98);
  border-color: rgba(125, 211, 252, 0.14);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(45, 212, 191, 0.18));
  color: rgba(239, 246, 255, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.34);
  font-weight: 600;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.98);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(125, 211, 252, 0.07);
  border: 1px solid rgba(125, 211, 252, 0.12);
  margin-bottom: 10px;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: rgba(239, 246, 255, 0.95);
  flex: 0 0 auto;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 700;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.96);
  line-height: 1.1;
}

.sidebar-user-subtitle {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.topbar-user {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.10);
  border: 1px solid rgba(226, 232, 240, 0.18);
  color: rgba(248, 250, 252, 0.90);
}

.topbar-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  display: inline-block;
}

.sidebar-footer .btn-outline-secondary {
  border-color: rgba(226, 232, 240, 0.22);
  color: rgba(248, 250, 252, 0.90);
}

.sidebar-footer .btn-outline-secondary:hover,
.sidebar-footer .btn-outline-secondary:focus {
  background: rgba(226, 232, 240, 0.10);
  border-color: rgba(226, 232, 240, 0.30);
  color: rgba(248, 250, 252, 0.98);
}

.admin-footer {
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  background: transparent;
  box-shadow: none;
}

.admin-footer .text-secondary {
  color: rgba(226, 232, 240, 0.72) !important;
}

.offcanvas .sidebar-link {
  color: rgba(15, 23, 42, 0.85);
}

.offcanvas .brand-title {
  color: rgba(15, 23, 42, 0.96);
}

.offcanvas .brand-subtitle {
  color: rgba(71, 85, 105, 0.82);
}

.offcanvas .sidebar-link:hover {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.95);
}

.offcanvas .sidebar-link.active {
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.kpi-card {
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(191, 219, 254, 0.8);
  backdrop-filter: blur(18px);
}

.card.shadow-sm {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08) !important;
}

.card:hover {
  transform: translateY(-1px);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.table thead th {
  font-weight: 600;
}

.auth-body {
  background: radial-gradient(1200px 500px at 20% 10%, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(800px 380px at 80% 20%, rgba(14, 165, 233, 0.18), transparent 55%),
    linear-gradient(180deg, #050a14 0%, #0b1220 45%, #0f172a 100%);
  min-height: 100vh;
}

.auth-shell {
  max-width: 1040px;
}

.auth-promo {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
  color: rgba(248, 250, 252, 0.92);
}

.auth-promo-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.auth-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.auth-subtitle {
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
  margin-top: 10px;
  max-width: 48ch;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-point {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-point-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.32);
  color: rgba(239, 246, 255, 0.95);
  flex: 0 0 auto;
}

.auth-note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.78);
}

.auth-card {
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28) !important;
}

.auth-steps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-step {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(15, 23, 42, 0.62);
}

.auth-step.active {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.30);
  color: rgba(29, 78, 216, 0.95);
}

.auth-step-line {
  width: 40px;
  height: 2px;
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
}

.auth-badge {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(2, 132, 199, 0.10);
  border: 1px solid rgba(2, 132, 199, 0.18);
  color: rgba(15, 23, 42, 0.78);
}

.auth-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 14px;
}
