/* ============================================
   ZNDU DASHBOARD THEME - COMPLETE
   Preserves ALL existing styles + adds new enhancements
============================================ */

/* ============================================================================
   ROOT VARIABLES (YOUR EXISTING)
   ============================================================================ */

:root {
  --sidebar-width: 270px;
  --topbar-height: 66px;
  --brand-primary: #253b80;
  --brand-secondary: #199bd7;
  --brand-gold: #ccb90f;
  --surface: #ffffff;
  --surface-soft: #fff;
  --ink: #1d2740;
  --muted: #7582a3;
  --border: #e7edfb;
  --white: #ffffff;
  --light-gray: #e8eef9;
  --medium-gray: #7c88a8;
  --primary-dark: #253b80;
  --off-white: #f7faff;
  --danger: #dc3545;
}

body.sidebar-collapsed {
  --sidebar-width: 88px;
}

/* ============================================================================
   ADMIN LAYOUT (YOUR EXISTING)
   ============================================================================ */

.admin-container {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(248, 251, 255, 0.9) 38%,
    rgba(240, 246, 255, 0.88) 100%
  );
  color: var(--brand-primary);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border-right: 1px solid rgba(37, 59, 128, 0.09);
  box-shadow:
    8px 0 40px rgba(37, 59, 128, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset -1px 0 0 rgba(204, 185, 15, 0.12);
  transition: width .28s ease;
  isolation: isolate;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: -18%;
  left: -55%;
  width: 58%;
  height: 140%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(8deg);
  animation: sidebarShimmer 8.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(37, 59, 128, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.55)
  );
}

.sidebar-brand {
  text-decoration: none;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}

.sidebar-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(37, 59, 128, 0.15);
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.sidebar-nav {
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 0;
}

.nav-link,
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: rgba(37, 59, 128, 0.9);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  border-left: 3px solid transparent;
  border-radius: 0 12px 12px 0;
  margin-right: .7rem;
}

.nav-link > i:first-child,
.nav-toggle > i:first-child {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(237, 245, 255, 0.95)
  );
  color: var(--brand-secondary);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(37, 59, 128, 0.12);
}

.nav-link:hover,
.nav-toggle:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95),
    rgba(242, 248, 255, 0.85)
  );
  color: var(--brand-primary);
  transform: translateX(6px);
  box-shadow:
    0 12px 24px rgba(37, 59, 128, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.nav-link.active {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 251, 255, 0.95)
  );
  color: #1b2450;
  font-weight: 700;
  border-left-color: var(--brand-gold);
  box-shadow:
    0 14px 28px rgba(37, 59, 128, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.88);
}

.nav-toggle {
  justify-content: space-between;
}

.nav-toggle i:last-child {
  transition: transform 0.3s ease;
}

/* Compact submenu indicator (not the main row icon) */
.nav-toggle .sidebar-chevron {
  font-size: 0.5rem !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin-left: auto !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: rgba(37, 59, 128, 0.48) !important;
  flex-shrink: 0;
  align-self: center;
  opacity: 0.9;
}

.nav-item.open .nav-toggle i:last-child {
  transform: rotate(180deg);
}

.nav-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(246, 250, 255, 0.55)
  );
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-submenu.show {
  max-height: 500px;
}

.nav-submenu li {
  margin: 0;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  color: rgba(37, 59, 128, 0.86);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-submenu a:hover {
  color: var(--brand-primary);
  background-color: rgba(255, 255, 255, 0.65);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(37, 59, 128, 0.12);
  margin-top: auto;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.35)
  );
  position: relative;
  z-index: 1;
}

@keyframes sidebarShimmer {
  0%, 65% { left: -55%; opacity: 0; }
  72% { opacity: 0.9; }
  100% { left: 135%; opacity: 0; }
}

.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  transition: margin-left .28s ease;
}

/* ============================================================================
   TOPBAR (YOUR EXISTING)
   ============================================================================ */

.admin-topbar {
  height: var(--topbar-height);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(248, 250, 252, 0.94) 100%
  );
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(37, 59, 128, 0.08);
  box-shadow:
    0 4px 28px rgba(37, 59, 128, 0.07),
    0 1px 0 rgba(204, 185, 15, 0.18);
}

.sidebar-pin {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand-primary);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37,59,128,.08);
}

.sidebar-pin:hover {
  color: var(--brand-secondary);
  transform: translateY(-1px);
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--brand-primary);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.25rem;
}

.sidebar-toggle:hover {
  color: var(--brand-gold);
}

.topbar-search {
  flex: 1;
  position: relative;
  max-width: 400px;
}

