/* =====================================================================
   theme.css — application shell redesign.
   Loaded after site.css and overrides its shell rules: flat neutral
   backgrounds (no tiled pattern), a structured sidebar with grouped
   navigation and a user card, a compact topbar with a working search,
   and a clean authentication layout. Component styles for tables, cards,
   forms and buttons still come from site.css.
   ===================================================================== */

:root {
  --shell-bg: #f3f5f9;
  --shell-surface: #ffffff;
  --shell-border: #e5e9f0;
  --shell-text: #0f172a;
  --shell-muted: #64748b;
  --sidebar-bg: #0f172a;
  --sidebar-bg-2: #131c31;
  --sidebar-text: #cbd5e1;
  --sidebar-text-dim: #7c8aa5;
  --sidebar-active: rgba(16, 185, 129, 0.16);
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-width: 256px;
  --topbar-height: 64px;
  --accent: #059669;
  --accent-soft: rgba(5, 150, 105, 0.12);
}

body.dark-mode {
  --shell-bg: #0b1220;
  --shell-surface: #111a2e;
  --shell-border: rgba(148, 163, 184, 0.16);
  --shell-text: #f1f5f9;
  --shell-muted: #94a3b8;
  --sidebar-bg: #0a1120;
  --sidebar-bg-2: #0d1526;
}

/* ---------- page background ---------- */
body,
body.dark-mode {
  background: var(--shell-bg);
}

.main-content {
  background: var(--shell-bg);
  min-width: 0;
}

.page-content,
body.dark-mode .page-content {
  background-color: var(--shell-bg);
  background-image: none;
  padding: 1.75rem 2rem 2.5rem;
}

.page-header {
  border-radius: 1rem;
  box-shadow: none;
  background: var(--shell-surface);
  border: 1px solid var(--shell-border);
  padding: 1.25rem 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  margin: 0;
}

.dashboard-panel,
.stat-card,
.card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--shell-border);
}

/* ---------- sidebar ---------- */
.sidebar,
body.dark-mode .sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin: 0;
  min-height: var(--topbar-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: #ffffff;
}

.brand-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.brand-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--sidebar-text-dim);
  margin-top: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1rem;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.nav-group {
  margin-bottom: 0.9rem;
}

.nav-group-label {
  padding: 0.55rem 0.75rem 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sidebar-text-dim);
}

.sidebar-link,
.sidebar-link:hover,
.sidebar-link.active {
  transform: none;
  box-shadow: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  margin: 0 0 0.15rem;
  border-radius: 8px;
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link .sidebar-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-text-dim);
  transition: color 0.15s ease;
  transform: none;
  filter: none;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
  color: #34d399;
  transform: none;
  filter: none;
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #34d399;
}

.sidebar-footer {
  margin-top: 0;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2a44;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-meta {
  min-width: 0;
  flex: 1;
}

.sidebar-user-name {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  color: var(--sidebar-text-dim);
  font-size: 0.72rem;
}

.sidebar-user-logout {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-text-dim);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.sidebar-user-logout:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.sidebar-impersonation {
  margin-bottom: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  font-size: 0.75rem;
  line-height: 1.35;
}

.sidebar-impersonation a {
  color: #fde68a;
  font-weight: 600;
  text-decoration: underline;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 900;
}

/* ---------- topbar ---------- */
.topbar,
body.dark-mode .topbar {
  height: var(--topbar-height);
  padding: 0 1.5rem;
  background: var(--shell-surface);
  border-bottom: 1px solid var(--shell-border);
  box-shadow: none;
  backdrop-filter: none;
  gap: 1rem;
  flex-wrap: nowrap;
}

.topbar-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--shell-border);
  background: var(--shell-surface);
  color: var(--shell-text);
}

.topbar-search {
  flex: 0 1 380px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 8px;
  background: var(--shell-bg);
  border: 1px solid var(--shell-border);
  box-shadow: none;
  gap: 0.5rem;
}

.topbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.topbar-search .search-icon {
  color: var(--shell-muted);
  display: inline-flex;
}

.topbar-search input {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--shell-text);
  font-size: 0.875rem;
  min-width: 0;
}

.topbar-search input::placeholder {
  color: var(--shell-muted);
}

