/* LinkGuard Theme (v12)
   Goal: modern SaaS feel with a distinct identity (not stock Bootstrap colors).
*/

:root {
  --lg-primary: #4F46E5;           /* Indigo */
  --lg-primary-600: #4338CA;
  --lg-accent: #14B8A6;            /* Teal */
  --lg-success: #22C55E;
  --lg-warning: #F59E0B;
  --lg-danger: #EF4444;

  --lg-bg: #15161C;
  --lg-surface: rgba(18,18,22,0.68);
  --lg-text: rgba(255,255,255,0.95);
  --lg-muted: rgba(255,255,255,0.74);
  --lg-border: rgba(255,255,255,0.12);

  --lg-sidebar: #2A2B33;
  --lg-sidebar-2: #15161C;
  --lg-sidebar-text: rgba(255,255,255,0.80);
  --lg-sidebar-muted: rgba(255,255,255,0.55);

  --lg-radius: 16px;
  --lg-radius-sm: 12px;
  --lg-shadow: 0 18px 45px rgba(2, 6, 23, 0.08);
  --lg-shadow-sm: 0 10px 25px rgba(2, 6, 23, 0.06);

  /* Bootstrap CSS variables overrides (Bootstrap 5.3+)
     This makes .btn-primary, links, badges etc use our brand.
  */
  --bs-body-font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --bs-body-bg: var(--lg-bg);
  --bs-body-color: var(--lg-text);

  /* Improve Bootstrap text contrast in dark UI */
  --bs-emphasis-color: rgba(255,255,255,0.96);
  --bs-heading-color: rgba(255,255,255,0.94);
  --bs-secondary-color: var(--lg-muted);
  --bs-tertiary-color: rgba(255,255,255,0.60);
  --bs-secondary-bg: rgba(18,18,22,0.60);
  --bs-tertiary-bg: rgba(18,18,22,0.52);
  --bs-border-color-translucent: rgba(255,255,255,0.10);

  --bs-primary: var(--lg-primary);
  --bs-primary-rgb: 79, 70, 229;

  --bs-success: var(--lg-success);
  --bs-success-rgb: 34, 197, 94;
  --bs-warning: var(--lg-warning);
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: var(--lg-danger);
  --bs-danger-rgb: 239, 68, 68;
  --bs-info: var(--lg-accent);
  --bs-info-rgb: 20, 184, 166;

  --bs-secondary: rgba(255,255,255,0.78);
  --bs-secondary-rgb: 51, 65, 85;
  --bs-link-color: var(--lg-primary);
  --bs-link-hover-color: var(--lg-primary-600);

  --bs-border-color: var(--lg-border);

  --bs-border-radius: 1rem;
  --bs-border-radius-sm: .85rem;
  --bs-border-radius-lg: 1.25rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global dark background */
.app-shell {
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(182,134,255,0.20), transparent 62%),
    radial-gradient(900px 520px at 78% 12%, rgba(255,210,143,0.18), transparent 60%),
    radial-gradient(1000px 700px at 60% 70%, rgba(86,220,255,0.12), transparent 55%),
    linear-gradient(180deg, #2A2B33 0%, #15161C 55%, #101116 100%);
}


/* Auth pages */
.auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(1100px 500px at 12% 10%, rgba(79, 70, 229, 0.18), transparent 60%),
    radial-gradient(900px 480px at 90% 12%, rgba(20, 184, 166, 0.14), transparent 55%),
    var(--lg-bg);
}

/* Improve readability of secondary text on dark auth/onboarding backgrounds */
.auth-shell .text-secondary,
.auth-shell .text-muted {
  color: rgba(255,255,255,0.78) !important;
}

/* Cards: soft border + shadow + rounded */
.card {
  background: rgba(18,18,22,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--lg-radius);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card .card-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(18,18,22,0.45);
  color: rgba(255,255,255,0.88);
}

/* Buttons: slightly bolder */
.btn {
  border-radius: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lg-primary), var(--lg-accent));
  border: 0;
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.btn-outline-secondary {
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.86);
  background: rgba(18,18,22,0.45);
}

.btn-outline-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
}

/* Tables: cleaner */
.table {
  --bs-table-bg: transparent;
}

.table thead th {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lg-muted);
  border-bottom: 1px solid var(--lg-border);
}

/* Subtle badges */
.badge {
  border-radius: 999px;
  padding: .45em .7em;
}

.badge-soft {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.16);
}

