/*
 * SoruPortal Admin Panel — Unified Design System
 * Theme : Moonchrome (Light SaaS)
 * Font  : Orbitron → sadece logo + sayfa başlıkları
 *         Inter    → her şey
 * ─────────────────────────────────────────────
 * Canonical bileşenler:
 *   Buttons   → .lm-btn
 *   Cards     → .sp-card  |  .sp-stat-card
 *   Tables    → .sp-table
 *   Badges    → .sp-badge
 *   Tabs      → .sp-tabs  > .sp-tab
 *   Pagination→ .sp-pagination > .sp-page-btn
 *   Modals    → .sp-modal-overlay > .sp-modal
 *   Forms     → .sp-form-*
 *   Page hdr  → .sp-page-header
 */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Moonchrome Palette */
  --c-primary:        #0f172a;
  --c-primary-hover:  #1e293b;
  --c-primary-light:  #e2e8f0;

  /* Sidebar */
  --c-sidebar-bg:     #ffffff;
  --c-sidebar-text:   #64748b;
  --c-sidebar-hover:  #f8fafc;
  --c-sidebar-active: #0f172a;

  /* Background */
  --c-bg:    #f8fafc;
  --c-white: #ffffff;
  --c-black: #0f172a;

  /* Gray Scale (Slate) */
  --c-gray-50:  #f8fafc;
  --c-gray-100: #f1f5f9;
  --c-gray-200: #e2e8f0;
  --c-gray-300: #cbd5e1;
  --c-gray-400: #94a3b8;
  --c-gray-500: #64748b;
  --c-gray-600: #475569;
  --c-gray-700: #334155;
  --c-gray-800: #1e293b;
  --c-gray-900: #0f172a;

  /* Status */
  --c-blue-50:   #eff6ff; --c-blue-600:  #2563eb;
  --c-green-50:  #ecfdf5; --c-green-700: #059669; --c-green-600: #16a34a;
  --c-red-50:    #fef2f2; --c-red-600:   #e11d48; --c-red-700:   #dc2626;
  --c-amber-50:  #fffbeb; --c-amber-700: #d97706;
  --c-purple-50: #fdf4ff; --c-purple-600: #9333ea;

  /* Legacy aliases (backward compat) */
  --sp-blue50:   #eff6ff; --sp-blue600:  #2563eb;
  --sp-red50:    #fef2f2; --sp-red600:   #e11d48; --sp-red700: #dc2626;
  --sp-green50:  #ecfdf5; --sp-green700: #059669;
  --sp-amber50:  #fffbeb; --sp-amber700: #d97706;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #334155 100%);

  /* Shadows */
  --shadow-sm:   0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md:   0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:   0 10px 15px -3px rgb(0 0 0 / .05), 0 4px 6px -4px rgb(0 0 0 / .05);
  --shadow-glow: 0 0 20px rgba(15, 23, 42, .15);

  /* Shape */
  --sidebar-w:  280px;
  --header-h:   76px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;

  /* Typography */
  --font-brand: 'Orbitron', sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

/* ─── 2. BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-gray-800);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* Orbitron: sadece logo + sayfa başlıkları */
.sp-sidebar-logo-text,
.sp-topbar-title,
.sp-page-title,
.admin-page-title {
  font-family: var(--font-brand);
}

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-hover); }

/* Link içindeki butonlar renk override'dan muaf */
a.lm-btn,
a.lm-btn:hover                        { color: inherit; }
a.lm-btn-primary,
a.lm-btn-primary:hover                { color: #fff; }
a.lm-btn-secondary,
a.lm-btn-secondary:hover              { color: var(--c-gray-800); }
a.lm-btn-outline,
a.lm-btn-outline:hover                { color: var(--c-gray-800); }
a.lm-btn-ghost,
a.lm-btn-ghost:hover                  { color: var(--c-gray-500); }
a.lm-btn-danger,
a.lm-btn-danger:hover                 { color: #fff; }
a.lm-btn-success,
a.lm-btn-success:hover                { color: #fff; }

/* ─── 3. LAYOUT ─────────────────────────────────────────── */
.sp-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sp-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  overflow: hidden;
}

.sp-main {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

/* ─── 4. SIDEBAR ─────────────────────────────────────────── */
.sp-sidebar {
  width: var(--sidebar-w);
  background: var(--c-sidebar-bg);
  color: var(--c-sidebar-text);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--c-gray-200);
  z-index: 100;
  flex-shrink: 0;
}

/* Logo */
.sp-sidebar-logo {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--c-gray-100);
  text-decoration: none;
  gap: 12px;
}
.sp-sidebar-logo-mark {
  font-size: 28px;
  color: var(--c-gray-900);
}
.sp-sidebar-logo-copy { display: flex; align-items: center; gap: 8px; }
.sp-sidebar-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-gray-900);
  letter-spacing: -0.5px;
}
.sp-sidebar-logo-text span { color: var(--c-primary); }
.sp-logo-badge {
  background: var(--c-gray-100);
  color: var(--c-gray-700);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
}

