/* ═══════════════════════════════════════════
   NOS Admin Panel — Main CSS v2.0
   Nations of Sky · 2026
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
  --r-xs:  6px;
  --r-sm:  8px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;
  --r-2xl: 22px;

  --sidebar-w: 260px;
}

/* ══════════════════════════════════════
   DARK THEME (Default)
══════════════════════════════════════ */
:root,
[data-theme="dark"] {
  --accent:       #4F8AF9;
  --accent-light: #7BABFF;
  --accent-dark:  #2260E8;
  --accent-grad:  linear-gradient(135deg, #2260E8 0%, #4F8AF9 100%);

  --bg:       #070A11;
  --surface:  #0C1019;
  --surface2: #111620;
  --surface3: #171E2D;

  --border:   rgba(255, 255, 255, 0.07);
  --border2:  rgba(79, 138, 249, 0.35);

  --text:     #E8EDF8;
  --text-dim: #9AA5BE;
  --muted:    #5C6B85;

  --danger:   #F05252;
  --success:  #10B981;
  --warning:  #F59E0B;
  --info:     #4F8AF9;
  --purple:   #8B5CF6;

  --modal-overlay-bg: rgba(0, 0, 0, 0.7);
  --panel-overlay-bg: rgba(0, 0, 0, 0.5);

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
  --shadow-card:  0 4px 16px rgba(0,0,0,0.3);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-toast: 0 8px 24px rgba(0,0,0,0.4);

  --table-hover:     rgba(255, 255, 255, 0.03);
  --scrollbar-thumb: rgba(255, 255, 255, 0.1);
  --scrollbar-hover: rgba(255, 255, 255, 0.2);

  /* Backward compat aliases */
  --gold:       var(--accent);
  --gold-light: var(--accent-light);
  --gold-dark:  var(--accent-dark);
  --gold-grad:  var(--accent-grad);
}

/* ══════════════════════════════════════
   LIGHT THEME
══════════════════════════════════════ */
[data-theme="light"] {
  --accent:       #2563EB;
  --accent-light: #4F8AF9;
  --accent-dark:  #1D4ED8;
  --accent-grad:  linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);

  --bg:       #F0F4FD;
  --surface:  #FFFFFF;
  --surface2: #F5F7FF;
  --surface3: #EBF0FA;

  --border:   rgba(0, 0, 0, 0.07);
  --border2:  rgba(37, 99, 235, 0.3);

  --text:     #0D1117;
  --text-dim: #4B5563;
  --muted:    #8A96AA;

  --danger:   #DC2626;
  --success:  #059669;
  --warning:  #D97706;
  --info:     #2563EB;
  --purple:   #7C3AED;

  --modal-overlay-bg: rgba(0, 0, 0, 0.4);
  --panel-overlay-bg: rgba(0, 0, 0, 0.25);

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-toast: 0 8px 24px rgba(0,0,0,0.12);

  --table-hover:     rgba(0, 0, 0, 0.025);
  --scrollbar-thumb: rgba(0, 0, 0, 0.12);
  --scrollbar-hover: rgba(0, 0, 0, 0.22);

  --gold:       var(--accent);
  --gold-light: var(--accent-light);
  --gold-dark:  var(--accent-dark);
  --gold-grad:  var(--accent-grad);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ── LAYOUT ── */
.admin-layout { display: flex; height: 100vh; overflow-x: hidden; overflow-y: auto; }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sidebar-brand {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: var(--accent-grad);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.brand-text { flex: 1; min-width: 0; }
.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
}

.nav-section {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 0 10px;
  margin: 18px 0 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 1px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  background: var(--surface2);
  color: var(--text-dim);
}

.nav-item.active {
  background: rgba(79, 138, 249, 0.1);
  color: var(--accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 2.5px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 28px;
  height: 28px;
  background: var(--surface2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.nav-item.active .nav-icon {
  background: rgba(79, 138, 249, 0.15);
}

.nav-label { flex: 1; }

.nav-badge {
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.logout-btn:hover {
  background: rgba(240, 82, 82, 0.08);
  border-color: rgba(240, 82, 82, 0.15);
  color: var(--danger);
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── TOP BAR ── */
.topbar {
  height: 54px;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-btn {
  width: 32px;
  height: 32px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.15s;
}
.topbar-btn:hover {
  color: var(--accent);
  border-color: var(--border2);
  background: var(--surface3);
}

.theme-toggle {
  width: 32px;
  height: 32px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.15s;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border2);
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.admin-chip:hover { border-color: var(--border2); }

.admin-avatar {
  width: 26px;
  height: 26px;
  background: var(--accent-grad);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.admin-name { font-size: 12px; font-weight: 600; color: var(--text); }

/* ── PAGE CONTENT ── */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

/* ══════════════════════════════════════
   KPI CARDS
══════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: var(--shadow-card);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.kpi-card.gold::before   { background: var(--accent-grad); }
.kpi-card.green::before  { background: linear-gradient(90deg, #059669, #10B981); }
.kpi-card.red::before    { background: linear-gradient(90deg, #DC2626, #F05252); }
.kpi-card.blue::before   { background: var(--accent-grad); }
.kpi-card.purple::before { background: linear-gradient(90deg, #7C3AED, #8B5CF6); }
.kpi-card.orange::before { background: linear-gradient(90deg, #D97706, #F59E0B); }

.kpi-icon {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
  color: var(--text-dim);
}
.kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 5px;
}
.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

/* ══════════════════════════════════════
   SECTION CARD
══════════════════════════════════════ */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-body { padding: 16px; }
.section-body.no-pad { padding: 0; }

/* ══════════════════════════════════════
   TABLE
══════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

.nos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.nos-table th {
  padding: 9px 14px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.nos-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.nos-table tr:last-child td { border-bottom: none; }
.nos-table tbody tr:hover td { background: var(--table-hover); }

.agent-cell { display: flex; align-items: center; gap: 10px; }
.agent-avatar {
  width: 30px;
  height: 30px;
  background: var(--accent-grad);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.agent-name-cell { font-weight: 600; }
.agent-email-cell { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: rgba(16,185,129,0.1);  color: #10B981; border: 1px solid rgba(16,185,129,0.2); }
.badge-danger  { background: rgba(240,82,82,0.1);   color: #F05252; border: 1px solid rgba(240,82,82,0.2); }
.badge-warning { background: rgba(245,158,11,0.1);  color: #F59E0B; border: 1px solid rgba(245,158,11,0.2); }
.badge-info    { background: rgba(79,138,249,0.1);  color: #4F8AF9; border: 1px solid rgba(79,138,249,0.2); }
.badge-purple  { background: rgba(139,92,246,0.1);  color: #8B5CF6; border: 1px solid rgba(139,92,246,0.2); }
.badge-muted   { background: rgba(92,107,133,0.1);  color: var(--muted); border: 1px solid rgba(92,107,133,0.15); }
.badge-gold    { background: rgba(79,138,249,0.1);  color: var(--accent); border: 1px solid rgba(79,138,249,0.2); }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 138, 249, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 138, 249, 0.4);
}

.btn-ghost {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover {
  border-color: var(--border2);
  color: var(--text);
  background: var(--surface3);
}

.btn-danger {
  background: rgba(240,82,82,0.08);
  border: 1px solid rgba(240,82,82,0.2);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(240,82,82,0.15); }

.btn-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--success);
}
.btn-success:hover { background: rgba(16,185,129,0.15); }

.btn-info {
  background: rgba(79,138,249,0.08);
  border: 1px solid rgba(79,138,249,0.2);
  color: var(--info);
}
.btn-info:hover { background: rgba(79,138,249,0.15); }

.btn-sm   { padding: 5px 11px; font-size: 12px; border-radius: var(--r-sm); }
.btn-icon { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: var(--r-sm); }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-grid   { display: grid; gap: 14px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full   { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.form-label .req { color: var(--danger); }

.form-input {
  padding: 9px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--accent);
  background: var(--surface3);
  box-shadow: 0 0 0 3px rgba(79, 138, 249, 0.1);
}
.form-input::placeholder { color: var(--muted); opacity: 0.5; }
select.form-input option { background: var(--surface2); color: var(--text); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-bg);
  backdrop-filter: blur(4px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  min-width: 320px;
  max-width: 460px;
  width: 90%;
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  width: 28px;
  height: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.15s;
}
.modal-close:hover {
  color: var(--danger);
  border-color: rgba(240, 82, 82, 0.3);
}

.modal-msg { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.6; }
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; }

/* ══════════════════════════════════════
   SLIDE PANEL
══════════════════════════════════════ */
.panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--panel-overlay-bg);
  backdrop-filter: blur(3px);
  z-index: 8000;
}
.panel-overlay.open { display: block; }

.slide-panel {
  position: fixed;
  top: 0; right: -520px; bottom: 0;
  width: 500px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 8001;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.slide-panel.open { right: 0; }

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.panel-close {
  width: 28px;
  height: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.15s;
}
.panel-close:hover { color: var(--danger); }
.panel-body { flex: 1; overflow-y: auto; padding: 20px; }
.panel-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-toast);
  pointer-events: all;
  min-width: 220px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.toast.hide { animation: toastOut 0.25s ease forwards; }
.toast-success { border-left: 2px solid var(--success); }
.toast-error   { border-left: 2px solid var(--danger); }
.toast-warning { border-left: 2px solid var(--warning); }
.toast-info    { border-left: 2px solid var(--info); }

@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); }   to { opacity:0; transform:translateX(20px); } }

/* ══════════════════════════════════════
   LOADING & EMPTY
══════════════════════════════════════ */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 13px;
}
.empty-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.35; display: block; }

/* ══════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════ */
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 8px 12px 8px 30px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 138, 249, 0.1);
}
.search-input::placeholder { color: var(--muted); opacity: 0.5; }

/* ══════════════════════════════════════
   DIVIDER & TABS
══════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

.tabs {
  display: flex;
  gap: 2px;
  background: var(--surface2);
  border-radius: var(--r-md);
  padding: 3px;
  margin-bottom: 18px;
}
.tab-btn {
  flex: 1;
  padding: 7px 12px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.tab-btn.active {
  background: var(--accent-grad);
  color: #fff;
}
.tab-btn:hover:not(.active) { color: var(--text-dim); background: var(--surface3); }
.tab-panel        { display: none; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.3s ease both; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .slide-panel { width: 100%; }
}

/* ══════════════════════════════════════
   LIST ITEMS
══════════════════════════════════════ */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--table-hover); }

.list-info { flex: 1; min-width: 0; }
.list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.list-action { flex-shrink: 0; margin-left: 12px; }
