/* ============================================
   Medical Store — Modern Design System v2.0
   ============================================ */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;

  --sidebar-width: 256px;
  --topbar-height: 62px;

  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #1e293b;
  --bg-topbar: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-sidebar: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.2s ease;
}

[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #0f172a;
  --bg-topbar: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  transition: background-color .3s, color .3s;
}

a { text-decoration: none; }

/* ─── App Layout ────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ─── Sidebar ───────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1040;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.sidebar-brand {
  padding: 0 1.25rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  flex-shrink: 0;
}

.sidebar-brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .95rem; flex-shrink: 0;
}

.sidebar-brand-text { color: white; font-weight: 700; font-size: .875rem; line-height: 1.25; }
.sidebar-brand-text small { display: block; color: var(--text-sidebar); font-size: .68rem; font-weight: 400; }

.sidebar-nav { flex: 1; padding: .75rem 0 1rem; }

.sidebar-section-title {
  padding: .5rem 1.25rem .25rem;
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #475569;
  margin-top: .5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1.25rem;
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: .845rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #fff; background: var(--primary); }
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #93c5fd;
  border-radius: 0 2px 2px 0;
}
.sidebar-link i { width: 16px; text-align: center; font-size: .875rem; flex-shrink: 0; }

.sidebar-badge {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: .62rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

.sidebar-footer {
  padding: .875rem 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .625rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-user:hover { background: rgba(255,255,255,.07); }

.sidebar-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .8rem; font-weight: 700; flex-shrink: 0;
}

.sidebar-user-name { color: white; font-size: .8rem; font-weight: 600; }
.sidebar-user-role { color: var(--text-sidebar); font-size: .69rem; }

/* ─── Main Wrapper ──────────────────────────── */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left .3s ease;
}

/* ─── Top Bar ───────────────────────────────── */
.top-bar {
  height: var(--topbar-height);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky; top: 0;
  z-index: 1030;
  box-shadow: var(--shadow-sm);
}

.top-bar-toggle {
  background: none; border: none;
  padding: .45rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: none;
  line-height: 1;
}
.top-bar-toggle:hover { background: var(--bg-body); color: var(--text-primary); }

.top-bar-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); flex: 1; }
.top-bar-title small { display: block; font-size: .68rem; font-weight: 400; color: var(--text-secondary); margin-top: -1px; }

.top-bar-actions { display: flex; align-items: center; gap: .375rem; }

.top-bar-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: .825rem;
}
.top-bar-btn:hover { background: var(--bg-body); color: var(--text-primary); border-color: var(--primary); }

/* ─── Main Content ──────────────────────────── */
.main-content { flex: 1; padding: 1.5rem; overflow-x: hidden; }

/* ─── Cards ─────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.card-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-header h5, .card-header h6 { margin: 0; font-weight: 700; color: var(--text-primary); font-size: .875rem; }
.card-body { padding: 1.25rem; }

/* ─── Stat Cards ────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  display: flex; align-items: center; gap: .875rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--text-primary);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.stat-icon.blue   { background: #dbeafe; color: #2563eb; }
.stat-icon.green  { background: #d1fae5; color: #10b981; }
.stat-icon.amber  { background: #fef3c7; color: #f59e0b; }
.stat-icon.red    { background: #fee2e2; color: #ef4444; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.cyan   { background: #cffafe; color: #06b6d4; }

.stat-value { font-size: 1.65rem; font-weight: 800; line-height: 1; color: var(--text-primary); }
.stat-label { font-size: .775rem; color: var(--text-secondary); margin-top: .2rem; }

/* ─── Feature Cards ─────────────────────────── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.feature-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: .75rem;
}
.feature-card-icon.blue   { background: #dbeafe; color: #2563eb; }
.feature-card-icon.green  { background: #d1fae5; color: #10b981; }
.feature-card-icon.amber  { background: #fef3c7; color: #f59e0b; }
.feature-card-icon.red    { background: #fee2e2; color: #ef4444; }
.feature-card-icon.purple { background: #ede9fe; color: #7c3aed; }
.feature-card-icon.cyan   { background: #cffafe; color: #06b6d4; }

.feature-card-title { font-size: .9rem; font-weight: 700; color: var(--text-primary); margin-bottom: .2rem; }
.feature-card-desc  { font-size: .775rem; color: var(--text-secondary); margin: 0 0 .625rem; }
.feature-card-link  { font-size: .775rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .25rem; }

/* ─── Tables ────────────────────────────────── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-card-header {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.table-card-title { font-size: .875rem; font-weight: 700; color: var(--text-primary); margin: 0; }

.table-search { position: relative; }
.table-search input {
  padding: .375rem .75rem .375rem 2rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: .8rem;
  width: 210px;
  transition: var(--transition);
}
.table-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
[data-theme="dark"] .table-search input { background: #0f172a; color: #f1f5f9; border-color: #334155; }
.table-search i { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: .7rem; pointer-events: none; }

.table { margin: 0; width: 100%; border-collapse: collapse; font-size: .855rem; color: var(--text-primary); }
.table thead th {
  background: var(--bg-body);
  color: var(--text-secondary);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
[data-theme="dark"] .table thead th { background: rgba(255,255,255,.03); }
.table tbody tr { border-bottom: 1px solid var(--border-color); transition: background .15s; }
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: rgba(37,99,235,.04); }
.table tbody td { padding: .75rem 1rem; vertical-align: middle; }
.table-bordered tbody td, .table-bordered thead th { border: 1px solid var(--border-color); }

/* ─── Buttons ───────────────────────────────── */
.btn {
  font-size: .855rem; font-weight: 600;
  border-radius: var(--radius-md);
  padding: .475rem .95rem;
  transition: var(--transition);
  border: none;
  display: inline-flex; align-items: center; gap: .375rem;
  cursor: pointer; line-height: 1.5;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.35); transform: translateY(-1px); }