/* Nav */
.sp-nav {
  padding: 20px 12px;
  overflow-y: auto;
  flex: 1;
}
.sp-nav::-webkit-scrollbar { width: 4px; }
.sp-nav::-webkit-scrollbar-thumb { background: var(--c-gray-200); border-radius: 4px; }

.sp-nav-section {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-gray-400);
  letter-spacing: 1px;
  padding: 16px 12px 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.sp-accordion-icon { transition: transform .3s ease; font-size: 10px; }
.sp-accordion-icon.rotate { transform: rotate(180deg); }

.sp-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out, opacity .3s;
  opacity: 0;
}
.sp-accordion-content.open { max-height: 600px; opacity: 1; }

.sp-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--c-sidebar-text);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none !important;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  width: 100%;
  position: relative;
}
.sp-nav-item i {
  width: 18px;
  font-size: 15px;
  margin-right: 12px;
  color: var(--c-gray-400);
  transition: color .2s, transform .2s;
  text-align: center;
  flex-shrink: 0;
}
.sp-nav-item:hover {
  background: var(--c-gray-100);
  color: var(--c-gray-900);
  transform: translateX(2px);
}
.sp-nav-item:hover i { color: var(--c-primary); }
.sp-nav-item.active {
  background: var(--c-gray-900);
  color: var(--c-white);
  box-shadow: 0 2px 8px rgba(15,23,42,.15);
}
.sp-nav-item.active i { color: var(--c-white); }

.sp-nav-subitem {
  font-size: 13px;
  padding: 9px 14px;
}
.sp-nav-subitem i { font-size: 13px; }

.sp-nav-badge {
  margin-left: auto;
  background: var(--c-red-700);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 99px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  font-family: var(--font-body);
}

/* Sidebar user */
.sp-sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--c-gray-100);
}
.sp-sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sp-sidebar-user-avatar {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.sp-sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp-sidebar-user-name { font-size: 13px; font-weight: 700; color: var(--c-gray-900); }
.sp-sidebar-user-role { font-size: 11px; color: var(--c-gray-500); }
.sp-sidebar-user-logout {
  background: none; border: none; font-size: 16px;
  color: var(--c-gray-400); cursor: pointer; margin-left: auto;
  transition: color .2s; padding: 4px;
}
.sp-sidebar-user-logout:hover { color: var(--c-red-600); }

/* Sidebar overlay (mobile) */
.sp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 99;
}

/* ─── 5. TOPBAR ─────────────────────────────────────────── */
.sp-topbar {
  height: var(--header-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 90;
  flex-shrink: 0;
}
.sp-topbar-left  { display: flex; align-items: center; gap: 14px; }
.sp-topbar-right { display: flex; align-items: center; gap: 12px; }

.sp-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-gray-900);
  letter-spacing: -0.5px;
}

.sp-mobile-toggle {
  background: none; border: none; font-size: 18px;
  color: var(--c-gray-600); cursor: pointer; display: none; padding: 4px;
}

.sp-topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  border-radius: 999px;
  padding: 0 16px;
  height: 40px;
  color: var(--c-gray-400);
  font-size: 13px;
  min-width: 240px;
  cursor: text;
  transition: border-color .2s, box-shadow .2s;
}
.sp-topbar-search:hover {
  border-color: var(--c-gray-400);
  box-shadow: 0 0 0 3px var(--c-gray-100);
}
.sp-topbar-search kbd {
  background: var(--c-gray-200);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  margin-left: auto;
  font-family: var(--font-body);
}

.sp-topbar-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  color: var(--c-gray-600);
  font-size: 16px;
  position: relative;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}
.sp-topbar-btn:hover {
  background: var(--c-gray-900);
  color: #fff;
  border-color: var(--c-gray-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.sp-notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--c-red-600);
  border-radius: 50%;
  border: 2px solid #fff;
}

.sp-topbar-divider {
  width: 1px; height: 22px;
  background: var(--c-gray-200);
}

.sp-topbar-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  overflow: hidden;
}
.sp-topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sp-topbar-avatar-label { display: flex; flex-direction: column; }
.sp-topbar-avatar-label strong { font-size: 13px; color: var(--c-gray-900); font-weight: 700; line-height: 1.3; }
.sp-topbar-avatar-label span   { font-size: 11px; color: var(--c-gray-500); }

/* ─── 6. NOTIFICATION DROPDOWN ──────────────────────────── */
.sp-notif-wrapper { position: relative; }

.sp-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(15,23,42,.12);
  z-index: 9999;
  overflow: hidden;
  animation: notifSlideIn .2s ease;
}
.sp-notif-dropdown[hidden] { display: none; }

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sp-notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-gray-100);
  font-size: 14px; font-weight: 700; color: var(--c-gray-900);
}

