/*
 * Zap SMS light theme — clean cool-gray canvas, white cards, purple brand (#6D5DFC).
 * High-contrast text for reporting / metrics readability.
 * Loaded after core.css; scoped to [data-bs-theme="light"].
 */
[data-bs-theme="light"] {
  /* Core brand */
  --bs-primary: #6d5dfc;
  --bs-primary-rgb: 109, 93, 252;
  --bs-link-color: #6d5dfc;
  --bs-link-color-rgb: 109, 93, 252;
  --bs-link-hover-color: #5c4cf0;
  --bs-link-hover-color-rgb: 92, 76, 240;

  --bs-primary-text-emphasis: #3d2fb8;
  --bs-primary-bg-subtle: #eeecfe;
  --bs-primary-border-subtle: #c7c2fc;

  /* Cyan accent (info / secondary highlight) */
  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;
  --bs-info-text-emphasis: #0369a1;
  --bs-info-bg-subtle: #e0f2fe;
  --bs-info-border-subtle: #bae6fd;

  --bs-success-text-emphasis: #15803d;
  --bs-warning-text-emphasis: #b45309;
  --bs-danger-text-emphasis: #b91c1c;

  /* Surfaces — soft cool gray page, pure white cards */
  --bs-body-bg: #f4f6fb;
  --bs-body-bg-rgb: 244, 246, 251;
  --bs-paper-bg: #ffffff;
  --bs-paper-bg-rgb: 255, 255, 255;
  --bs-base-color: #0f172a;
  --bs-base-color-rgb: 15, 23, 42;

  /* Typography — darker for clearer reporting */
  --bs-body-color: #334155;
  --bs-body-color-rgb: 51, 65, 85;
  --bs-heading-color: #0f172a;
  --bs-emphasis-color: #0f172a;
  --bs-emphasis-color-rgb: 15, 23, 42;
  --bs-secondary-color: #64748b;
  --bs-secondary-color-rgb: 100, 116, 139;
  --bs-secondary-bg: #f1f5f9;
  --bs-secondary-bg-rgb: 241, 245, 249;
  --bs-tertiary-color: rgba(51, 65, 85, 0.55);
  --bs-tertiary-bg: #f8fafc;

  --bs-border-color: #e2e8f0;
  --bs-border-color-translucent: rgba(15, 23, 42, 0.1);

  --bs-navbar-box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 0.25rem 0.85rem rgba(15, 23, 42, 0.05);
  --bs-focus-ring-color: rgba(109, 93, 252, 0.32);
  --bs-gradient-brand: linear-gradient(90deg, #6d5dfc 0%, #8a7bff 100%);
}

[data-bs-theme="light"] .card:not(.credit-hero-card):not(.ai-credit-hero):not(.hero-card),
[data-bs-theme="light"] .accordion,
[data-bs-theme="light"] .dropdown-menu,
[data-bs-theme="light"] .modal-content,
[data-bs-theme="light"] .offcanvas {
  --bs-card-bg: #ffffff;
  background-color: #ffffff;
  border-color: #e8ecf4;
  color: var(--bs-body-color);
}

[data-bs-theme="light"] .card:not(.credit-hero-card):not(.ai-credit-hero):not(.hero-card) {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.04);
}

[data-bs-theme="light"] .card:not(.credit-hero-card):not(.ai-credit-hero):not(.hero-card) > .card-header,
[data-bs-theme="light"] .card:not(.credit-hero-card):not(.ai-credit-hero):not(.hero-card) > .card-footer {
  background-color: transparent;
  border-color: #eef1f7;
  color: var(--bs-heading-color);
}

[data-bs-theme="light"] h1:not(.text-white),
[data-bs-theme="light"] h2:not(.text-white),
[data-bs-theme="light"] h3:not(.text-white),
[data-bs-theme="light"] h4:not(.text-white),
[data-bs-theme="light"] h5:not(.text-white),
[data-bs-theme="light"] h6:not(.text-white),
[data-bs-theme="light"] .h1:not(.text-white),
[data-bs-theme="light"] .h2:not(.text-white),
[data-bs-theme="light"] .h3:not(.text-white),
[data-bs-theme="light"] .h4:not(.text-white),
[data-bs-theme="light"] .h5:not(.text-white),
[data-bs-theme="light"] .h6:not(.text-white) {
  color: var(--bs-heading-color);
}

[data-bs-theme="light"] .text-muted,
[data-bs-theme="light"] .text-body-secondary {
  color: #64748b !important;
}

[data-bs-theme="light"] .bg-label-primary {
  background-color: rgba(109, 93, 252, 0.12) !important;
  color: #5c4cf0 !important;
}

[data-bs-theme="light"] .bg-label-success {
  background-color: rgba(40, 199, 111, 0.12) !important;
  color: #1f9d57 !important;
}

[data-bs-theme="light"] .bg-label-info {
  background-color: rgba(14, 165, 233, 0.12) !important;
  color: #0284c7 !important;
}

[data-bs-theme="light"] .bg-label-warning {
  background-color: rgba(255, 159, 67, 0.14) !important;
  color: #d97706 !important;
}

[data-bs-theme="light"] .bg-label-danger {
  background-color: rgba(234, 84, 85, 0.12) !important;
  color: #dc2626 !important;
}

[data-bs-theme="light"] .bg-label-secondary {
  background-color: rgba(100, 116, 139, 0.12) !important;
  color: #475569 !important;
}

[data-bs-theme="light"] .table {
  --bs-table-color: #334155;
  --bs-table-border-color: #eef1f7;
  color: #334155;
}

[data-bs-theme="light"] .table thead th {
  color: #64748b;
  font-weight: 700;
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
  background-color: #ffffff;
  border-color: #d8dee9;
  color: #0f172a;
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
  border-color: #6d5dfc;
  box-shadow: 0 0 0 0.15rem rgba(109, 93, 252, 0.18);
}

[data-bs-theme="light"] .navbar-detached {
  background-color: #ffffff !important;
  box-shadow: var(--bs-navbar-box-shadow);
}

[data-bs-theme="light"] .layout-page,
[data-bs-theme="light"] .content-wrapper {
  background-color: var(--bs-body-bg);
}

[data-bs-theme="light"] .progress {
  background-color: #eef0f8;
}

[data-bs-theme="light"] .btn-brand-gradient {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  background: linear-gradient(90deg, #6d5dfc 0%, #8a7bff 55%, #5c4cf0 100%);
  border: none;
  color: #fff;
  box-shadow: 0 0.125rem 0.5rem rgba(109, 93, 252, 0.28);
}

[data-bs-theme="light"] .btn-brand-gradient:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 0.25rem 0.65rem rgba(109, 93, 252, 0.35);
}

[data-bs-theme="light"] .btn-brand-gradient:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(109, 93, 252, 0.35), 0 0.25rem 0.65rem rgba(109, 93, 252, 0.35);
}

[data-bs-theme="light"] .btn-brand-gradient:active {
  filter: brightness(0.97);
}
