/* ============================================================
   SAFFRON DAWN — Masal Admin Light Theme
   Warm ivory & amber, inspired by illuminated Islamic manuscripts
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-base:       #f3efe6;
  --bg-sidebar:    #ffffff;
  --bg-surface:    #ffffff;
  --bg-elevated:   #faf8f4;
  --bg-hover:      #ede8de;

  /* Gold / Amber — primary accent */
  --gold:          #a8730f;
  --gold-light:    #c08c1c;
  --gold-dim:      rgba(168, 115, 15, 0.09);
  --gold-glow:     rgba(168, 115, 15, 0.22);

  /* Emerald green */
  --emerald:       #167a52;
  --emerald-light: #1da067;
  --emerald-dim:   rgba(22, 122, 82, 0.09);

  /* Crimson */
  --crimson:       #be3a2e;
  --crimson-dim:   rgba(190, 58, 46, 0.09);

  /* Sky / Teal */
  --sky:           #1a6ea8;
  --sky-light:     #2080c0;
  --sky-dim:       rgba(26, 110, 168, 0.09);

  /* Text */
  --text-cream:    #1c1a14;
  --text-secondary:#5a5045;
  --text-muted:    #9c9080;

  /* Borders */
  --border-subtle: rgba(100, 80, 40, 0.10);
  --border-medium: rgba(100, 80, 40, 0.18);
  --border-strong: rgba(168, 115, 15, 0.40);

  --sidebar-w: 260px;
  --header-h:  62px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--bg-base);
  color: var(--text-cream);
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Admin Shell ──────────────────────────────── */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow: hidden;
  box-shadow: 2px 0 16px rgba(100, 80, 40, 0.07);
}

/* Islamic geometric pattern overlay — very subtle on white */
.admin-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2 L23 13 L34 13 L25 20 L28 31 L20 25 L12 31 L15 20 L6 13 L17 13 Z' fill='none' stroke='%23a8730f' stroke-width='0.5' stroke-opacity='0.07'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  flex-shrink: 0;
}

.brand-gem {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #ffffff;
  font-weight: 900;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px var(--gold-glow));
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-cream);
  letter-spacing: 0.8px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-top: 1px;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  position: relative;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

.nav-section {
  margin-bottom: 6px;
}

.nav-section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 10px 4px;
  display: block;
}

/* NavLink items */
a.nav-item, .nav-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s ease;
  position: relative;
  margin-bottom: 1px;
  border: 1px solid transparent;
}

a.nav-item:hover, .nav-item:hover {
  background: var(--gold-dim);
  color: var(--text-cream) !important;
  border-color: var(--border-subtle);
}

a.nav-item.active, .nav-item.active {
  background: linear-gradient(135deg, rgba(168, 115, 15, 0.12), rgba(168, 115, 15, 0.06));
  color: var(--gold) !important;
  border-color: rgba(168, 115, 15, 0.20);
  font-weight: 700;
}

a.nav-item.active::before, .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 55%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.75;
}

/* ── Admin Body ───────────────────────────────── */
.admin-body {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-w));
  overflow-x: hidden;
}

/* ── Header ───────────────────────────────────── */
.admin-header {
  height: var(--header-h);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  box-shadow: 0 1px 8px rgba(100, 80, 40, 0.06);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-time {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-family: 'Outfit', sans-serif;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.logout-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Main Content ─────────────────────────────── */
.admin-main {
  flex: 1;
  padding: 28px 32px;
}

/* ── Loading ──────────────────────────────────── */
.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-base);
  flex-direction: column;
  gap: 14px;
}

.loading-label {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* ── Auth Layout (Login) ──────────────────────── */
.auth-shell {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* Subtle geometric pattern on auth page */
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 3 L34 20 L51 20 L38 30 L42 47 L30 38 L18 47 L22 30 L9 20 L26 20 Z' fill='none' stroke='%23a8730f' stroke-width='0.6' stroke-opacity='0.08'/%3E%3Crect x='25' y='25' width='10' height='10' fill='none' stroke='%23a8730f' stroke-width='0.4' stroke-opacity='0.06' transform='rotate(45 30 30)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* Warm radial glow center on auth page */
.auth-shell::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(168, 115, 15, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-center {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

/* Login Card */
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow:
    0 4px 6px rgba(100, 80, 40, 0.05),
    0 20px 50px rgba(100, 80, 40, 0.12),
    0 0 0 1px rgba(168, 115, 15, 0.08);
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.login-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #ffffff; font-weight: 900;
  filter: drop-shadow(0 4px 16px var(--gold-glow));
}

.login-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-cream);
  text-align: center;
  margin: 0 0 4px;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.3px;
}

.login-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 24px;
}

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--text-cream);
}

h3 { font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }
h4 { font-size: 15px; font-weight: 600; }
h5 { font-size: 14px; font-weight: 600; }
h6 { font-size: 13px; font-weight: 600; }

/* ── Bootstrap Overrides ──────────────────────── */