.sp-notif-list { max-height: 320px; overflow-y: auto; }

.sp-notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  text-decoration: none; color: inherit;
  transition: background .15s;
  border-bottom: 1px solid var(--c-gray-50);
}
.sp-notif-item:last-child { border-bottom: none; }
.sp-notif-item:hover { background: var(--c-gray-50); }
.sp-notif-item.unread { background: #f0f4ff; }
.sp-notif-item.unread:hover { background: #e6ecfd; }

.sp-notif-item .icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
  background: var(--c-gray-100); color: var(--c-gray-600);
}
.sp-notif-item .icon.warning { background: #fef3c7; color: var(--c-amber-700); }
.sp-notif-item .icon.success { background: #d1fae5; color: var(--c-green-700); }
.sp-notif-item .icon.info    { background: #dbeafe; color: var(--c-blue-600); }
.sp-notif-item .icon.danger  { background: #fee2e2; color: var(--c-red-700); }

.sp-notif-item .content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-notif-item .content .baslik {
  font-size: 13px; font-weight: 700; color: var(--c-gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-notif-item .content .mesaj {
  font-size: 12px; color: var(--c-gray-500); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sp-notif-item .content .zaman { font-size: 11px; color: var(--c-gray-400); }

.sp-notif-empty { padding: 32px 16px; text-align: center; color: var(--c-gray-400); font-size: 13px; }
.sp-notif-mark  { cursor: pointer; color: var(--c-gray-500); font-size: 12px; font-weight: 500; }

.sp-notif-foot {
  display: block; text-align: center; padding: 11px;
  font-size: 13px; font-weight: 600; color: var(--c-primary);
  border-top: 1px solid var(--c-gray-100);
  background: var(--c-gray-50);
  transition: background .15s;
  text-decoration: none;
}
.sp-notif-foot:hover { background: var(--c-gray-100); }

/* ─── 7. FOOTER ─────────────────────────────────────────── */
.sp-footer {
  padding: 16px 28px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-gray-200);
  flex-shrink: 0;
}
.sp-footer-inner { font-size: 12px; color: var(--c-gray-400); font-weight: 500; text-align: right; }

/* ─── 8. PAGE HEADER ─────────────────────────────────────── */
.sp-page-header,
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.sp-page-title,
.admin-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-gray-900);
  letter-spacing: -0.5px;
  margin: 0;
}
.sp-page-subtitle,
.admin-page-subtitle {
  font-size: 13px;
  color: var(--c-gray-500);
  margin-top: 3px;
}

/* Breadcrumb */
.admin-breadcrumb { margin-bottom: 20px; }
.admin-breadcrumb ol {
  padding: 0; margin: 0;
  display: flex; align-items: center; gap: 6px;
  list-style: none; font-size: 12px; font-weight: 600; color: var(--c-gray-500);
}
.admin-breadcrumb li a { color: var(--c-gray-500); }
.admin-breadcrumb li a:hover { color: var(--c-primary); }
.admin-breadcrumb li.active { color: var(--c-gray-900); }
.admin-breadcrumb li:not(:last-child)::after {
  content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  margin-left: 6px; color: var(--c-gray-300);
}

/* ─── 9. BUTTONS — lm-btn (canonical) ──────────────────── */
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.lm-btn:hover       { transform: translateY(-1px); }
.lm-btn:active      { transform: translateY(0); }
.lm-btn:disabled,
.lm-btn[disabled]   { opacity: .45; cursor: not-allowed; pointer-events: none; }
a.lm-btn:hover      { text-decoration: none; }

/* Sizes */
.lm-btn-sm  { padding: 6px 13px !important; font-size: 12px !important; }
.lm-btn-lg  { padding: 12px 26px !important; font-size: 15px !important; }
.lm-btn-icon { width: 36px; height: 36px; padding: 0 !important; border-radius: var(--radius-sm); }

/* Variants */
.lm-btn-primary   { background: var(--c-gray-900); color: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.25); }
.lm-btn-primary:hover { background: var(--c-gray-800); box-shadow: 0 4px 12px rgba(15,23,42,.35); color: #fff; }

.lm-btn-secondary { background: var(--c-white); color: var(--c-gray-800); border: 1px solid var(--c-gray-200); }
.lm-btn-secondary:hover { background: var(--c-gray-50); border-color: var(--c-gray-300); color: var(--c-gray-900); }

.lm-btn-outline   { background: transparent; color: var(--c-gray-700); border: 1px solid var(--c-gray-300); }
.lm-btn-outline:hover { background: var(--c-gray-50); color: var(--c-gray-900); }

.lm-btn-ghost     { background: transparent; color: var(--c-gray-500); border: none; }
.lm-btn-ghost:hover { background: var(--c-gray-100); color: var(--c-gray-800); }

.lm-btn-danger    { background: var(--c-red-700); color: #fff; }
.lm-btn-danger:hover { background: #b91c1c; color: #fff; }

.lm-btn-success   { background: var(--c-green-600); color: #fff; }
.lm-btn-success:hover { background: #15803d; color: #fff; }

.lm-btn-warning   { background: var(--c-amber-700); color: #fff; }
.lm-btn-warning:hover { background: #b45309; color: #fff; }

.lm-btn-danger-soft {
  background: #fee2e2; color: var(--c-red-700);
  border: 1px solid #fecaca;
}
.lm-btn-danger-soft:hover { background: var(--c-red-700); color: #fff; border-color: var(--c-red-700); }

/* ── Bootstrap .btn override → Moonchrome ── */
.btn {
  font-family: var(--font-body) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all .15s !important;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 13px !important; font-size: 12px !important; border-radius: 7px !important; }
.btn-lg { padding: 12px 26px !important; font-size: 15px !important; border-radius: 10px !important; }

.btn-primary  { background: var(--c-gray-900) !important; border-color: var(--c-gray-900) !important; color: #fff !important; box-shadow: 0 2px 6px rgba(15,23,42,.2) !important; }
.btn-primary:hover, .btn-primary:focus { background: var(--c-gray-800) !important; border-color: var(--c-gray-800) !important; color: #fff !important; }

.btn-secondary { background: var(--c-white) !important; border-color: var(--c-gray-200) !important; color: var(--c-gray-800) !important; }
.btn-secondary:hover, .btn-secondary:focus { background: var(--c-gray-50) !important; border-color: var(--c-gray-300) !important; color: var(--c-gray-900) !important; }

.btn-success { background: var(--c-green-600) !important; border-color: var(--c-green-600) !important; color: #fff !important; }
.btn-success:hover { background: #15803d !important; border-color: #15803d !important; }

.btn-danger { background: var(--c-red-700) !important; border-color: var(--c-red-700) !important; color: #fff !important; }
.btn-danger:hover { background: #b91c1c !important; border-color: #b91c1c !important; }

.btn-warning { background: var(--c-amber-700) !important; border-color: var(--c-amber-700) !important; color: #fff !important; }
.btn-warning:hover { background: #b45309 !important; border-color: #b45309 !important; }

.btn-outline-secondary {
  background: transparent !important; border-color: var(--c-gray-300) !important; color: var(--c-gray-600) !important;
}
.btn-outline-secondary:hover { background: var(--c-gray-50) !important; color: var(--c-gray-800) !important; }

/* ── Backward-compat aliases ── */
/* sp-btn → lm-btn görsel eşdeğeri */
.sp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s; text-decoration: none; line-height: 1.4;
}
.sp-btn:hover  { transform: translateY(-1px); }
.sp-btn:active { transform: translateY(0); }
.sp-btn-lg { padding: 12px 26px !important; font-size: 15px !important; }
.sp-btn-sm { padding: 6px 13px !important; font-size: 12px !important; border-radius: 7px !important; }
.sp-btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

.sp-btn-primary  { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(15,23,42,.25); }
.sp-btn-primary:hover { box-shadow: 0 4px 14px rgba(15,23,42,.35); }
.sp-btn-secondary { background: var(--c-white); border-color: var(--c-gray-200); color: var(--c-gray-700); }
.sp-btn-secondary:hover { background: var(--c-gray-50); border-color: var(--c-gray-300); }
.sp-btn-danger  { background: #fee2e2; border-color: #fecaca; color: var(--c-red-700); }
.sp-btn-danger:hover  { background: var(--c-red-700); color: #fff; border-color: var(--c-red-700); }
.sp-btn-success { background: var(--c-green-600); border-color: var(--c-green-600); color: #fff; }
.sp-btn-success:hover { background: var(--c-green-700, #15803d); border-color: var(--c-green-700, #15803d); }
.sp-btn-warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.sp-btn-warning:hover { background: #f59e0b; border-color: #f59e0b; color: #fff; }

/* sp-row-action (tablo satır buton — mavi vurgu) */
.sp-row-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 110px; height: 34px; padding: 0 13px;
  border: 1px solid #dbeafe; border-radius: var(--radius-sm);
  background: #eff6ff; color: var(--c-blue-600);
  font-size: 12px; font-weight: 700; font-family: var(--font-body);
  text-decoration: none; transition: all .15s;
}
.sp-row-action:hover {
  background: var(--c-blue-600); border-color: var(--c-blue-600); color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,.2);
}
.sp-row-action i { font-size: 12px; }

/* ─── 10. CARDS ─────────────────────────────────────────── */
.sp-card,
.admin-card,
.card {
  background: var(--c-white) !important;
  border: 1px solid var(--c-gray-200) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 24px;
}

.sp-card-header,
.admin-card-header,
.card-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid var(--c-gray-100) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: transparent !important;
}

.sp-card-title,
.admin-card-title,
.card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c-gray-900) !important;
  margin: 0 !important;
  font-family: var(--font-body) !important;
}

.sp-card-subtitle,
.card-subtitle { font-size: 13px !important; color: var(--c-gray-500) !important; margin-top: 2px !important; }

.sp-card-body,
.admin-card-body,
.card-body { padding: 24px !important; }

.sp-card-footer,
.admin-card-footer,
.card-footer {
  padding: 14px 24px !important;
  border-top: 1px solid var(--c-gray-100) !important;
  background: var(--c-gray-50) !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

/* Stat / KPI kartı */
.sp-stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.sp-stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-gray-300); }
.sp-stat-card.border-primary { border-color: var(--c-primary) !important; border-width: 2px; }

.sp-stat-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sp-stat-icon-blue   { background: var(--c-blue-50);   color: var(--c-blue-600); }
.sp-stat-icon-green  { background: var(--c-green-50);  color: var(--c-green-700); }
.sp-stat-icon-red    { background: var(--c-red-50);    color: var(--c-red-700); }
.sp-stat-icon-amber  { background: var(--c-amber-50);  color: var(--c-amber-700); }
.sp-stat-icon-gray   { background: var(--c-gray-100);  color: var(--c-gray-600); }
.sp-stat-icon-purple { background: var(--c-purple-50); color: var(--c-purple-600); }

.sp-stat-info { display: flex; flex-direction: column; gap: 3px; }
.sp-stat-value,
.sp-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-gray-900);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
}
.sp-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ─── 11. TABLES ─────────────────────────────────────────── */
.sp-table-wrap { overflow-x: auto; width: 100%; }

.sp-table,
.table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.sp-table thead th,
.table thead th {
  background: var(--c-gray-50);
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-gray-500);
  border-bottom: 1px solid var(--c-gray-200);
  text-align: left;
  white-space: nowrap;
  font-family: var(--font-body);
}

.sp-table tbody td,
.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-gray-100);
  vertical-align: middle;
  color: var(--c-gray-800);
  font-size: 13.5px;
  font-weight: 500;
}

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

.sp-table tbody tr:hover,
.table tbody tr:hover { background: var(--c-gray-50); }

/* Empty table state */
.sp-table-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--c-gray-400);
  font-size: 13px;
  font-weight: 500;
}
.sp-table-empty i { display: block; font-size: 32px; margin-bottom: 10px; color: var(--c-gray-300); }

/* ─── 12. BADGES ─────────────────────────────────────────── */
.sp-badge,
.badge,
.sp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1;
  white-space: nowrap;
}

/* Color variants */
.sp-badge-green,  .sp-pill-green  { background: #dcfce7; color: #166534; }
.sp-badge-red,    .sp-pill-red    { background: #fee2e2; color: #991b1b; }
.sp-badge-amber,  .sp-pill-amber  { background: #fef3c7; color: #92400e; }
.sp-badge-gray,   .sp-pill-gray   { background: var(--c-gray-100); color: var(--c-gray-600); }
.sp-badge-blue,   .sp-pill-blue   { background: #dbeafe; color: #1e40af; }
.sp-badge-purple                  { background: #ede9fe; color: #6d28d9; }
.sp-pill-xs { font-size: 10px; padding: 1px 6px; }

/* Bootstrap .badge variants (override) */
.badge.bg-success { background: #dcfce7 !important; color: #166534 !important; }
.badge.bg-danger  { background: #fee2e2 !important; color: #991b1b !important; }
.badge.bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge.bg-primary { background: var(--c-gray-100) !important; color: var(--c-gray-900) !important; }
.badge.bg-secondary { background: var(--c-gray-200) !important; color: var(--c-gray-700) !important; }

/* ─── 13. FORMS ─────────────────────────────────────────── */
.sp-form-group { margin-bottom: 18px; }

.sp-form-label,
.form-label,
.admin-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gray-800);
  margin-bottom: 6px;
  font-family: var(--font-body);
}
.sp-form-label .req,
.admin-label .req { color: var(--c-red-600); margin-left: 2px; }

.sp-form-label-hint,
.form-text {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-gray-400);
  margin-top: 4px;
  line-height: 1.4;
}

.sp-form-input,
.sp-form-select,
.sp-form-textarea,
.form-control,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--c-gray-900);
  background: var(--c-white);
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}
.sp-form-input:focus,
.sp-form-select:focus,
.sp-form-textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(15,23,42,.08);
  outline: none;
}
.sp-form-input::placeholder,
.sp-form-textarea::placeholder,
.form-control::placeholder { color: var(--c-gray-400); opacity: 1; }

.sp-form-textarea { resize: vertical; min-height: 90px; }
.sp-form-input[type="password"] { letter-spacing: 2px; }
.sp-form-input.is-url { font-family: 'SFMono-Regular', 'Consolas', monospace; font-size: 13px; }

/* Input with icon */
.sp-input-icon { position: relative; }
.sp-input-icon > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--c-gray-400); font-size: 14px; pointer-events: none;
}
.sp-input-icon .sp-form-input { padding-left: 40px; }
.sp-input-icon .sp-form-input--has-toggle { padding-right: 42px; }
.admin-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--c-gray-400);
  cursor: pointer; padding: 0; line-height: 1; font-size: 14px;
}
.admin-pw-toggle:hover { color: var(--c-gray-700); }

/* Checkbox */
.admin-checkbox-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--c-gray-700);
  cursor: pointer; user-select: none;
}
.admin-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--c-primary); cursor: pointer;
}

/* Toggle switch */
.sp-toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.sp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.sp-toggle-slider {
  position: absolute; inset: 0; background: var(--c-gray-300);
  border-radius: 22px; cursor: pointer; transition: .3s;
}
.sp-toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sp-toggle input:checked + .sp-toggle-slider { background: var(--c-primary); }
.sp-toggle input:checked + .sp-toggle-slider::before { transform: translateX(20px); }

.sp-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--c-gray-100);
}
.sp-toggle-row:last-child { border-bottom: none; }
.sp-toggle-info { flex: 1; }
.sp-toggle-title { font-size: 13.5px; font-weight: 700; color: var(--c-gray-900); }
.sp-toggle-hint  { font-size: 12px; color: var(--c-gray-400); margin-top: 2px; }

/* ─── 14. TABS — pill (canonical) ───────────────────────── */
.sp-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--c-gray-100);
  border-radius: 10px;
  margin-bottom: 20px;
  border: none;
}