.topbar-search kbd {
  font-size: 0.66rem;
  color: var(--shell-muted);
  background: var(--shell-surface);
  border: 1px solid var(--shell-border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.topbar-end {
  gap: 0.35rem;
}

.topbar-icon-btn,
.topbar-notification {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--shell-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.topbar-icon-btn:hover,
.topbar-notification:hover {
  background: var(--shell-bg);
  color: var(--shell-text);
  transform: none;
}

.notification-badge {
  top: 4px;
  right: 4px;
  min-width: 16px;
  width: auto;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.62rem;
  border: 2px solid var(--shell-surface);
  box-sizing: content-box;
}

.topbar-profile,
.topbar-profile:hover {
  background: transparent;
  box-shadow: none;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 8px;
  color: var(--shell-text);
  margin-left: 0.35rem;
}

.topbar-profile:hover {
  background: var(--shell-bg);
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.profile-role-tag {
  font-size: 0.68rem;
  color: var(--shell-muted);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.profile-chevron {
  margin-left: 0.25rem;
  color: var(--shell-muted);
}

/* ---------- dashboard additions ---------- */
.dashboard-hero {
  background: var(--shell-surface);
}

.hero-badge {
  background: var(--accent-soft);
}

.stat-card .stat-value {
  font-size: 1.6rem;
}

.stat-card .stat-sublabel {
  color: var(--shell-muted);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
  height: 200px;
  padding: 0.5rem 0 0;
}

.bar-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.4rem;
  min-width: 0;
}

.bar-chart-track {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 150, 105, 0.04) 100%);
  border-radius: 8px;
}

.bar-chart-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  transition: height 0.4s ease;
}

.bar-chart-bar.is-current {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}

.bar-chart-label {
  font-size: 0.72rem;
  color: var(--shell-muted);
  white-space: nowrap;
}

.bar-chart-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-text);
  white-space: nowrap;
}

.trend-up { color: #059669; font-weight: 600; }
.trend-down { color: #dc2626; font-weight: 600; }
.trend-flat { color: var(--shell-muted); font-weight: 600; }

.share-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.share-row-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.share-row-head strong {
  font-weight: 600;
  color: var(--shell-text);
}

.share-row-head span {
  color: var(--shell-muted);
  white-space: nowrap;
}

.share-track {
  height: 8px;
  border-radius: 999px;
  background: var(--shell-bg);
  overflow: hidden;
  margin-top: 0.35rem;
}

.share-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.empty-state {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--shell-muted);
  font-size: 0.875rem;
  border: 1px dashed var(--shell-border);
  border-radius: 10px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.recent-table th,
.recent-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--shell-border);
  text-align: left;
  vertical-align: middle;
}

.recent-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shell-muted);
  font-weight: 600;
}

.recent-table tr:last-child td {
  border-bottom: none;
}

.recent-table .num {
  text-align: right;
  white-space: nowrap;
}

/* ---------- notifications ---------- */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.notification-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--shell-border);
  background: var(--shell-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.notification-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.warning { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.notification-icon.danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }
.notification-icon.info { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.notification-icon.success { background: rgba(16, 185, 129, 0.16); color: #047857; }

.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--shell-text);
}

.notification-message {
  font-size: 0.82rem;
  color: var(--shell-muted);
  margin-top: 0.15rem;
}

/* ---------- search results ---------- */
.search-section {
  margin-bottom: 1.5rem;
}

.search-section h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--shell-muted);
  margin-bottom: 0.6rem;
}

/* ---------- authentication layout ---------- */
.login-app,
body.login-app.dark-mode {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(16, 185, 129, 0.28), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(5, 150, 105, 0.24), transparent 60%),
              linear-gradient(160deg, #0b1220 0%, #0f172a 55%, #0d2a24 100%);
  background-attachment: fixed;
}

.login-page {
  padding: 2.5rem 1rem;
}

