/* ═══════════════════════════════════════════════════════════
   Nibras Control Panel — Custom CSS
   Supplements Tailwind CSS (loaded via CDN)
═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:       #1e40af;
  --primary-lt:    #eff6ff;
  --primary-md:    #3b82f6;
  --accent:        #7c3aed;
  --accent-lt:     #f5f3ff;
  --sidebar-w:     248px;
  --topbar-h:      64px;
  --border:        #e2e8f0;
  --text:          #0f172a;
  --text-2:        #475569;
  --text-3:        #94a3b8;
  --success:       #059669;
  --success-lt:    #ecfdf5;
  --warn:          #d97706;
  --warn-lt:       #fffbeb;
  --danger:        #dc2626;
  --danger-lt:     #fef2f2;
  --bg:            #f8fafc;
  --white:         #ffffff;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ══════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════ */
.nibras-wrap   { display: flex; height: 100vh; overflow: hidden; }
.nibras-main   { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.nibras-content{ flex: 1; overflow-y: auto; padding: 24px 28px; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .25s ease;
}

/* Brand */
.sidebar-brand {
  height: var(--topbar-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.brand-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.3px;
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.brand-sub {
  font-size: 9.5px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-top: 1px;
  white-space: nowrap;
}

/* Nav */
.sidebar-nav   { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section   { padding: 14px 20px 5px; font-size: 9.5px; font-weight: 700; color: var(--text-3); letter-spacing: 1px; text-transform: uppercase; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 20px;
  margin: 1px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.nav-item:hover  { background: var(--primary-lt); color: var(--primary); }
.nav-item.active {
  background: linear-gradient(90deg, var(--primary-lt), #f0f9ff);
  color: var(--primary);
  font-weight: 700;
  border-left: 3px solid var(--primary);
  padding-left: 17px;
}
/* RTL active border */
[dir="rtl"] .nav-item.active {
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 12px;
  padding-right: 17px;
}
.nav-icon  { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.nav-badge-warn { background: var(--warn); }
[dir="rtl"] .nav-badge { margin-left: 0; margin-right: auto; }

/* User footer */
.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 700; color: var(--text); }
.user-role { font-size: 11px; color: var(--text-3); }
.logout-btn {
  margin-left: auto;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; color: var(--text-3);
  transition: .12s; text-decoration: none;
}
.logout-btn:hover { background: var(--danger-lt); color: var(--danger); border-color: var(--danger); }
[dir="rtl"] .logout-btn { margin-left: 0; margin-right: auto; }

/* ══════════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════════ */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topbar-title       { font-size: 18px; font-weight: 800; color: var(--text); }
.topbar-subtitle    { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.topbar-spacer      { flex: 1; }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px; font-size: 13px; color: var(--text-3);
  width: 250px; background: var(--bg); cursor: text; transition: .15s;
}
.topbar-search:hover { border-color: var(--primary-md); }
.topbar-icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; transition: .12s;
  position: relative; flex-shrink: 0; text-decoration: none;
  color: var(--text-2);
}
.topbar-icon-btn:hover { background: var(--primary-lt); border-color: var(--primary-md); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--white);
}

/* Lang toggle pill */
.lang-toggle {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.lang-btn {
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; border: none; background: var(--bg);
  color: var(--text-3); transition: .15s;
}
.lang-btn.active { background: var(--primary); color: #fff; }
.lang-btn:hover:not(.active) { background: var(--primary-lt); color: var(--primary); }

/* Primary button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; font-size: 13px;
  font-weight: 700; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 2px 8px rgba(30,64,175,.25);
  transition: .15s; text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { opacity: .9; box-shadow: 0 4px 14px rgba(30,64,175,.35); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
  font-weight: 600; cursor: pointer;
  background: var(--white); border: 1px solid var(--border);
  color: var(--text-2); transition: .15s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--primary-md); color: var(--primary); background: var(--primary-lt); }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card-head  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 800; color: var(--text); }
.card-link  { font-size: 12px; color: var(--primary-md); cursor: pointer; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Searchable dropdown (combobox) result rows */
.search-result-item:hover { background: var(--primary-lt); }

/* KPI card */
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: .2s;
}
.kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.kpi-icon  { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.kpi-label { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.kpi-val, .kpi-value { font-size: 28px; font-weight: 900; color: var(--text); margin: 3px 0 2px; line-height: 1; }
.kpi-chg   { font-size: 11.5px; font-weight: 600; }
.kpi-up    { color: var(--success); }
.kpi-dn    { color: var(--danger); }
.kpi-nt    { color: var(--warn); }

/* Action icon buttons (badge style, matches .kpi-icon look) */
.btn-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px !important;
  border: none; cursor: pointer;
  background: rgba(59,130,246,0.12); color: #3b82f6;
  margin-inline-start: 6px;
  transition: .15s;
  vertical-align: middle;
}
.btn-icon:hover { filter: brightness(.92); transform: translateY(-1px); }
.btn-icon.danger { background: rgba(239,68,68,0.12); color: #ef4444; }
.btn-icon[style*="--success"] { background: rgba(16,185,129,0.12); }
.btn-icon[style*="--warning"], .btn-icon[style*="--warn"] { background: rgba(245,158,11,0.12); }
.btn-icon[style*="--primary"] { background: rgba(59,130,246,0.12); }
.btn-icon:disabled { opacity: .5; cursor: not-allowed; }

/* KPI grid layout (single row of KPI cards) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 992px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* Card header row (title + action link) */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.text-link { font-size: 12px; color: var(--primary-md); cursor: pointer; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.card-body { padding: 0; }

/* Reports */
.report-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.report-hub-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.report-hub-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.report-hub-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.report-hub-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.report-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.report-filter { min-width: 180px; }
.report-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  margin-top: 24px;
}
.report-chart-list { display: flex; flex-direction: column; gap: 12px; }
.report-chart-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  gap: 12px;
  align-items: center;
}
.report-chart-label {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-chart-track {
  height: 10px;
  background: #edf0f4;
  border-radius: 999px;
  overflow: hidden;
}
.report-chart-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d8cff, #65b4ff);
}
.report-chart-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.report-empty { text-align: center; padding: 28px; color: var(--text-3); }
.report-denied { color: var(--danger); font-weight: 700; }
@media (max-width: 1100px) {
  .report-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════════ */
.nibras-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nibras-table th {
  text-align: left; padding: 9px 12px;
  font-size: 10.5px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 2px solid var(--border); background: #fafbff;
}
[dir="rtl"] .nibras-table th { text-align: right; }
.nibras-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.nibras-table td:first-child { color: var(--text); font-weight: 600; }
[dir="rtl"] .nibras-table td:first-child { text-align: right; }
.nibras-table tr:last-child td { border-bottom: none; }
.nibras-table tr:hover td { background: #fafbff; }

/* Chips / badges */
.chip { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.chip-green  { background: var(--success-lt); color: var(--success); }
.chip-yellow { background: var(--warn-lt);    color: var(--warn); }
.chip-red    { background: var(--danger-lt);  color: var(--danger); }
.chip-blue   { background: var(--primary-lt); color: var(--primary); }
.chip-purple { background: var(--accent-lt);  color: var(--accent); }
.chip-gray   { background: #f1f5f9;           color: var(--text-2); }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 9px 13px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 13.5px; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--primary-md); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.form-control::placeholder { color: var(--text-3); }
.form-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: 100%; padding: 9px 32px 9px 13px; border-radius: 8px;
  border: 1px solid var(--border); background-color: var(--white);
  font-size: 13.5px; color: var(--text); outline: none; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.form-select:hover { border-color: var(--primary-md); }
.form-select:focus { border-color: var(--primary-md); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
[dir="rtl"] .form-select { background-position: left 12px center; padding-right: 13px; padding-left: 32px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; cursor: pointer; background: #cbd5e1; border-radius: 22px; transition: background-color .15s; }
.switch-slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-slider { background: var(--success, #22c55e); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }
[dir="rtl"] .switch input:checked + .switch-slider::before { transform: translateX(-18px); }

/* Role checklist (multi-select roles) */
.role-checklist {
  display: flex; flex-wrap: wrap; gap: 8px;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px;
  max-height: 140px; overflow-y: auto; background: var(--white);
}
.role-check-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 20px; border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.role-check-item input { accent-color: var(--primary-md); cursor: pointer; }
.role-check-item:has(input:checked) {
  background: var(--primary-lt); border-color: var(--primary-md); color: var(--primary);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════ */
.alert-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 8px;
}
.alert-crit   { background: var(--danger-lt); border-left: 3px solid var(--danger); }
.alert-warn   { background: var(--warn-lt);   border-left: 3px solid var(--warn); }
.alert-info   { background: var(--primary-lt);border-left: 3px solid var(--primary); }
[dir="rtl"] .alert-crit, [dir="rtl"] .alert-warn, [dir="rtl"] .alert-info { border-left: none; border-right: 3px solid currentColor; }
.al-icon  { font-size: 17px; margin-top: 1px; }
.al-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.al-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   STAT BARS
══════════════════════════════════════════════════════════ */
.stat-item  { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stat-item:last-child { border-bottom: none; }
.stat-name  { font-size: 13px; font-weight: 500; color: var(--text-2); width: 90px; flex-shrink: 0; }
.stat-bar-wrap { flex: 1; margin: 0 12px; height: 7px; background: var(--border); border-radius: 4px; }
.stat-fill  { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.stat-val   { font-size: 13px; font-weight: 700; color: var(--text); min-width: 36px; text-align: right; }
[dir="rtl"] .stat-val { text-align: left; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 20px; }
.page-btn {
  min-width: 34px; height: 34px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--white); color: var(--text-2);
  transition: .12s;
}
.page-btn:hover { border-color: var(--primary-md); color: var(--primary); background: var(--primary-lt); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 16px;
  padding: 28px; width: 520px; max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  animation: modalIn .2s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { font-size: 16px; font-weight: 800; }
.modal-close  { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-3); }
.modal-close:hover { background: var(--danger-lt); color: var(--danger); border-color: var(--danger); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
[dir="rtl"] .modal-footer { justify-content: flex-start; }

@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 2000;
}
[dir="rtl"] #toast-container { right: auto; left: 24px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  animation: toastIn .25s ease;
  min-width: 260px;
}
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warn    { background: var(--warn); }
.toast-info    { background: var(--primary); }
@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════════════════════
   LOADING SPINNER
══════════════════════════════════════════════════════════ */
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.loading-row { display: flex; align-items: center; justify-content: center; padding: 40px; gap: 12px; color: var(--text-3); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════════════════════════ */
.section-label {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ══════════════════════════════════════════════════════════
   ACTION BUTTONS (quick actions list)
══════════════════════════════════════════════════════════ */
.action-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  margin-bottom: 8px; border: 1px solid var(--border);
  background: var(--bg); transition: .15s; font-size: 13px;
  font-weight: 600; color: var(--text-2); text-decoration: none;
}
.action-item:hover { border-color: var(--primary-md); background: var(--primary-lt); color: var(--primary); }
.action-item:last-child { margin-bottom: 0; }
.action-arrow { margin-left: auto; color: var(--text-3); }
[dir="rtl"] .action-arrow { margin-left: 0; margin-right: auto; transform: scaleX(-1); }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
}
.login-card {
  background: var(--white); border-radius: 20px; padding: 40px;
  width: 420px; max-width: 95vw;
  box-shadow: 0 8px 40px rgba(30,64,175,.12);
  border: 1px solid var(--border);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; justify-content: center; }
.login-title { font-size: 22px; font-weight: 900; background: linear-gradient(135deg,#1e40af,#7c3aed); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.login-sub   { font-size: 11px; color: var(--text-3); letter-spacing: .5px; text-transform: uppercase; margin-top: 2px; text-align: center; }