.sp-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--c-gray-500);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.sp-tab i { font-size: 13px; }
.sp-tab:hover { color: var(--c-gray-900); background: rgba(255,255,255,.6); }
.sp-tab.active {
  background: var(--c-white);
  color: var(--c-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}
.sp-tab-badge {
  background: var(--c-red-700); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 10px;
  padding: 2px 6px; margin-left: 2px; line-height: 1;
  font-family: var(--font-body);
}

.sp-tab-panel { display: none; }
.sp-tab-panel.active { display: block; }

/* Legacy: sp-settings-tabs → sp-tabs */
.sp-settings-tabs  { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--c-gray-100); border-radius: 10px; margin-bottom: 20px; }
.sp-settings-tab   {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: var(--font-body);
  color: var(--c-gray-500); border: none; background: transparent;
  cursor: pointer; transition: all .18s; text-decoration: none; white-space: nowrap;
}
.sp-settings-tab:hover { color: var(--c-gray-900); background: rgba(255,255,255,.6); }
.sp-settings-tab.active { background: var(--c-white); color: var(--c-primary); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sp-settings-panel { display: none; }
.sp-settings-panel.active { display: block; }

/* Legacy: sp-tab-container / sp-tab-link → same pill look */
.sp-tab-container { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--c-gray-100); border-radius: 10px; margin-bottom: 20px; border: none; }
.sp-tab-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px; border: none; bottom: auto; position: static;
  font-size: 13px; font-weight: 600; font-family: var(--font-body);
  color: var(--c-gray-500); background: transparent; text-decoration: none;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.sp-tab-link i { margin-right: 0; }
