/* ==================================================
   PSZ Portal – Modern Bootstrap 5 Design System
   ================================================== */

/* ── CSS Variables ── */
:root {
  --psz-primary: #2563eb;
  --psz-primary-dark: #1d4ed8;
  --psz-primary-light: #eff6ff;
  --psz-secondary: #64748b;
  --psz-success: #16a34a;
  --psz-warning: #d97706;
  --psz-danger: #dc2626;
  --psz-info: #0891b2;

  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active-bg: rgba(37, 99, 235, 0.18);
  --sidebar-accent: #2563eb;
  --sidebar-text: rgba(226, 232, 240, 0.85);
  --sidebar-width: 260px;

  --content-bg: #f1f5f9;
  --card-radius: 0.75rem;
  --card-shadow:
    0 1px 4px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.05);
  --card-shadow-hover:
    0 4px 12px rgba(15, 23, 42, 0.12), 0 12px 32px rgba(15, 23, 42, 0.08);

  --bs-body-font-size: 0.875rem;
  --bs-body-line-height: 1.5;
  --bs-border-radius: 0.5rem;
}

/* ── Base Typography ── */
body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
  background: var(--content-bg);
}
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}
h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}
h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.btn {
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.18s ease;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}
.form-control,
.form-select {
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border-color: #cbd5e1;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--psz-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.table {
  font-size: 0.8125rem;
  color: #334155;
}
small,
.small {
  font-size: 0.8125rem;
}
.text-xs {
  font-size: 0.75rem;
}

/* ── Card Base ── */
.card {
  border: 1px solid #e2e8f0;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.card-hover:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.card-header {
  border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0
    0 !important;
  background: linear-gradient(135deg, #475569, #334155) !important;
  color: #fff !important;
  border-bottom: none;
  padding: 0.875rem 1.25rem;
  font-weight: 600;
}
.card-header .text-muted,
.card-header .text-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
}
.card-body {
  padding: 1.25rem;
}

/* ── Stat/Metric Cards ── */
.stat-card {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.stat-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
}
.stat-card.stat-primary {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.stat-card.stat-primary::after {
  background: var(--psz-primary);
}
.stat-card.stat-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.stat-card.stat-success::after {
  background: var(--psz-success);
}
.stat-card.stat-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.stat-card.stat-warning::after {
  background: var(--psz-warning);
}
.stat-card.stat-danger {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
}
.stat-card.stat-danger::after {
  background: var(--psz-danger);
}
.stat-card.stat-info {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}
.stat-card.stat-info::after {
  background: var(--psz-info);
}
.stat-card.stat-secondary {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.stat-card.stat-secondary::after {
  background: #64748b;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-icon.icon-primary {
  background: rgba(37, 99, 235, 0.12);
  color: var(--psz-primary);
}
.stat-icon.icon-success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--psz-success);
}
.stat-icon.icon-warning {
  background: rgba(217, 119, 6, 0.12);
  color: var(--psz-warning);
}
.stat-icon.icon-danger {
  background: rgba(220, 38, 38, 0.12);
  color: var(--psz-danger);
}
.stat-icon.icon-info {
  background: rgba(8, 145, 178, 0.12);
  color: var(--psz-info);
}
.stat-icon.icon-secondary {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
}
.stat-change.up {
  color: var(--psz-success);
}
.stat-change.down {
  color: var(--psz-danger);
}

/* ── Colored Card Headers ── */
.card-header.ch-primary {
  background: linear-gradient(
    135deg,
    var(--psz-primary),
    var(--psz-primary-dark)
  );
  color: #fff;
  border-bottom: none;
}
.card-header.ch-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border-bottom: none;
}
.card-header.ch-warning {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border-bottom: none;
}
.card-header.ch-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border-bottom: none;
}
.card-header.ch-info {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #fff;
  border-bottom: none;
}
.card-header.ch-secondary {
  background: linear-gradient(135deg, #475569, #334155);
  color: #fff;
  border-bottom: none;
}
.card-header.ch-primary h1,
.card-header.ch-primary h2,
.card-header.ch-primary h3,
.card-header.ch-primary h4,
.card-header.ch-primary h5,
.card-header.ch-primary h6,
.card-header.ch-success h1,
.card-header.ch-success h2,
.card-header.ch-success h3,
.card-header.ch-success h4,
.card-header.ch-success h5,
.card-header.ch-success h6,
.card-header.ch-warning h1,
.card-header.ch-warning h2,
.card-header.ch-warning h3,
.card-header.ch-warning h4,
.card-header.ch-warning h5,
.card-header.ch-warning h6,
.card-header.ch-danger h1,
.card-header.ch-danger h2,
.card-header.ch-danger h3,
.card-header.ch-danger h4,
.card-header.ch-danger h5,
.card-header.ch-danger h6,
.card-header.ch-info h1,
.card-header.ch-info h2,
.card-header.ch-info h3,
.card-header.ch-info h4,
.card-header.ch-info h5,
.card-header.ch-info h6,
.card-header.ch-secondary h1,
.card-header.ch-secondary h2,
.card-header.ch-secondary h3,
.card-header.ch-secondary h4,
.card-header.ch-secondary h5,
.card-header.ch-secondary h6 {
  color: inherit;
}
.card-header.ch-light {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

/* ── Tables ── */
.table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  background: #f8fafc;
}
.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table-hover tbody tr:hover {
  background: #f8fafc;
}
.table-borderless td,
.table-borderless th {
  border: none;
}

/* ── Badges ── */
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 0.375rem;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.page-header-title h1,
.page-header-title h4,
h1.page-header-title,
h4.page-header-title {
  margin-bottom: 0.15rem;
}
.page-header-title p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.8125rem;
}
.page-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* ── Alert Modernization ── */
.alert {
  border: none;
  border-radius: var(--card-radius);
  border-left: 4px solid;
  font-size: 0.875rem;
}
.alert-success {
  background: #f0fdf4;
  border-left-color: var(--psz-success);
  color: #14532d;
}
.alert-danger {
  background: #fff1f2;
  border-left-color: var(--psz-danger);
  color: #7f1d1d;
}
.alert-warning {
  background: #fffbeb;
  border-left-color: var(--psz-warning);
  color: #78350f;
}
.alert-info {
  background: #ecfeff;
  border-left-color: var(--psz-info);
  color: #164e63;
}