/* Cards */
.card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius) !important;
  color: var(--text-cream);
  box-shadow: 0 2px 12px rgba(100, 80, 40, 0.08), 0 1px 3px rgba(100, 80, 40, 0.06);
}

.card-header {
  background: var(--bg-elevated) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  color: var(--text-cream) !important;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 14px 18px;
}

.card-body { padding: 18px; }
.card-body.p-0 { padding: 0 !important; }

.card-footer {
  background: var(--bg-elevated) !important;
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

.shadow-sm { box-shadow: 0 2px 12px rgba(100, 80, 40, 0.10) !important; }

/* Tables */
.table {
  color: var(--text-cream);
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(168, 115, 15, 0.04);
  --bs-table-border-color: var(--border-subtle);
  margin-bottom: 0;
}

.table thead th,
.table-light,
.table-light th,
.table-light td {
  background: var(--bg-elevated) !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--border-medium) !important;
  white-space: nowrap;
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--border-subtle) !important;
  color: var(--text-cream);
  padding: 12px 16px;
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(168, 115, 15, 0.05) !important;
  color: var(--text-cream) !important;
}

.table-danger,
.table-danger > td,
.table-danger > th {
  --bs-table-bg: rgba(190, 58, 46, 0.05) !important;
  background-color: rgba(190, 58, 46, 0.05) !important;
}

.table-responsive {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

/* Buttons */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--radius-xs);
  transition: all 0.18s ease;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), #d4a030) !important;
  border-color: var(--gold-light) !important;
  box-shadow: 0 4px 14px var(--gold-glow);
  transform: translateY(-1px);
  color: #ffffff !important;
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: var(--gold-dim) !important;
  color: var(--gold) !important;
  border-color: var(--gold-light) !important;
}

.btn-success {
  background: var(--emerald) !important;
  border-color: var(--emerald) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(22, 122, 82, 0.25);
}
.btn-success:hover {
  background: var(--emerald-light) !important;
  border-color: var(--emerald-light) !important;
  box-shadow: 0 4px 12px rgba(22, 122, 82, 0.30);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: var(--border-medium) !important;
  color: var(--text-secondary) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover {
  background: var(--bg-hover) !important;
  color: var(--text-cream) !important;
  border-color: rgba(90, 80, 69, 0.35) !important;
}

.btn-outline-danger {
  border-color: rgba(190, 58, 46, 0.40) !important;
  color: var(--crimson) !important;
  background: transparent !important;
}
.btn-outline-danger:hover {
  background: var(--crimson-dim) !important;
  color: #a32e22 !important;
  border-color: rgba(190, 58, 46, 0.70) !important;
}

.btn-outline-success {
  border-color: rgba(22, 122, 82, 0.40) !important;
  color: var(--emerald) !important;
  background: transparent !important;
}
.btn-outline-success:hover {
  background: var(--emerald-dim) !important;
  color: var(--emerald-light) !important;
  border-color: rgba(22, 122, 82, 0.70) !important;
}

.btn-outline-warning {
  border-color: rgba(168, 115, 15, 0.40) !important;
  color: var(--gold) !important;
  background: transparent !important;
}
.btn-outline-warning:hover {
  background: var(--gold-dim) !important;
  border-color: var(--gold) !important;
}

.btn-danger {
  background: var(--crimson) !important;
  border-color: var(--crimson) !important;
  color: #fff !important;
}

.btn-sm { font-size: 12px; padding: 4px 12px; }
.btn-lg { font-size: 15px; padding: 12px 28px; }

/* Forms */
.form-control, .form-select, .form-control-sm {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-medium) !important;
  color: var(--text-cream) !important;
  border-radius: var(--radius-xs) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-control:focus, .form-select:focus {
  background: var(--bg-surface) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px var(--gold-dim) !important;
  color: var(--text-cream) !important;
  outline: none;
}

.form-control::placeholder { color: var(--text-muted) !important; opacity: 1; }

.form-label {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  display: block;
}

.form-check-input {
  background-color: var(--bg-surface) !important;
  border-color: var(--border-medium) !important;
  width: 16px; height: 16px;
}
.form-check-input:checked {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
}
.form-switch .form-check-input {
  width: 32px; height: 17px;
}
.form-switch .form-check-input:checked {
  background-color: var(--emerald) !important;
  border-color: var(--emerald) !important;
}
.form-check-label {
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
}

/* Alerts */
.alert-danger {
  background: rgba(190, 58, 46, 0.07) !important;
  border-color: rgba(190, 58, 46, 0.22) !important;
  color: #9a2e24 !important;
  border-radius: var(--radius-xs) !important;
}
.alert-success {
  background: rgba(22, 122, 82, 0.07) !important;
  border-color: rgba(22, 122, 82, 0.22) !important;
  color: #0f6040 !important;
  border-radius: var(--radius-xs) !important;
}
.alert-warning {
  background: rgba(168, 115, 15, 0.08) !important;
  border-color: rgba(168, 115, 15, 0.22) !important;
  color: #7a5208 !important;
  border-radius: var(--radius-xs) !important;
}

/* Badges */
.badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge.text-bg-success, .badge.bg-success {
  background: rgba(22, 122, 82, 0.12) !important;
  color: #0f6040 !important;
  border: 1px solid rgba(22, 122, 82, 0.25);
}
.badge.text-bg-danger, .badge.bg-danger {
  background: rgba(190, 58, 46, 0.10) !important;
  color: #9a2e24 !important;
  border: 1px solid rgba(190, 58, 46, 0.25);
}
.badge.text-bg-secondary, .badge.bg-secondary {
  background: rgba(90, 80, 69, 0.10) !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(90, 80, 69, 0.18);
}
.badge.text-bg-warning, .badge.bg-warning {
  background: rgba(168, 115, 15, 0.10) !important;
  color: #7a5208 !important;
  border: 1px solid rgba(168, 115, 15, 0.22);
}
.badge.text-bg-dark {
  background: rgba(28, 26, 20, 0.10) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-subtle);
}
.badge.text-bg-primary {
  background: rgba(26, 110, 168, 0.10) !important;
  color: var(--sky) !important;
  border: 1px solid rgba(26, 110, 168, 0.22);
}
.badge.text-bg-info, .badge.bg-info {
  background: rgba(26, 110, 168, 0.10) !important;
  color: var(--sky) !important;
  border: 1px solid rgba(26, 110, 168, 0.22);
}