.sp-tab-link:hover { color: var(--c-gray-900); background: rgba(255,255,255,.6); }
.sp-tab-link.active { background: var(--c-white); color: var(--c-primary); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ─── 15. PAGINATION ─────────────────────────────────────── */
.sp-pagination,
.admin-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

.sp-page-btn,
.admin-pagination a,
.admin-pagination span,
.admin-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  color: var(--c-gray-700);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
}
.sp-page-btn:hover,
.admin-pagination a:hover,
.admin-pagination button:hover {
  background: var(--c-gray-50);
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.sp-page-btn.active,
.admin-pagination .active,
.admin-pagination .current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  cursor: default;
  pointer-events: none;
}
.sp-page-btn.disabled,
.admin-pagination .disabled { opacity: .4; pointer-events: none; }

/* ─── 16. MODALS ─────────────────────────────────────────── */
@keyframes spModalIn    { from { opacity:0; transform: scale(.96) translateY(-6px); } to { opacity:1; transform: scale(1) translateY(0); } }
@keyframes spOverlayIn  { from { opacity:0; } to { opacity:1; } }

.sp-modal-overlay,
.admin-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex; justify-content: center; align-items: center;
  animation: spOverlayIn .2s ease;
}
.sp-modal-overlay[hidden],
.sp-modal-overlay[aria-hidden="true"],
.admin-modal-overlay[hidden],
.admin-modal-overlay[aria-hidden="true"] { display: none !important; }