.topbar-search .form-control {
  padding-left: 2.5rem;
  border: 1px solid rgba(37, 59, 128, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-search .form-control:focus {
  border-color: rgba(204, 185, 15, 0.65);
  box-shadow: 0 0 0 3px rgba(204, 185, 15, 0.18);
  background: #fff;
  outline: none;
}

.topbar-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(37, 59, 128, 0.1);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 0.92rem;
  color: var(--brand-primary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-icon:hover {
  color: var(--brand-secondary);
  background: #fff;
  border-color: rgba(204, 185, 15, 0.45);
  transform: translateY(-1px);
}

.btn-icon .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.65rem;
}

.topbar-actions .dropdown-toggle::after {
  display: none;
}

/* ============================================================================
   ADMIN CONTENT (YOUR EXISTING)
   ============================================================================ */

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 90% 55% at 100% 0%, rgba(204, 185, 15, 0.055), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(37, 59, 128, 0.04), transparent 50%),
    linear-gradient(180deg, #f5f7fb 0%, #fafbfd 100%);
}

/* ============================================================================
   STAT CARDS (YOUR EXISTING - PRESERVED)
   ============================================================================ */

.stat-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(37, 59, 128, 0.12);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 44px rgba(37, 59, 128, 0.2);
}

.stat-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-card-title {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.stat-card-change {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.stat-card-change.positive {
  color: #0ea35c;
}

.stat-card-change.negative {
  color: #cf2f5d;
}

/* ============================================================================
   DATA TABLES (YOUR EXISTING)
   ============================================================================ */

.table-container {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(37, 59, 128, 0.12);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.table-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(37, 59, 128, 0.2);
}

.data-table {
  margin-bottom: 0;
}

.data-table thead {
  background-color: #f7faff;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-weight: 700;
  color: var(--brand-primary);
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #edf2fd;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: #f8fbff;
}

/* ============================================================================
   CHART CARDS (YOUR EXISTING - PRESERVED)
   ============================================================================ */

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(37, 59, 128, 0.12);
  padding: 1.25rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

.chart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(37, 59, 128, 0.2);
}

.chart-title {
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.dashboard-header h1 {
  color: var(--brand-primary);
  font-weight: 800;
}

.dashboard-header p {
  color: var(--muted);
}

/* ============================================================================
   SIDEBAR COLLAPSED STATE (YOUR EXISTING)
   ============================================================================ */

body.sidebar-collapsed .sidebar-brand span,
body.sidebar-collapsed .nav-link span,
body.sidebar-collapsed .nav-toggle span,
body.sidebar-collapsed .nav-toggle i:last-child {
  display: none;
}

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

body.sidebar-collapsed .nav-link,
body.sidebar-collapsed .nav-toggle {
  justify-content: center;
  padding-left: .6rem;
  padding-right: .6rem;
}

body.sidebar-collapsed .nav-submenu {
  display: none !important;
}

body.sidebar-collapsed .sidebar-footer .btn span {
  display: none;
}

body.sidebar-collapsed .sidebar-footer .btn {
  width: 100%;
  min-height: 36px;
  padding: .45rem .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.sidebar-collapsed .sidebar-footer .btn i {
  margin: 0 !important;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================================
   FORMS (YOUR EXISTING)
   ============================================================================ */

.admin-form {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(27, 67, 50, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.has-error .form-control,
.form-group.has-error .form-select {
  border-color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ============================================================================
   MODALS (YOUR EXISTING)
   ============================================================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 0.75rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--medium-gray);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ============================================================================
   BULK ACTIONS (YOUR EXISTING)
   ============================================================================ */

.bulk-actions {
  background: var(--off-white);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.bulk-actions-count {
  font-weight: 600;
  color: var(--primary-dark);
}

.bulk-actions-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

/* ============================================================================
   RESPONSIVE (YOUR EXISTING)
   ============================================================================ */

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .sidebar-close {
    display: block;
  }

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

  .admin-topbar {
    padding: 0 1rem;
  }

  .topbar-search {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 60px;
  }

  .admin-topbar {
    height: var(--topbar-height);
    padding: 0 1rem;
    gap: 1rem;
  }

  .topbar-search {
    display: none;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-form {
    padding: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .modal-content {
    width: 95%;
  }
}

/* ============================================================================
   ENHANCED DASHBOARD STYLES (NEW - ADDED BELOW, NOT REMOVING ANYTHING)
   ============================================================================ */

/* Dashboard Header Wrapper */
.dashboard-header-wrapper {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Welcome Card - Enhanced */
.welcome-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 24px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0) 70%);
    border-radius: 50%;
}

.welcome-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.welcome-card p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* Enhanced Stat Card Overrides (Adding to existing, not replacing) */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a5f, #d4af37);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(30,58,95,0.1) 0%, rgba(212,175,55,0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-card-icon i {
    font-size: 1.6rem;
    color: #1e3a5f;
}

/* Table Card Header */
.table-card-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.table-card-title i {
    color: #d4af37;
}

.btn-sm-custom {
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.25rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-sm-custom:hover {
    background: #0f2b46;
    transform: translateY(-2px);
    color: white;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.quick-action-btn {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 0.62rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-btn:hover {
    background: #1e3a5f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30,58,95,0.15);
}

.quick-action-btn i {
    font-size: 1.1rem;
    color: #1e3a5f;
    transition: color 0.2s;
}

.quick-action-btn:hover i {
    color: #d4af37;
}

.quick-action-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e3a5f;
}

.quick-action-btn:hover span {
    color: white;
}

/* Action Icons */
.action-icons {
    display: flex;
    gap: 0.5rem;
}

.action-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6c757d;
    background: #f1f5f9;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.action-icon:hover {
    background: #1e3a5f;
    color: white;
    transform: scale(1.05);
}

/* Status Badges - Enhanced */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge-published {
    background: #d1fae5;
    color: #065f46;
}

.badge-draft {
    background: #fef3c7;
    color: #92400e;
}

/* System Status */
.system-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eef2f6;
}

.system-status-item:last-child {
    border-bottom: none;
}

.system-status-label {
    font-size: 0.8rem;
    color: #4a5568;
}

.system-status-value {
    font-size: 0.7rem;
    font-weight: 600;
}

.status-online {
    color: #10b981;
}

/* ============================================================================
   COMPACT BUTTONS — all CMS actions (.admin-container beats page .btn-gold)
   ============================================================================ */

.admin-container .btn {
  --bs-btn-padding-y: 0.34rem;
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-line-height: 1.45;
  --bs-btn-border-radius: 0.5rem;
}

.admin-container .btn-sm {
  --bs-btn-padding-y: 0.24rem;
  --bs-btn-padding-x: 0.52rem;
  --bs-btn-font-size: 0.8125rem;
}

.admin-container .btn-lg {
  --bs-btn-padding-y: 0.46rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-font-size: 0.9rem;
}

.admin-container .btn-gold,
.admin-container .btn-outline-gold {
  padding: 0.4rem 0.95rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  line-height: 1.4 !important;
}

.admin-container .btn-gold.btn-lg,
.admin-container .btn-outline-gold.btn-lg {
  padding: 0.48rem 1.1rem !important;
  font-size: 0.9rem !important;
}

.admin-container .sidebar-footer .btn {
  padding: 0.42rem 0.75rem;
  font-size: 0.84rem;
  border-radius: 10px;
}

/* ============================================================================
   SLIM PAGE HERO BANNERS — gradient title strips (all admin list/detail headers)
   ============================================================================ */

.admin-container .hero,
.admin-container .hero-bar,
.admin-container .document-hero,
.admin-container .document-detail-hero,
.admin-container .leaders-hero,
.admin-container .deadlines-hero,
.admin-container .faculty-hero,
.admin-container .faculty-detail-hero,
.admin-container .events-hero,
.admin-container .notice-hero,
.admin-container .department-hero,
.admin-container .department-detail-hero,
.admin-container .programme-detail-hero,
.admin-container .programme-hero,
.admin-container .categories-hero {
  padding: 0.5rem 1rem !important;
  margin-bottom: 1rem !important;
  border-radius: 14px !important;
}

.admin-container .hero h1,
.admin-container .hero-bar h1,
.admin-container .document-hero h1,
.admin-container .document-detail-hero h1,
.admin-container .leaders-hero h1,
.admin-container .deadlines-hero h1,
.admin-container .faculty-hero h1,
.admin-container .faculty-detail-hero h1,
.admin-container .events-hero h1,
.admin-container .notice-hero h1,
.admin-container .department-hero h1,
.admin-container .department-detail-hero h1,
.admin-container .programme-detail-hero h1,
.admin-container .programme-hero h1,
.admin-container .categories-hero h1 {
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.1rem !important;
}

.admin-container .hero p,
.admin-container .hero-bar p,
.admin-container .document-hero p,
.admin-container .document-detail-hero p,
.admin-container .leaders-hero p,
.admin-container .deadlines-hero p,
.admin-container .faculty-hero p,
.admin-container .faculty-detail-hero p,
.admin-container .events-hero p,
.admin-container .notice-hero p,
.admin-container .department-hero p,
.admin-container .department-detail-hero p,
.admin-container .programme-detail-hero p,
.admin-container .programme-hero p,
.admin-container .categories-hero p {
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
  margin-bottom: 0 !important;
}

/* Plain text headers (e.g. gallery manager) */
.admin-container .gl-hdr {
  margin-bottom: 1rem !important;
  gap: 0.65rem !important;
}

.admin-container .gl-hdr h1 {
  font-size: 1.15rem !important;
}

.admin-container .gl-hdr p {
  font-size: 0.8rem !important;
  margin-top: 0.15rem !important;
}

/* Slim top title row (forms & pages without a .hero block) */
.admin-container .container-fluid > .d-flex.justify-content-between.align-items-center {
  margin-bottom: 0.85rem !important;
  gap: 0.5rem !important;
}

.admin-container .container-fluid > .d-flex.justify-content-between.align-items-center h1 {
  font-size: 1.12rem !important;
  line-height: 1.25 !important;
}

.admin-container .container-fluid > .d-flex.justify-content-between.align-items-center .text-muted {
  font-size: 0.78rem !important;
}