.btn-success { background: var(--secondary); color: #fff; }
.btn-success:hover { background: var(--secondary-dark); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,.35); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,.35); transform: translateY(-1px); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,.35); transform: translateY(-1px); }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #475569; color: #fff; }
.btn-outline-primary { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-sm { font-size: .775rem; padding: .3rem .65rem; }
.btn-icon { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ─── Forms ─────────────────────────────────── */
.form-label { font-size: .8rem; font-weight: 600; color: var(--text-primary); margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: .475rem .75rem;
  font-size: .855rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
  background: var(--bg-card);
  color: var(--text-primary);
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: #0f172a; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus { background: #0f172a; color: #f1f5f9; }

/* ─── Badges ────────────────────────────────── */
.badge { font-size: .69rem; font-weight: 700; padding: .28em .6em; border-radius: 20px; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-approved,.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-solid    { background: #ede9fe; color: #5b21b6; }
.badge-liquid   { background: #cffafe; color: #155e75; }
.bg-pending     { background: #fef3c7 !important; color: #92400e !important; }
.bg-approved    { background: #d1fae5 !important; color: #065f46 !important; }
.bg-rejected    { background: #fee2e2 !important; color: #991b1b !important; }
.bg-accepted    { background: #d1fae5 !important; color: #065f46 !important; }

/* ─── Alerts ────────────────────────────────── */
.alert {
  border: none; border-radius: var(--radius-md);
  padding: .8rem 1rem;
  font-size: .855rem; font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
}
.alert-success  { background: #d1fae5; color: #065f46; }
.alert-danger   { background: #fee2e2; color: #991b1b; }
.alert-warning  { background: #fef3c7; color: #92400e; }
.alert-info     { background: #cffafe; color: #155e75; }

/* ─── Modals ────────────────────────────────── */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.modal-header { padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.modal-title  { font-weight: 700; font-size: .95rem; color: var(--text-primary); }
.modal-body   { padding: 1.25rem; }
.modal-footer { padding: .875rem 1.25rem; border-top: 1px solid var(--border-color); }
[data-theme="dark"] .btn-close { filter: invert(1); }

/* ─── Section Headers ───────────────────────── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

/* ─── Page Header ───────────────────────────── */
.page-header { margin-bottom: 1.5rem; }
.page-title  { font-size: 1.35rem; font-weight: 800; color: var(--text-primary); margin-bottom: .2rem; }
.page-subtitle { font-size: .855rem; color: var(--text-secondary); margin: 0; }

/* ─── Low Stock ─────────────────────────────── */
.qty-low    { color: #f59e0b; font-weight: 700; }
.qty-danger { color: #ef4444; font-weight: 700; }
.qty-ok     { color: #10b981; font-weight: 600; }

/* ─── Empty State ───────────────────────────── */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-secondary); }
.empty-state i { font-size: 2.25rem; opacity: .35; display: block; margin-bottom: .625rem; }
.empty-state p { margin: 0; font-size: .875rem; }

/* ─── Login Page ────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  top: -200px; right: -200px; border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 70%);
  bottom: -100px; left: -100px; border-radius: 50%;
}
.login-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%; max-width: 420px;
  position: relative; z-index: 1;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.55);
}
.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-logo img { max-height: 80px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.login-title { font-size: 1.5rem; font-weight: 800; color: white; text-align: center; margin-bottom: .25rem; }
.login-subtitle { color: rgba(255,255,255,.45); font-size: .855rem; text-align: center; margin-bottom: 1.75rem; }
.login-form .form-label { color: rgba(255,255,255,.75); font-size: .8rem; }
.login-form .form-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: white; padding: .625rem .875rem;
}
.login-form .form-control::placeholder { color: rgba(255,255,255,.28); }
.login-form .form-control:focus {
  background: rgba(255,255,255,.13);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,.22);
}
.login-btn {
  width: 100%; padding: .7rem;
  font-size: .9rem; font-weight: 700;
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition);
}
.login-btn:hover { background: var(--primary-dark); box-shadow: 0 8px 24px rgba(37,99,235,.45); transform: translateY(-2px); }
.login-footer { margin-top: 1.25rem; text-align: center; color: rgba(255,255,255,.35); font-size: .775rem; }
.password-field { position: relative; }
.password-field .pwd-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.35);
  cursor: pointer; padding: 0; font-size: .825rem;
}

/* ─── Report Page ───────────────────────────── */
.report-summary {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.25rem;
}
.report-summary-value { font-size: 2rem; font-weight: 800; }
.report-summary-label { font-size: .855rem; opacity: .8; }

/* ─── Animations ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .35s ease both; }
.fade-in-up:nth-child(1) { animation-delay: .05s; }
.fade-in-up:nth-child(2) { animation-delay: .10s; }
.fade-in-up:nth-child(3) { animation-delay: .15s; }
.fade-in-up:nth-child(4) { animation-delay: .20s; }
.fade-in-up:nth-child(5) { animation-delay: .25s; }
.fade-in-up:nth-child(6) { animation-delay: .30s; }

/* ─── Sidebar Overlay ───────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1039;
}
.sidebar-overlay.show { display: block; }

/* ─── Responsive ────────────────────────────── */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-wrapper { margin-left: 0; }
  .top-bar-toggle { display: flex; }
}
@media (max-width: 575.98px) {
  .main-content { padding: 1rem; }
  .stat-value { font-size: 1.4rem; }
  .table-card-header { flex-direction: column; align-items: flex-start; }
  .table-search input { width: 100%; }
  .login-card { padding: 1.75rem 1.25rem; }
}

/* ─── Print ─────────────────────────────────── */
@media print {
  .sidebar, .top-bar, .no-print { display: none !important; }
  .main-wrapper { margin-left: 0; }
  .main-content { padding: 0; }
  body { background: white; }
  .card, .table-card { box-shadow: none; border: 1px solid #ddd; border-radius: 0; }
  .report-summary { background: #1e293b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ─── Dark mode overrides ───────────────────── */
[data-theme="dark"] .modal-content { background: #1e293b; }
[data-theme="dark"] .card { background: var(--bg-card); border-color: var(--border-color); }
[data-theme="dark"] .table { color: var(--text-primary); }
[data-theme="dark"] .alert-success  { background: rgba(16,185,129,.15); color: #6ee7b7; }
[data-theme="dark"] .alert-danger   { background: rgba(239,68,68,.15);  color: #fca5a5; }
[data-theme="dark"] .alert-warning  { background: rgba(245,158,11,.15); color: #fcd34d; }
[data-theme="dark"] .badge-pending  { background: rgba(245,158,11,.2); color: #fcd34d; }
[data-theme="dark"] .badge-approved,.badge-accepted { background: rgba(16,185,129,.2); color: #6ee7b7; }
[data-theme="dark"] .badge-rejected { background: rgba(239,68,68,.2); color: #fca5a5; }
[data-theme="dark"] .stat-icon.blue   { background: rgba(37,99,235,.2); }
[data-theme="dark"] .stat-icon.green  { background: rgba(16,185,129,.2); }
[data-theme="dark"] .stat-icon.amber  { background: rgba(245,158,11,.2); }
[data-theme="dark"] .stat-icon.red    { background: rgba(239,68,68,.2); }
[data-theme="dark"] .stat-icon.purple { background: rgba(124,58,237,.2); }
[data-theme="dark"] .stat-icon.cyan   { background: rgba(6,182,212,.2); }
[data-theme="dark"] .feature-card-icon.blue   { background: rgba(37,99,235,.2); }
[data-theme="dark"] .feature-card-icon.green  { background: rgba(16,185,129,.2); }
[data-theme="dark"] .feature-card-icon.amber  { background: rgba(245,158,11,.2); }
[data-theme="dark"] .feature-card-icon.red    { background: rgba(239,68,68,.2); }
[data-theme="dark"] .feature-card-icon.purple { background: rgba(124,58,237,.2); }
[data-theme="dark"] .feature-card-icon.cyan   { background: rgba(6,182,212,.2); }
[data-theme="dark"] .top-bar-btn { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .table-search input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