.sp-modal,
.admin-modal {
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.25);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: spModalIn .22s cubic-bezier(.16, 1, .3, 1);
}
.sp-modal-lg { max-width: 740px; }
.sp-modal-sm { max-width: 400px; }

.sp-modal-header,
.admin-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-gray-200);
}
.sp-modal-title,
.admin-modal-title {
  font-size: 17px; font-weight: 700; color: var(--c-gray-900);
  font-family: var(--font-body); margin: 0;
}
.sp-modal-close,
.admin-modal-close {
  background: none; border: none; font-size: 18px;
  color: var(--c-gray-400); cursor: pointer; transition: color .2s;
  padding: 2px;
}
.sp-modal-close:hover,
.admin-modal-close:hover { color: var(--c-red-600); }

.sp-modal-body,
.admin-modal-body { padding: 24px; }

.sp-modal-footer,
.admin-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--c-gray-200);
  background: var(--c-gray-50);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ─── 17. ALERTS ─────────────────────────────────────────── */
.admin-alert,
.sp-alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sp-alert i { font-size: 16px; flex-shrink: 0; }

.sp-alert-error,
.admin-alert-error  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.sp-alert-error i,
.admin-alert-error i { color: var(--c-red-700); }

.sp-alert-success,
.admin-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.sp-alert-success i,
.admin-alert-success i { color: var(--c-green-600); }