.login-panel {
  width: min(100%, 960px);
  grid-template-columns: 1.05fr 1fr;
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

.login-promo {
  padding: 3rem 2.75rem;
  background: linear-gradient(160deg, #0f172a 0%, #12343a 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.login-brand .brand-box {
  width: 44px;
  height: 44px;
}

.login-brand-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.login-brand-sub {
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-promo h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.login-promo p {
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.7;
  font-size: 0.95rem;
}

.promo-features {
  gap: 0.6rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
}

.promo-features li::before {
  color: #34d399;
}

.login-form {
  padding: 3rem 2.75rem;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-form h2 {
  font-size: 1.5rem;
}

.login-form .form-control {
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.login-form .btn {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.login-help {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

.login-help a {
  color: var(--accent);
  font-weight: 600;
}

.auth-card {
  width: min(100%, 460px);
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

.auth-card h1 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.auth-card p.lead-text {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-card .form-control {
  border-radius: 8px;
}

.auth-card .btn {
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- error page ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* ---------- responsive shell ---------- */
@media (max-width: 991px) {
  .app-shell {
    flex-direction: row;
  }

  .sidebar,
  body.dark-mode .sidebar {
    position: fixed;
    left: calc(-1 * var(--sidebar-width) - 10px);
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    z-index: 1000;
    transition: left 0.25s ease;
  }

  .sidebar.active {
    left: 0;
    box-shadow: 20px 0 60px rgba(2, 6, 23, 0.5);
  }

  .sidebar.active ~ .sidebar-overlay,
  .sidebar-overlay.active {
    display: block;
  }

  .sidebar-brand {
    display: flex;
  }

  .sidebar-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .sidebar-link span:nth-child(2) {
    display: inline;
  }

  .main-content {
    width: 100%;
  }

  .topbar {
    flex-wrap: nowrap;
  }

  .topbar-search {
    flex: 1 1 auto;
  }

  .profile-name,
  .profile-role-tag,
  .profile-chevron {
    display: none;
  }

  .page-content,
  body.dark-mode .page-content {
    padding: 1.25rem 1rem 2rem;
  }
}

@media (max-width: 767px) {
  .topbar,
  body.dark-mode .topbar {
    padding: 0 1rem;
  }

  .topbar-search kbd {
    display: none;
  }

  .login-panel {
    grid-template-columns: 1fr;
  }

  .login-promo {
    padding: 2rem 1.5rem;
    border-right: none;
  }

  .login-form {
    padding: 2rem 1.5rem;
  }

  .bar-chart {
    height: 160px;
    gap: 0.4rem;
  }
}

/* ---------- stat cards: icon top right, value, label, sublabel ---------- */
.stat-card,
a.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: var(--shell-surface);
}

.stat-card:hover,
.dashboard-panel:hover {
  transform: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.stat-card,
a.stat-card {
  align-items: stretch;
}

.stat-card .stat-card-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.stat-card-top > div:first-child {
  display: flex;
  flex: 1;
  flex-direction: column-reverse;
  gap: 0.25rem;
  min-width: 0;
}

.stat-card .stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--shell-muted);
}

.stat-card .stat-value {
  margin-top: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--shell-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.stat-card .stat-sublabel {
  font-size: 0.8rem;
  color: var(--shell-muted);
}

.dashboard-panel {
  background: var(--shell-surface);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

/* ---------- sidebar brand: allow the company name to wrap ---------- */
.brand-title {
  white-space: normal;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- dark mode text contrast for components from site.css ---------- */
body.dark-mode .page-title,
body.dark-mode .panel-header h2,
body.dark-mode .panel-header h3,
body.dark-mode .stat-card .stat-value,
body.dark-mode .summary-value,
body.dark-mode .profile-name,
body.dark-mode .share-row-head strong,
body.dark-mode .bar-chart-value,
body.dark-mode .recent-table td,
body.dark-mode .notification-title,
body.dark-mode .card,
body.dark-mode .table tbody td,
body.dark-mode .form-label,
body.dark-mode .modal-content,
body.dark-mode .chart-title,
body.dark-mode .activity-title,
body.dark-mode .stock-product,
body.dark-mode .invoice-details .invoice-meta strong,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5 {
  color: var(--shell-text);
}

body.dark-mode .page-subtitle,
body.dark-mode .panel-subtitle,
body.dark-mode .stat-card .stat-label,
body.dark-mode .stat-card .stat-sublabel,
body.dark-mode .text-muted,
body.dark-mode .recent-table th,
body.dark-mode .table thead th,
body.dark-mode .notification-message {
  color: var(--shell-muted) !important;
}

body.dark-mode .page-header,
body.dark-mode .dashboard-panel,
body.dark-mode .stat-card,
body.dark-mode .card,
body.dark-mode .notification-item,
body.dark-mode .modal-content,
body.dark-mode .table,
body.dark-mode .table tbody tr,
body.dark-mode .table thead {
  background: var(--shell-surface);
  border-color: var(--shell-border);
}

body.dark-mode .table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background: var(--shell-bg);
  border-color: var(--shell-border);
  color: var(--shell-text);
}

body.dark-mode .stat-card .stat-icon {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
}

body.dark-mode .share-track,
body.dark-mode .empty-state {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .topbar-menu-btn,
body.dark-mode .topbar-search kbd {
  background: var(--shell-surface);
  color: var(--shell-text);
}
