:root {
  /* Updated to match: #050607 100% */
  --bg-main: #090a0b;
  /* Updated to match: #090b12 50% */
  --bg-card: #090b12;
  /* Updated to match: #1b2130 0% */
  --bg-card-soft: #1b2130;

  --accent: #387cdd;
  --accent-soft: rgba(25, 240, 255, 0.25);
  --text-main: #f5f6fa;
  /* lighter muted text so it’s readable on dark bg */
  --text-muted: #a6b0c7;
  --border-subtle: #252837;
}

/* Base dark theme */

body.theme-dark {
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* Make ALL common text elements readable on dark background */
body.theme-dark,
body.theme-dark p,
body.theme-dark span,
body.theme-dark li,
body.theme-dark td,
body.theme-dark th,
body.theme-dark label,
body.theme-dark input,
body.theme-dark button,
body.theme-dark .form-control,
body.theme-dark .form-select {
  color: var(--text-main);
}

/* Override Bootstrap muted color so it’s not almost black */
body.theme-dark .text-muted,
body.theme-dark .form-text,
body.theme-dark .table .text-muted {
  color: var(--text-muted) !important;
}

/* Navbar / links */

.bg-black-90 {
  background-color: rgba(0, 0, 0, 0.9);
}

.text-accent {
  color: var(--accent) !important;
}

/* make sure navbar content is bright */
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-text {
  color: var(--text-main);
}

/* Buttons */

.btn-accent {
  color: var(--text-main);
  background: radial-gradient(circle at top left, var(--bg-card-soft) 0, var(--bg-card) 50%, var(--bg-main) 100%);
  border-color: var(--bg-card-soft);
}

.btn-accent:hover {
  color: var(--text-main);
  background: var(--bg-card-soft);
  border-color: var(--accent);
}

.btn-outline-accent {
  color: var(--text-main);
  background: radial-gradient(circle at top left, var(--bg-card-soft) 0, var(--bg-card) 50%, var(--bg-main) 100%);
  border-color: var(--bg-card-soft);
}

.btn-outline-accent:hover {
  color: var(--text-main);
  background: var(--bg-card-soft);
  border-color: var(--accent);
}

/* Cards */

.card-surface {
  /* Updated gradient using the new variables which match the hex codes */
  background: radial-gradient(circle at top left, var(--bg-card-soft) 0, var(--bg-card) 50%, var(--bg-main) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
}

.dark-background-color {
  background: radial-gradient(circle at top left, var(--bg-card-soft) 0, var(--bg-card) 50%, var(--bg-main) 100%);
}

/* Make sure text inside cards is bright */
.card-surface .card-title,
.card-surface .card-body,
.card-surface .card-body p,
.card-surface .card-body span,
.card-surface .card-body small,
.card-surface .form-label {
  color: var(--text-main);
}

/* Neon title */

.neon-title {
  color: #f5f6fa;
  text-shadow:
    0 0 6px rgba(47, 85, 147, 0.9),
    0 0 18px rgba(65, 119, 227, 0.7),
    0 0 36px rgba(48, 113, 205, 0.35);
}

/* Tables */

.table-dark {
  --bs-table-bg: rgba(0, 0, 0, 0.4);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
}

.table td,
.table th {
  border-color: rgba(255, 255, 255, 0.05);
}

/* Utility */

.border-accent {
  border-color: var(--accent) !important;
}

.border-accent-subtle {
  border-color: var(--border-subtle) !important;
}