.sp-alert-warning   { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.sp-alert-warning i { color: var(--c-amber-700); }

.sp-alert-info      { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.sp-alert-info i    { color: var(--c-blue-600); }

/* ─── 18. FILTER BAR ─────────────────────────────────────── */
.sp-filter-bar {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
}
.sp-filter-group {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1; min-width: 160px;
}
.sp-filter-group label {
  font-size: 11px; font-weight: 700;
  color: var(--c-gray-500); text-transform: uppercase; letter-spacing: .4px;
}
.sp-filter-actions { display: flex; gap: 8px; align-items: flex-end; }

/* ─── 19. SETTINGS PAGE COMPONENTS ──────────────────────── */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px 28px;
}
.admin-settings-grid .sp-form-group.full-width { grid-column: 1 / -1; }

.sp-settings-section-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border-bottom: 1px solid var(--c-gray-100);
}
.sp-settings-section-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.sp-settings-section-icon.genel    { background: var(--c-blue-50);   color: var(--c-blue-600); }
.sp-settings-section-icon.sosyal   { background: var(--c-purple-50); color: var(--c-purple-600); }
.sp-settings-section-icon.analitik { background: var(--c-green-50);  color: var(--c-green-600); }
.sp-settings-section-icon.guvenlik { background: var(--c-red-50);    color: var(--c-red-700); }
.sp-settings-section-icon.mail     { background: #fff7ed; color: #ea580c; }

.sp-settings-section-title { font-size: 15px; font-weight: 700; color: var(--c-gray-900); }
.sp-settings-section-desc  { font-size: 12.5px; color: var(--c-gray-500); margin-top: 2px; }

.sp-settings-save-bar {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.sp-settings-save-bar .sp-save-hint {
  font-size: 12px; color: var(--c-gray-400);
  display: flex; align-items: center; gap: 6px;
}

/* Logo/Favicon preview */
.sp-logo-preview-wrap { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.sp-logo-preview {
  width: 120px; height: 48px;
  border: 2px dashed var(--c-gray-200);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gray-50); overflow: hidden; flex-shrink: 0;
}
.sp-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-logo-preview-empty { font-size: 11px; color: var(--c-gray-400); text-align: center; }
.sp-favicon-preview {
  width: 40px; height: 40px;
  border: 2px dashed var(--c-gray-200);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gray-50); overflow: hidden; flex-shrink: 0;
}
.sp-favicon-preview img { width: 32px; height: 32px; object-fit: contain; }

/* ─── 20. AUTH PAGES ─────────────────────────────────────── */
.admin-login-body {
  font-family: var(--font-body);
  background: var(--c-gray-50);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.admin-login-wrapper { width: 100%; max-width: 440px; }
.admin-login-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 44px 36px;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid var(--c-gray-200);
}

.admin-login-logo {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; margin-bottom: 24px;
}
.admin-login-logo-mark { font-size: 32px; color: var(--c-gray-900); }
.admin-login-logo span { font-size: 20px; color: var(--c-gray-900); font-weight: 600; letter-spacing: -.5px; }
.admin-login-logo span strong { font-weight: 800; }

.admin-login-title {
  font-size: 24px; font-weight: 800; color: var(--c-gray-900);
  text-align: center; margin-bottom: 6px; letter-spacing: -.5px;
  font-family: var(--font-brand);
}
.admin-login-sub {
  font-size: 13.5px; color: var(--c-gray-500); text-align: center;
  margin-bottom: 28px; line-height: 1.5;
}

.admin-login-btn {
  width: 100%; background: var(--c-gray-900); color: #fff;
  font-size: 14px; font-weight: 700; font-family: var(--font-body);
  border-radius: var(--radius-sm); padding: 13px; margin-top: 20px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(15,23,42,.2);
}
.admin-login-btn:hover { background: var(--c-gray-800); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15,23,42,.3); }

