﻿/* Icon color & effects */
i[data-lucide] { stroke-width: 2.5; transition: color 0.15s, filter 0.15s; filter: drop-shadow(0 0 1px rgba(0,0,0,0.05)); }
i[data-lucide]:hover { filter: drop-shadow(0 0 3px currentColor); }
.card-icon[data-lucide], .nav-icon[data-lucide] { stroke-width: 2.5; }
[data-theme="dark"] .status-active, [data-theme="dark"] .sector-mixed { color: #34d399 !important; }
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --primary-ghost: rgba(13, 148, 136, 0.08);
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #1a2332;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --success-bg: #d1fae5;
  --success-text: #065f46;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --info-text: #1e40af;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* â”€â”€ Loading Overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition);
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* â”€â”€ Toast Notifications â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  width: calc(100% - 32px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.4;
  word-break: break-word;
}
.toast.toast-out { animation: toastOut 0.25s ease forwards; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-msg { flex: 1; }
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
  opacity: 0.6;
  flex-shrink: 0;
  padding: 0 2px;
  line-height: 1;
}
.toast-close:hover { opacity: 1; }
.toast.success { background: var(--success-bg); color: var(--success-text); border-left: 4px solid var(--success); }
.toast.error { background: var(--error-bg); color: var(--error-text); border-left: 4px solid var(--error); }
.toast.info { background: var(--info-bg); color: var(--info-text); border-left: 4px solid var(--info); }
.toast.warning { background: var(--warning-bg); color: var(--warning-text); border-left: 4px solid var(--warning); }

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

/* â”€â”€ Nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0 4px;
}
.nav-brand h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }
.nav-subtitle { font-size: 0.8rem; opacity: 0.85; }
.nav-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.nav-tab {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  position: relative;
}
.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #fff;
  border-radius: 3px 3px 0 0;
  transition: width var(--transition), left var(--transition);
}
.nav-tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-tab.active { color: #fff; font-weight: 600; }
.nav-tab.active::after { width: 60%; left: 20%; }

/* â”€â”€ Main â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#main-content { max-width: 1400px; margin: 0 auto; padding: 24px; }
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--text-secondary); }
h4 { font-size: 1rem; margin: 16px 0 8px; color: #475569; }
.section-desc { color: var(--text-muted); margin-bottom: 16px; }

/* â”€â”€ Stats â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card .stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--error); }
.stat-card .stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.stat-card .stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}
.stat-card .stat-trend.up { color: var(--success); }
.stat-card .stat-trend.down { color: var(--error); }
.stat-card .stat-trend.neutral { color: var(--text-muted); }
.stat-card .stat-empty { color: var(--text-muted); font-weight: 400; }
.stats-row { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* â”€â”€ Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  max-width: 600px;
}

/* â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
form label { display: block; margin-bottom: 10px; font-size: 0.9rem; color: #374151; }
form input, form select, form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}
form textarea { min-height: 60px; resize: vertical; }

.was-validated input:invalid, .was-validated select:invalid, .was-validated textarea:invalid {
  border-color: var(--error);
}
.was-validated input:invalid:focus, .was-validated select:invalid:focus, .was-validated textarea:invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.was-validated input:valid, .was-validated select:valid, .was-validated textarea:valid {
  border-color: var(--success);
}
.was-validated input:valid:focus, .was-validated select:valid:focus, .was-validated textarea:valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
}
form button:hover:not(:disabled) { background: var(--primary-dark); }
form button:active:not(:disabled) { transform: scale(0.98); }
form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* â”€â”€ Toolbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar button {
  background: #e2e8f0;
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
  font-weight: 500;
}
.toolbar button:hover:not(:disabled) { background: #cbd5e1; }
.toolbar button:disabled { opacity: 0.5; cursor: not-allowed; }

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.secondary-action {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.secondary-action:hover { background: var(--primary-dark); }
.rx-sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.rx-sync-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.rx-sync-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.rx-sync-stat span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}
.rx-sync-stat small {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rx-sync-stat.ok { border-left-color: var(--success); }
.rx-sync-stat.pending { border-left-color: var(--warning); }
.rx-sync-stat.error { border-left-color: var(--error); }
.rx-sync-list {
  display: grid;
  gap: 10px;
}
.rx-sync-row {
  display: grid;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.rx-sync-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rx-sync-status {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}
.rx-sync-status.ok {
  color: var(--success-text);
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.35);
}
.rx-sync-status.pending {
  color: var(--warning-text);
  background: var(--warning-bg);
  border-color: rgba(245, 158, 11, 0.35);
}
.rx-sync-status.error {
  color: var(--error-text);
  background: var(--error-bg);
  border-color: rgba(239, 68, 68, 0.35);
}
.rx-sync-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.rx-sync-meta span {
  background: var(--primary-ghost);
  border-radius: 999px;
  padding: 3px 8px;
}
.rx-sync-time {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* â”€â”€ Inventory â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.inv-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid var(--success);
  transition: transform var(--transition), box-shadow var(--transition);
}
.inv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.inv-critical { border-left-color: var(--error); }
.inv-low { border-left-color: var(--warning); }
.inv-ok { border-left-color: var(--success); }
.inv-card strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.inv-card .qty { font-size: 1.3rem; font-weight: 700; color: #1e293b; display: block; }
.inv-card .detail { font-size: 0.75rem; color: #94a3b8; display: block; margin-top: 4px; }

/* â”€â”€ Status Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-badge.OK, .status-badge.IN_STOCK { background: var(--success-bg); color: var(--success-text); }
.status-badge.LOW_STOCK { background: var(--warning-bg); color: var(--warning-text); }
.status-badge.CRITICAL, .status-badge.OUT_OF_STOCK { background: var(--error-bg); color: var(--error-text); }

/* â”€â”€ List Items â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.list-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  transition: background var(--transition);
}
.list-item:hover { background: var(--border-light); }
.list-item:last-child { border-bottom: none; }
.list-item strong { color: #1e293b; }
.list-item.LOW, .list-item.MEDIUM { border-left: 3px solid var(--warning); margin-bottom: 4px; }
.list-item.HIGH, .list-item.CRITICAL { border-left: 3px solid var(--error); margin-bottom: 4px; }
.list-item button {
  float: right;
  background: #e2e8f0;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background var(--transition);
}
.list-item button:hover { background: #cbd5e1; }

/* â”€â”€ Alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert-item {
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.alert-item.OUT_OF_STOCK, .alert-item.CRITICAL { background: var(--error-bg); color: var(--error-text); }
.alert-item.LOW_STOCK { background: var(--warning-bg); color: var(--warning-text); }

/* â”€â”€ Table / Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}
.table-responsive > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 500px;
}
.table-responsive > table th,
.table-responsive > table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.table-responsive > table th {
  background: var(--border-light);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
}
.table-responsive > table tr:hover td { background: var(--primary-ghost); }
.table-responsive > table tr:last-child td { border-bottom: none; }

/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.8;
}
.empty-state .empty-text {
  font-size: 0.95rem;
  max-width: 280px;
}

/* â”€â”€ Misc â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.result-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}
.ok {
  color: var(--success-text);
  background: var(--success-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.error {
  color: var(--error-text);
  background: var(--error-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  #navbar { padding: 0 12px; }
  #main-content { padding: 16px; }
  .stat-card .stat-value { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  .form-card { max-width: 100%; }
  .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .toolbar button { font-size: 0.8rem; padding: 6px 12px; }
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-light: #1e293b;
  --success-bg: #064e3b;
  --success-text: #6ee7b7;
  --error-bg: #7f1d1d;
  --error-text: #fca5a5;
  --warning-bg: #78350f;
  --warning-text: #fcd34d;
  --info-bg: #1e3a5f;
  --info-text: #93c5fd;
  --primary-ghost: rgba(13, 148, 136, 0.15);
}

button.selected,
.btn-primary.selected,
.btn-secondary.selected,
.option-button.selected,
.nav-tab.active,
.tab-btn.active,
.card.selected,
.inventory-card.selected {
  border-color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 18%, var(--bg-card)) !important;
  color: var(--text) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .inventory-card,
[data-theme="dark"] table {
  background: #10211d;
  border-color: #29463d;
  color: #f0fdf4;
}
