/* VestAlchemy skins: light (default) and Nasdaq-style deep blue.
   Enabled by <html data-theme="dark">; the toggle lives in the navbar (top right). */

[data-theme="dark"] body {
  background: #0a1526 !important;
  color: #e6edf7;
}

/* Navbar + footer + sidebar */
[data-theme="dark"] .navbar,
[data-theme="dark"] .navbar.bg-light {
  background: #0f1e36 !important;
  border-color: #1d3454 !important;
}
[data-theme="dark"] .navbar .navbar-brand,
[data-theme="dark"] .navbar .nav-link { color: #e6edf7 !important; }
[data-theme="dark"] .navbar .nav-link.active { color: #4da3ff !important; }
[data-theme="dark"] .navbar .btn-outline-secondary,
[data-theme="dark"] #themeToggle {
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] footer,
[data-theme="dark"] .bg-white { background: #0f1e36 !important; }
[data-theme="dark"] #sidebar,
[data-theme="dark"] .sidebar { background: #0f1e36 !important; border-color: #1d3454 !important; }
[data-theme="dark"] #sidebar a,
[data-theme="dark"] .sidebar a { color: #cbd5e1 !important; }
[data-theme="dark"] #sidebar a:hover,
[data-theme="dark"] .sidebar a:hover { color: #ffffff !important; }

/* Headings, text and links */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: #e6edf7 !important; }
[data-theme="dark"] .text-muted, [data-theme="dark"] .relation { color: #93a7c4 !important; }
[data-theme="dark"] a { color: #4da3ff; }

/* Cards, tables and grids */
[data-theme="dark"] .card,
[data-theme="dark"] .summary-card {
  background: #10203a !important;
  border-color: #1d3454 !important;
}
[data-theme="dark"] table { color: #e6edf7; }
[data-theme="dark"] th {
  background: #0f1e36 !important;
  color: #a9bcd8 !important;
  border-color: #1d3454 !important;
}
[data-theme="dark"] td { border-color: #1a2c47 !important; }
[data-theme="dark"] tbody tr:nth-child(even) { background: #0d1a30 !important; }
[data-theme="dark"] tbody tr:hover { background: #14294a !important; }

/* Forms */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #0f1e36 !important;
  color: #e6edf7 !important;
  border-color: #1d3454 !important;
}
[data-theme="dark"] input::placeholder { color: #6f85a3 !important; }

/* Insider Activity specifics */
[data-theme="dark"] .insider-table { background: #10203a !important; }
[data-theme="dark"] .insider-table .empty { background: #10203a !important; color: #93a7c4 !important; }
[data-theme="dark"] .summary-table th { background: #0f1e36 !important; }
[data-theme="dark"] .summary-table td { border-color: #1a2c47 !important; }
[data-theme="dark"] .tabs { border-color: #1d3454 !important; }
[data-theme="dark"] .tabs a { color: #93a7c4 !important; }
[data-theme="dark"] .tabs a.active { color: #4da3ff !important; border-color: #4da3ff !important; }
[data-theme="dark"] .pagination { color: #93a7c4 !important; }

/* Selected / hovered sidebar item: light-white highlight (like Nasdaq's dark nav) */
[data-theme="dark"] #sidebar .nav-link.vx-active {
  background-color: rgba(255, 255, 255, 0.10) !important;
  color: #4da3ff !important;
  box-shadow: inset 3px 0 0 #4da3ff !important;
}
[data-theme="dark"] #sidebar .nav-link:hover,
[data-theme="dark"] #sidebar .nav-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

/* Summary total rows inherit the same light text as the other rows */
[data-theme="dark"] .summary-table tr.total td {
  color: #ffffff !important;
}