.admin-login-back { text-align: center; margin-top: 20px; font-size: 13.5px; }
.admin-login-back a {
  color: var(--c-gray-500); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 6px; transition: color .2s;
}
.admin-login-back a:hover { color: var(--c-gray-900); }

/* 2FA */
.admin-2fa-icon {
  display: flex; justify-content: center; margin-bottom: 22px;
}
.admin-2fa-icon i {
  font-size: 28px; color: var(--c-gray-900); background: var(--c-gray-100);
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px var(--c-gray-50);
}
.admin-2fa-input {
  width: 100%; padding: 13px; font-size: 24px; letter-spacing: 10px; text-indent: 10px;
  font-weight: 800; text-align: center;
  border: 2px solid var(--c-gray-200); border-radius: var(--radius-sm);
  background: var(--c-gray-50); color: var(--c-gray-900); transition: all .2s;
  font-family: var(--font-body); box-sizing: border-box;
}
.admin-2fa-input:focus { background: var(--c-white); border-color: var(--c-gray-900); outline: none; box-shadow: 0 0 0 3px rgba(15,23,42,.1); }
.admin-2fa-resend-form { margin-top: 18px; text-align: center; }
.admin-link-btn {
  background: none; border: none; color: var(--c-gray-900); font-size: 13.5px;
  font-weight: 700; font-family: var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px; border-radius: var(--radius-sm); transition: all .2s;
}
.admin-link-btn:hover { background: var(--c-gray-100); }

/* ─── 21. SWEETALERT2 THEME ──────────────────────────────── */
.sp-swal-popup {
  border-radius: var(--radius-md) !important;
  padding: 30px 26px 26px !important;
  box-shadow: 0 20px 50px rgba(15,23,42,.14), 0 4px 14px rgba(15,23,42,.08) !important;
  font-family: var(--font-body) !important;
  min-width: 320px !important; max-width: 420px !important;
}
.sp-swal-icon  { border: none !important; margin-bottom: 4px !important; }
.sp-swal-title { font-size: 16px !important; font-weight: 700 !important; color: var(--c-gray-900) !important; letter-spacing: -.01em !important; }
.sp-swal-body  { font-size: 13.5px !important; color: var(--c-gray-500) !important; line-height: 1.6 !important; }

.sp-swal-btn-confirm,
.sp-swal-btn-cancel {
  border-radius: 9px !important; font-size: 13px !important;
  font-weight: 600 !important; padding: 9px 20px !important;
  font-family: var(--font-body) !important;
  transition: opacity .15s, transform .1s !important;
}
.sp-swal-btn-confirm:hover,
.sp-swal-btn-cancel:hover { opacity: .88 !important; transform: translateY(-1px) !important; }
.sp-swal-btn-cancel {
  color: var(--c-gray-700) !important;
  border: 1.5px solid var(--c-gray-200) !important;
  background: var(--c-gray-50) !important;
}

/* ─── 22. TOAST CONTAINER ───────────────────────────────── */
.admin-toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}

/* ─── 23. UTILITIES ──────────────────────────────────────── */
/* Empty state */
.sp-empty-state {
  text-align: center; padding: 52px 20px;
  color: var(--c-gray-400); font-size: 13px; font-weight: 500;
}
.sp-empty-state i { display: block; font-size: 36px; margin-bottom: 12px; color: var(--c-gray-300); }
.sp-empty-state h4 { font-size: 15px; font-weight: 700; color: var(--c-gray-500); margin-bottom: 6px; }

/* Divider */
.sp-divider { border: none; border-top: 1px solid var(--c-gray-200); margin: 20px 0; }

/* Stat board grid */
.sp-stat-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* Text helpers */
.text-success { color: var(--c-green-700) !important; }
.text-danger  { color: var(--c-red-700)   !important; }
.text-warning { color: var(--c-amber-700) !important; }
.text-primary { color: var(--c-primary)   !important; }
.text-muted   { color: var(--c-gray-500)  !important; }

/* Background helpers */
.bg-success { background: #dcfce7 !important; color: #166534 !important; }
.bg-danger  { background: #fee2e2 !important; color: #991b1b !important; }
.bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.bg-primary { background: var(--c-gray-100) !important; color: var(--c-gray-900) !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ─── 24. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  .sp-mobile-toggle { display: flex; }

  .sp-sidebar {
    position: fixed;
    top: 0; left: 0; height: 100%;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  .sp-sidebar.open { transform: translateX(0); }
  .sp-sidebar-overlay.open { display: block; }

  .sp-topbar-search { min-width: 0; display: none; }
  .sp-main { padding: 20px; }
  .sp-topbar { padding: 0 18px; }
}

@media (max-width: 600px) {
  .sp-topbar-avatar-label { display: none; }
  .sp-main { padding: 16px; }
  .sp-stat-board { grid-template-columns: 1fr 1fr; }
}