/* ── Avatar Circle ── */
.avatar-circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--psz-primary),
    var(--psz-primary-dark)
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.avatar-circle-lg {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--psz-primary),
    var(--psz-primary-dark)
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════ */
.wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.sidebar.active {
  transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1.25rem;
  background: #020617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-brand-text h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.sidebar-brand-text p {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
  line-height: 1.3;
}

.sidebar-nav {
  list-style: none;
  padding: 0.625rem 0;
  margin: 0;
  flex: 1;
}
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.5);
  padding: 1rem 1.25rem 0.35rem;
}
.sidebar-item {
  margin: 1px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  margin: 0 0.5rem;
  border-radius: 0.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.75rem;
  transition:
    background 0.15s,
    color 0.15s;
  border: none;
}
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.sidebar-item.active > .sidebar-link,
.sidebar-link.active-link {
  background: var(--sidebar-active-bg);
  color: #93c5fd;
}
.sidebar-link i:first-child {
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
}
.sidebar-link .bi-chevron-down {
  font-size: 0.7rem;
  margin-left: auto;
  transition: transform 0.2s;
}
.sidebar-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
}
.sidebar-submenu .sidebar-link {
  padding: 0.5rem 1rem 0.5rem 3.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  margin: 0 0.5rem;
  color: rgba(148, 163, 184, 0.75);
}
.sidebar-submenu .sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* ════════════════════════════════════════
   MAIN CONTENT AREA
   ════════════════════════════════════════ */
.content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--content-bg);
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.content.active {
  margin-left: 0;
}

/* ── Top Navbar ── */
.content .navbar {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.625rem 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.navbar-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  margin: 0;
  padding: 0;
  background: transparent;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #cbd5e1;
}
.breadcrumb-item a {
  color: #2563eb;
  text-decoration: none;
}
.breadcrumb-item.active {
  color: #64748b;
}

/* User menu */
.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.user-menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.user-menu-toggle .user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}
.user-menu-toggle .user-role {
  font-size: 0.7rem;
  color: #64748b;
}

.main-content {
  padding: 1.5rem;
  flex: 1;
}

/* ════════════════════════════════════════
   LOGIN / AUTH PAGES
   ════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
}
.auth-brand-panel {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: -100px;
  right: -100px;
}
.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  bottom: -80px;
  left: -80px;
}
.auth-brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.auth-brand-panel h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.auth-brand-panel p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.auth-form-panel {
  width: 480px;
  min-width: 480px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.auth-form-inner {
  width: 100%;
  max-width: 380px;
}
.auth-form-inner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.375rem;
}
.auth-form-inner > p {
  color: #64748b;
  margin-bottom: 2rem;
}

/* Login legacy aliases */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  padding: 1rem;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
}
.login-header h1 {
  font-size: 1.75rem;
  margin: 0;
  font-weight: 800;
  color: #fff;
}
.login-header p {
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.75);
}
.login-body {
  padding: 2rem;
}
.login-body .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}
.login-body .form-control {
  font-size: 0.9rem;
  padding: 0.625rem 0.875rem;
  border-color: #e2e8f0;
  border-radius: 0.625rem;
}
.login-body .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.btn-login {
  padding: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
}
.btn-login:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════ */
/* Flash / Toast */
.flash-message {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  min-width: 300px;
  max-width: 500px;
  z-index: 9999;
  animation: slideInRight 0.3s ease-out;
}
.flash-message.flash-out {
  animation: slideOutRight 0.3s ease-in;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
.flash-message .alert {
  margin: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Btn loader */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.btn-loading .btn-text {
  visibility: hidden;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spinner 0.6s linear infinite;
}
@keyframes btn-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Pagination */
.pagination .page-link {
  font-size: 0.8125rem;
  border-radius: 0.375rem;
  border-color: #e2e8f0;
  color: #2563eb;
}
.pagination .page-item.active .page-link {
  background: #2563eb;
  border-color: #2563eb;
}

/* Divider */
.section-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1.25rem 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.empty-state p {
  margin: 0;
  font-size: 0.875rem;
}

/* Nav tabs */
.nav-tabs .nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.625rem 1rem;
}
.nav-tabs .nav-link.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: transparent;
  font-weight: 600;
}
.nav-tabs .nav-link:hover:not(.active) {
  color: #1e293b;
  border-bottom-color: #e2e8f0;
}
.nav-tabs {
  border-bottom: 2px solid #e2e8f0;
}

/* Input group */
.input-group .btn {
  border-radius: 0 0.5rem 0.5rem 0;
}
.input-group .form-control:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .content {
    margin-left: 0;
  }

  .auth-brand-panel {
    display: none;
  }
  .auth-form-panel {
    width: 100%;
    min-width: unset;
  }

  .page-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .page-header-actions {
    width: 100%;
  }
}

/* Legacy login container */