.badge-success-soft {
  background: rgba(34,197,94,0.16);
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(34,197,94,0.28);
}

.badge-warning-soft {
  background: rgba(245,158,11,0.18);
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(245,158,11,0.30);
}

.badge-danger-soft {
  background: rgba(239,68,68,0.18);
  color: rgba(255,255,255,0.90);
  border: 1px solid rgba(239,68,68,0.30);
}

.badge-neutral-soft {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Metric cards */
.metric {
  position: relative;
  overflow: hidden;
  border-radius: var(--lg-radius);
}

.metric:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 240px at 20% 0%, rgba(79, 70, 229, 0.14), transparent 55%);
  pointer-events: none;
}

.metric .metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 95, 239, 0.12);
  color: var(--lg-primary);
}

.metric.metric-danger .metric-icon {
  background: rgba(239, 68, 68, 0.12);
  color: var(--lg-danger);
}

.metric.metric-warning .metric-icon {
  background: rgba(245, 158, 11, 0.14);
  color: var(--lg-warning);
}

.metric.metric-accent .metric-icon {
  background: rgba(0, 194, 255, 0.14);
  color: var(--lg-accent);
}

.metric .metric-value {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.metric .metric-label {
  color: var(--lg-muted);
  font-weight: 600;
  font-size: .9rem;
}

/* Links inside cards should not look default */
.card a.stretched-link {
  z-index: 2;
}

/* Small helper */
.text-muted-2 { color: var(--lg-muted) !important; }

/* Utility: stronger shadow for hero / key cards */
.shadow-soft { box-shadow: var(--lg-shadow) !important; }

/* =============================
   v18.7 Design Refresh
   Reference-inspired: cleaner surfaces, stronger hierarchy, better forms/tables.
   ============================= */

:root {
  /* Slightly cleaner neutrals */
  --lg-bg: #15161C;
  --lg-surface: rgba(18,18,22,0.68);
  --lg-surface-2: rgba(18,18,22,0.45);
  --lg-border: rgba(255,255,255,0.12);
  --lg-border-strong: rgba(255,255,255,0.16);

  /* Shadows: a touch more premium */
  --lg-shadow: 0 28px 70px rgba(2, 6, 23, 0.10);
  --lg-shadow-sm: 0 16px 36px rgba(2, 6, 23, 0.07);

  /* Focus ring */
  --lg-focus: rgba(79, 70, 229, 0.18);
}

/* Typography tweaks */
h1, .h1 { letter-spacing: -0.02em; }
h2, .h2 { letter-spacing: -0.02em; }

/* Better inputs */
.form-control,
.form-select,
.input-group-text {
  border-color: var(--lg-border);
  border-radius: 14px;
}

.form-control,
.form-select {
  background: rgba(18,18,22,0.65);
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 .25rem var(--lg-focus);
}

.form-control::placeholder { color: rgba(255,255,255,0.55); }

/* Dropdowns / modals */
.dropdown-menu {
  border: 1px solid var(--lg-border);
  border-radius: 16px;
  box-shadow: var(--lg-shadow-sm);
  background: rgba(18,18,22,0.72);
  color: rgba(255,255,255,0.92);
}

.modal-content {
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  box-shadow: var(--lg-shadow);
  background: rgba(18,18,22,0.72);
  color: rgba(255,255,255,0.92);
}

/* Cards: more consistent header/footer */
.card {
  background: rgba(18,18,22,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--lg-radius);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card .card-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(18,18,22,0.45);
  color: rgba(255,255,255,0.88);
}

/* Tables: wrapped surface look */
.table-responsive {
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  box-shadow: var(--lg-shadow-sm);
  background: rgba(18,18,22,0.60);
}

.table {
  margin-bottom: 0;
}

.table-hover tbody tr:hover {
  background: rgba(79, 70, 229, 0.10);
}

.table td, .table th {
  vertical-align: middle;
}

/* Buttons: subtle depth */
.btn {
  box-shadow: 0 1px 0 rgba(2,6,23,0.03);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-light {
  border-color: var(--lg-border);
}

.btn-outline-primary:hover {
  border-color: rgba(79,70,229,0.35);
}

/* Pills (topbar + status) */
.lg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--lg-border);
  background: rgba(18,18,22,0.60);
  color: rgba(255,255,255,0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lg-pill .btn {
  box-shadow: none;
}

/* Small icon buttons */
.btn-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

/* Avatars */
.lg-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

/* Auth: more premium card */
.auth-card {
  border: 1px solid var(--lg-border);
  border-radius: 20px;
  box-shadow: var(--lg-shadow);
  background: rgba(18,18,22,0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
}

/* Code blocks */
.lg-code {
  background: rgba(18,18,22,0.65);
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  padding: 12px;
  white-space: pre-wrap;
  color: rgba(255,255,255,0.88);
}

/* =============================
   Dashboard (MoneyPilot-style) — v18.8.1
   Applies only on body.lg-dashboard
   ============================= */

body.lg-dashboard {
  --bs-body-bg: #15161C;
  --bs-body-color: rgba(255,255,255,0.92);

  background:
    radial-gradient(900px 520px at 18% 8%, rgba(182,134,255,0.20), transparent 62%),
    radial-gradient(900px 520px at 78% 12%, rgba(255,210,143,0.18), transparent 60%),
    radial-gradient(1000px 700px at 60% 70%, rgba(86,220,255,0.12), transparent 55%),
    linear-gradient(180deg, #2A2B33 0%, #15161C 55%, #101116 100%);
}

.lg-dashboard .app-topbar {
  background: rgba(18,18,22,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.lg-dashboard main.container-fluid {
  background: transparent;
}

.lg-dashboard .lg-pill {
  background: rgba(18,18,22,0.60);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
}

.lg-dashboard .lg-pill a,
.lg-dashboard .lg-pill button {
  color: rgba(255,255,255,0.90);
}

.dash-wrap {
  padding: 10px 6px 18px;
}

.dash-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-title {
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.95);
}

.dash-subtitle {
  color: rgba(255,255,255,0.62);
}

.dash-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18,18,22,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  font-size: .92rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dash-chip i { opacity: .85; }

/* Pastel metric cards */
.dash-metric {
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  color: #0F172A;
}

.dash-metric-lilac {
  background: linear-gradient(135deg, rgba(236,214,255,0.95), rgba(230,206,255,0.85));
}
.dash-metric-lemon {
  background: linear-gradient(135deg, rgba(242,250,196,0.95), rgba(234,246,168,0.85));
}
.dash-metric-mint {
  background: linear-gradient(135deg, rgba(204,244,246,0.95), rgba(182,236,239,0.85));
}

.dash-metric-label {
  font-weight: 650;
  opacity: .65;
  font-size: .95rem;
}

.dash-metric-value {
  font-size: 2.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dash-metric-sub {
  color: rgba(15,23,42,0.70);
  font-size: .92rem;
}

/* Slider-like meter */
.dash-meter {
  position: relative;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.20);
  overflow: hidden;
}
.dash-meter > span {
  display: block;
  height: 100%;
  width: var(--pos, 55%);
  background: rgba(15,23,42,0.55);
  border-radius: 999px;
}
.dash-meter::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--pos, 55%);
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.78);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* Dark panels for content area */
.dash-panel {
  background: rgba(18,18,22,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dash-panel .text-secondary,
.dash-section-sub {
  color: rgba(255,255,255,0.62) !important;
}

.dash-section-title {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-site-url {
  color: rgba(255,255,255,0.92);
  font-weight: 750;
  text-decoration: none;
}
.dash-site-url:hover { text-decoration: underline; }

.dash-meta { color: rgba(255,255,255,0.62); font-size: .92rem; }
.dash-meta-sep { margin: 0 6px; opacity: .6; }
.dash-meta-text { opacity: .92; }

.dash-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-mini-item {
  font-size: .9rem;
  color: rgba(255,255,255,0.62);
}

.dash-pill,
.dash-pill-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: .86rem;
}

.dash-pill:hover { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.92); }

.dash-pill-danger {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.28);
  color: rgba(255,255,255,0.90);
}

.dash-issues-link {
  text-decoration: none;
  text-align: right;
  color: rgba(255,255,255,0.92);
}
.dash-issues-count {
  display: block;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.dash-issues-label {
  display: block;
  font-size: .86rem;
  color: rgba(255,255,255,0.62);
}

/* Select on dark bg */
.lg-dashboard .dash-select {
  min-width: 240px;
  background: rgba(18,18,22,0.65);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
}
.lg-dashboard .dash-select option { color: #0F172A; }

/* Buttons on dark bg */
.lg-dashboard .btn-outline-light,
.lg-dashboard .btn-outline-secondary {
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
}
.lg-dashboard .btn-outline-light:hover,
.lg-dashboard .btn-outline-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

/* Active scan widget cards (rendered by JS) */
.lg-dashboard .card {
  background: rgba(18,18,22,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--lg-radius);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lg-dashboard .card .text-secondary {
  color: rgba(255,255,255,0.62) !important;
}
.lg-dashboard .progress {
  background: rgba(255,255,255,0.14);
}
.lg-dashboard .progress-bar {
  background-color: rgba(255,255,255,0.55);
}

/* Forms on dark */
.form-control, .form-select {
  background-color: rgba(18,18,22,0.55);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
}
.form-control::placeholder {
  color: rgba(255,255,255,0.45);
}
.form-control:focus, .form-select:focus {
  background-color: rgba(18,18,22,0.65);
  border-color: rgba(182,134,255,0.45);
  box-shadow: 0 0 0 .25rem rgba(182,134,255,0.18);
  color: rgba(255,255,255,0.92);
}
.form-check-input {
  background-color: rgba(18,18,22,0.55);
  border-color: rgba(255,255,255,0.18);
}
.form-check-input:checked {
  background-color: var(--lg-primary);
  border-color: var(--lg-primary);
}

/* Dropdowns */
.dropdown-menu {
  background: rgba(18,18,22,0.80);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dropdown-item {
  color: rgba(255,255,255,0.86);
}
.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.dropdown-divider {
  border-top-color: rgba(255,255,255,0.10);
}

/* Modals */
.modal-content {
  background: rgba(18,18,22,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.modal-header {
  border-bottom-color: rgba(255,255,255,0.10);
}
.modal-footer {
  border-top-color: rgba(255,255,255,0.10);
}
.btn-close {
  filter: invert(1) grayscale(100%);
  opacity: .75;
}
.btn-close:hover {
  opacity: .95;
}

/* Alert buttons: keep consistent on dark */
.alert .btn-light {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
}
.alert .btn-light:hover {
  background: rgba(255,255,255,0.16);
}

/* Topbar title contrast */
.app-topbar .fw-bold {
  color: rgba(255,255,255,0.95);
}
/* Alerts (flash messages) */
.alert {
  background: rgba(18,18,22,0.70);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.alert-success {
  border-color: rgba(34,197,94,0.30);
}
.alert-danger {
  border-color: rgba(239,68,68,0.30);
}
.alert-warning {
  border-color: rgba(245,158,11,0.30);
}
.alert-info {
  border-color: rgba(182,134,255,0.30);
}

/* Toasts */
.toast {
  background: rgba(18,18,22,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.toast-header {
  background: rgba(18,18,22,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}

/* Tables */
.table {
  color: rgba(255,255,255,0.88);
}
.table thead th {
  color: rgba(255,255,255,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.table td, .table th {
  border-color: rgba(255,255,255,0.08) !important;
}

/* List group */
.list-group-item {
  background: rgba(18,18,22,0.55);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
}

/* Progress */
.progress {
  background: rgba(255,255,255,0.10);
}
.progress-bar {
  background: linear-gradient(135deg, var(--lg-primary), var(--lg-accent));
}

/* Text helpers for dark UI */
.app-shell .text-secondary,
.app-shell .text-muted {
  color: rgba(255,255,255,0.74) !important;
}
.app-shell .dash-metric .text-secondary,
.app-shell .dash-metric .text-muted {
  color: rgba(15,23,42,0.70) !important;
}

/* Topbar readability */
.lg-topbar .btn-outline-secondary {
  color: rgba(255,255,255,0.92);
}
.lg-topbar .dropdown-toggle {
  background: rgba(18,18,22,0.45);
  border-color: rgba(255,255,255,0.16);
}
.lg-topbar .dropdown-toggle:hover {
  background: rgba(255,255,255,0.10);
}
.lg-topbar .dropdown-toggle .text-truncate {
  color: rgba(255,255,255,0.92);
}
.lg-avatar {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}


/* Light utility adaptation for dark theme */
.app-shell .bg-white {
  background-color: rgba(18,18,22,0.60) !important;
}
.app-shell .text-dark {
  color: rgba(255,255,255,0.92) !important;
}

.app-shell .bg-light {
  background-color: rgba(255,255,255,0.10) !important;
}
.app-shell .bg-light.border {
  border-color: rgba(255,255,255,0.14) !important;
}
.app-shell .bg-light.text-dark {
  color: rgba(255,255,255,0.90) !important;
}
.app-shell pre.bg-light,
.app-shell .bg-light pre {
  background-color: rgba(18,18,22,0.65) !important;
}
