/* =========================================================
   Nagbai Admin Panel – admin.css
   Theme: Dark sidebar + Light content area
   ========================================================= */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --primary:        #4f46e5;
  --primary-light:  #6366f1;
  --primary-dark:   #3730a3;
  --primary-glow:   rgba(79,70,229,.18);
  --success:        #10b981;
  --success-light:  #d1fae5;
  --warning:        #f59e0b;
  --warning-light:  #fef3c7;
  --danger:         #ef4444;
  --danger-light:   #fee2e2;
  --info:           #06b6d4;

  --sidebar-bg:     #0f172a;
  --sidebar-text:   #94a3b8;
  --sidebar-hover:  #1e293b;
  --sidebar-active: rgba(79,70,229,.15);
  --sidebar-width:  260px;

  --topbar-bg:      #ffffff;
  --topbar-shadow:  0 1px 0 #e2e8f0;

  --bg:             #f1f5f9;
  --card-bg:        #ffffff;
  --border:         #e2e8f0;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;

  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);

  --transition:     all .2s ease;
  --font:           'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--primary-glow);
}

.brand-name {
  font-size: .9rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: .3px;
}

.sidebar-toggle-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
}
.sidebar-toggle-btn:hover { color: #fff; background: var(--sidebar-hover); }

/* User info */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.user-avatar {
  font-size: 2rem;
  color: var(--primary-light);
  flex-shrink: 0;
  line-height: 1;
}
.user-info { overflow: hidden; }
.user-name {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  display: block;
  font-size: .72rem;
  color: var(--sidebar-text);
}

/* Nav */
.sidebar-nav {
  list-style: none;
  padding: 12px 0 20px;
  flex: 1;
}
.nav-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 12px 20px 4px;
}
.nav-item { padding: 2px 10px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link i { font-size: 1rem; flex-shrink: 0; }
.nav-link:hover {
  background: var(--sidebar-hover);
  color: #f1f5f9;
}
.nav-link.active {
  background: var(--sidebar-active);
  color: var(--primary-light);
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: var(--primary-light);
  border-radius: 0 4px 4px 0;
  margin-left: -12px;
}
.nav-link.text-danger-soft { color: #f87171; }
.nav-link.text-danger-soft:hover { background: rgba(239,68,68,.1); color: #fca5a5; }

/* Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* ── Main Content ───────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .3s cubic-bezier(.4,0,.2,1);
}

/* ── Topbar ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--topbar-bg);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--topbar-shadow);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-menu-btn {
  background: none; border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: none;
  transition: var(--transition);
}
.topbar-menu-btn:hover { background: var(--bg); color: var(--text); }
.breadcrumb { font-size: .82rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-date { font-size: .82rem; color: var(--text-muted); }
.topbar-logout {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--danger-light);
  color: var(--danger);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}
.topbar-logout:hover { background: var(--danger); color: #fff; }

/* ── Content Area ─────────────────────────────────────── */
.content-area {
  flex: 1;
  padding: 28px 24px;
}

/* ── Page Header ──────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.page-subtitle {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Stat Cards ───────────────────────────────────────── */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-card-primary .stat-card-icon { background: var(--primary-glow); color: var(--primary); }
.stat-card-success .stat-card-icon { background: var(--success-light); color: var(--success); }
.stat-card-warning .stat-card-icon { background: var(--warning-light); color: var(--warning); }
.stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin: 0; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; margin: 0; }
.stat-card-link {
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}
.stat-card-link:hover { color: var(--primary-dark); }

/* ── Cards ────────────────────────────────────────────── */
.card-custom {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header-custom {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title-custom {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex; align-items: center;
}
.card-body-custom { padding: 20px; }

/* ── Table Enhancements ───────────────────────────────── */
.table > :not(caption) > * > * { padding: 12px 16px; }
.table thead th {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: #f8fafc; }
.table tbody td { font-size: .875rem; vertical-align: middle; color: var(--text); border-bottom: 1px solid var(--border); }

/* ── Badges ───────────────────────────────────────────── */
.badge-count {
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-count-sm {
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 100px;
  padding: 2px 8px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-category {
  background: var(--success-light);
  color: #065f46;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-city {
  background: var(--warning-light);
  color: #92400e;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-live {
  background: var(--success-light);
  color: var(--success);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-live i { font-size: .5rem; animation: pulse-dot 1.4s infinite; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #fff;
}
.btn-primary-custom:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.btn-secondary-custom {
  display: inline-flex; align-items: center;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-secondary-custom:hover { background: var(--bg); color: var(--text); border-color: #cbd5e1; }

.btn-danger-custom {
  display: inline-flex; align-items: center;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-danger-custom:hover { background: #dc2626; transform: translateY(-1px); }

.btn-sm-outline {
  display: inline-flex; align-items: center;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-sm-outline:hover { background: var(--primary); color: #fff; }

.btn-icon-edit, .btn-icon-danger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.btn-icon-edit {
  background: rgba(79,70,229,.1);
  color: var(--primary);
}
.btn-icon-edit:hover { background: var(--primary); color: #fff; }
.btn-icon-danger {
  background: var(--danger-light);
  color: var(--danger);
}
.btn-icon-danger:hover { background: var(--danger); color: #fff; }

.action-btns { display: flex; align-items: center; gap: 6px; }

/* ── Forms ────────────────────────────────────────────── */
.form-label-custom {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control-custom {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text);
  background-color: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font);
}
.form-control-custom:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}
textarea.form-control-custom { resize: vertical; min-height: 120px; }
.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Input with icon */
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  font-size: .9rem;
  pointer-events: none;
  z-index: 2;
}
.form-control-custom.with-icon { padding-left: 38px; }
.input-icon-right {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: .9rem;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.input-icon-right:hover { color: var(--text); }

/* Form actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.form-actions-sticky {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ── Benefits List ────────────────────────────────────── */
.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.benefit-item .input-icon-wrap { flex: 1; }

/* ── Image Upload ─────────────────────────────────────── */
.image-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: #f8fafc;
}
.image-upload-zone:hover { border-color: var(--primary); background: var(--primary-glow); }
.image-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.image-upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  gap: 8px;
  z-index: 1;
}
.image-upload-preview i { font-size: 2.5rem; color: var(--primary-light); }
.image-upload-preview p { font-size: .875rem; font-weight: 600; margin: 0; }
.image-upload-preview small { font-size: .75rem; }
.image-preview-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 8px;
  z-index: 1;
}
.product-thumb {
  width: 52px; height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.current-product-img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 4px;
  background: #f8fafc;
}

/* ── Slug Code ────────────────────────────────────────── */
.slug-code {
  background: #f1f5f9;
  color: #4338ca;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .75rem;
  border: 1px solid #e0e7ff;
}

/* ── Modal ────────────────────────────────────────────── */
.modal-custom {
  border-radius: var(--radius) !important;
  border: none !important;
  box-shadow: var(--shadow-lg) !important;
}
.modal-header-custom {
  padding: 20px 20px 0;
  border-bottom: none;
}
.modal-body { padding: 16px 20px; color: var(--text-muted); font-size: .875rem; }
.modal-footer { padding: 0 20px 20px; }
.text-warning-soft { color: #b45309; font-size: .82rem; }

/* ── Empty State ──────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}
.empty-state i { font-size: 3rem; color: var(--border); }
.empty-state p { font-size: .9rem; margin: 0; }
.empty-state a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ── DataTables Override ─────────────────────────────── */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: .85rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: var(--transition);
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { font-size: .82rem; color: var(--text-muted); }
.dt-processing { color: var(--text-muted); }
.page-link { color: var(--primary); border-color: var(--border); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── Alert overrides ──────────────────────────────────── */
.alert { border-radius: var(--radius-sm); border: none; font-size: .875rem; font-weight: 500; }
.alert-success { background: var(--success-light); color: #065f46; }
.alert-danger { background: var(--danger-light); color: #991b1b; }

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn .35s ease both; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ── Login Page ───────────────────────────────────────── */
.login-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.login-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  filter: blur(80px);
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--primary-light);
  top: -100px; left: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--info);
  bottom: -100px; right: -100px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--primary);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.login-container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  position: relative;
  z-index: 10;
}
.login-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
  animation: fadeIn .5s ease;
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem; color: #fff;
  box-shadow: 0 0 32px var(--primary-glow);
}
.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.login-subtitle { font-size: .875rem; color: rgba(148,163,184,.8); margin: 0; }
.login-form .form-label { color: #cbd5e1; font-size: .875rem; font-weight: 600; }
.login-form .form-control {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  color: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  padding: 12px 14px;
  transition: var(--transition);
}
.login-form .form-control.with-icon { padding-left: 42px; }
.login-form .form-control::placeholder { color: rgba(148,163,184,.5); }
.login-form .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99,102,241,.25);
  color: #f1f5f9;
}
.login-form .input-icon { color: rgba(148,163,184,.6); }
.login-form .btn-show-pass { color: rgba(148,163,184,.6); }
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(79,70,229,.4);
  letter-spacing: .3px;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(79,70,229,.5); }
.btn-login:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-icon { font-size: 1.1rem; margin-left: auto; }

/* ── Error Pages ──────────────────────────────────────── */
.error-page-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}
.error-container {
  text-align: center;
  padding: 40px 20px;
  max-width: 480px;
}
.error-code {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.error-500 {
  background: linear-gradient(135deg, var(--danger), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
}
.error-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.error-message { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.error-detail {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: .78rem;
  color: var(--danger);
  text-align: left;
  overflow: auto;
  margin-bottom: 24px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle-btn { display: flex; }
  .sidebar-overlay.visible { display: block; }
  .main-content { margin-left: 0 !important; }
  .topbar-menu-btn { display: flex; }
  .content-area { padding: 20px 16px; }
}
@media (max-width: 576px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .login-card { padding: 28px 20px; }
  .error-code { font-size: 4rem; }
}