/* Typography helpers */
.text-muted     { color: var(--text-muted) !important; }
.text-primary   { color: var(--gold) !important; }
.text-success   { color: var(--emerald) !important; }
.text-warning   { color: var(--gold) !important; }
.text-danger    { color: var(--crimson) !important; }
.text-info      { color: var(--sky) !important; }

.fw-semibold { color: var(--text-cream); font-weight: 600 !important; }
.small, small { color: var(--text-secondary); font-size: 12px; }

/* Spinner */
.spinner-border { color: var(--gold) !important; }
.spinner-border-sm { width: 1rem; height: 1rem; }

/* Dividers */
.border-bottom { border-bottom-color: var(--border-subtle) !important; }
.border-end    { border-right-color: var(--border-subtle) !important; }
.border-top    { border-top-color: var(--border-subtle) !important; }

/* ── Dashboard Stat Cards ─────────────────────── */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(100, 80, 40, 0.07);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.stat-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 80, 40, 0.12);
}
.stat-card:hover::before { opacity: 1; }

/* Top-border color per variant */
.col-6:nth-child(1) .stat-card::before,
.col-md-3:nth-child(1) .stat-card::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.col-6:nth-child(2) .stat-card::before,
.col-md-3:nth-child(2) .stat-card::before {
  background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
}
.col-6:nth-child(3) .stat-card::before,
.col-md-3:nth-child(3) .stat-card::before {
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
}
.col-6:nth-child(4) .stat-card::before,
.col-md-3:nth-child(4) .stat-card::before {
  background: linear-gradient(90deg, #8a6045, #b07a55);
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-value.gold    { color: var(--gold); }
.stat-value.emerald { color: var(--emerald); }
.stat-value.sky     { color: var(--sky); }
.stat-value.cream   { color: #8a6045; }

.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-elevated); }
::-webkit-scrollbar-thumb { background: rgba(168, 115, 15, 0.20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168, 115, 15, 0.38); }

/* ── Slide / Media overrides ──────────────────── */
.story-media-row, .story-media-col { min-width: 0; }
.slide-grid { min-width: 0; max-width: 100%; overflow: hidden; }
.slide-col { min-width: 0; }
.slide-card { min-width: 0; overflow: hidden; }
.slide-card-header { min-width: 0; flex-wrap: wrap; }
.slide-actions { flex-shrink: 0; }
.slide-actions .btn { width: 32px; height: 32px; padding: 0; }
@media (min-width: 768px) { .slide-actions .btn { width: 28px; } }

/* ── Sidebar size fix ─────────────────────────── */
.sidebar {
  width: var(--sidebar-w) !important;
  min-width: var(--sidebar-w) !important;
  max-width: var(--sidebar-w) !important;
  flex: 0 0 var(--sidebar-w) !important;
  flex-shrink: 0 !important;
}

/* ── Blazor error UI ──────────────────────────── */
#blazor-error-ui {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-medium);
  color: var(--text-secondary);
  bottom: 0; left: 0; right: 0;
  padding: 12px 28px;
  position: fixed;
  z-index: 1000;
  display: none;
  font-size: 13px;
  box-shadow: 0 -4px 20px rgba(100, 80, 40, 0.12);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 28px; top: 10px; }

.blazor-error-boundary {
  background: var(--crimson-dim);
  border: 1px solid rgba(190, 58, 46, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #9a2e24;
}
.blazor-error-boundary::after { content: "Bir hata oluştu."; }

/* ── Page content helpers ─────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}
.page-title { margin-bottom: 2px; }
.page-desc { color: var(--text-muted); font-size: 13px; }
