:root {
  --isd-font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --isd-primary: #dc2626;
  --isd-primary-logo: #e41b23;
  --isd-primary-soft: #ec1c24;
  --isd-primary-rgb: 220, 38, 38;
  --isd-heading: #0a0a0a;
  --isd-body: #1e293b;
  --isd-muted: #64748b;
  --isd-border: #e2e8f0;
  --isd-surface: #ffffff;
  --isd-surface-muted: #f8fafc;
  --isd-sidebar-bg: #0f172a;
}

html, body {
  font-family: var(--isd-font-sans) !important;
  color: var(--isd-body);
}

h1, h2, h3, h4, h5, h6,
.tls-page-title {
  font-family: var(--isd-font-sans);
  color: var(--isd-heading);
}

.app-sidebar .side-menu__label {
  font-family: var(--isd-font-sans);
}

:root,
[data-bs-theme="light"] {
  --bs-primary: #dc2626;
  --bs-primary-rgb: 220, 38, 38;
  --bs-link-color: #dc2626;
  --bs-link-hover-color: #b91c1c;
}

.btn-primary,
.bg-primary,
.badge.bg-primary,
.text-bg-primary {
  --bs-btn-bg: #dc2626;
  --bs-btn-border-color: #dc2626;
  --bs-btn-hover-bg: #b91c1c;
  --bs-btn-hover-border-color: #b91c1c;
  --bs-btn-active-bg: #991b1b;
  --bs-btn-active-border-color: #991b1b;
}

.btn-primary {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
}

.text-primary {
  color: #dc2626 !important;
}

.border-primary {
  border-color: #dc2626 !important;
}

.app-sidebar-logo img.app-sidebar-logo-default {
  max-height: 36px;
  width: auto;
}

.app-sidebar-logo img.app-sidebar-logo-minimize {
  max-height: 32px;
  width: auto;
}

.isd-brand-subtitle {
  font-size: 0.7rem;
  color: var(--isd-muted);
  letter-spacing: 0.02em;
}

/* Tax Litigation accents aligned to ISD (keep semantic status colors) */
.tls-page-title,
.tls-module-subtitle + .tls-page-title {
  color: var(--isd-heading) !important;
}

.tls-nav .nav-link {
  color: var(--isd-body) !important;
}

.tls-nav .nav-link.active,
.tls-nav .nav-link:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.tls-card-header,
.tls-table thead tr th,
.tls-filters-toolbar-title,
.tls-section-title {
  border-left-color: #dc2626 !important;
}

.tls-section-title {
  color: #dc2626 !important;
}

.tls-wizard-step.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.account-pages .text-primary,
.auth-box .text-primary {
  color: #dc2626 !important;
}

.isd-login-logo {
  max-height: 48px;
  width: auto;
}

/* Header must stack above page sticky bars (e.g. TLS dashboard filters) */
.app-header {
  z-index: 1055 !important;
}

.app-header .dropdown-menu {
  z-index: 1060;
}

/* App footer brand link */
.isd-footer__copy {
  font-size: 0.8125rem;
  color: var(--isd-muted);
  letter-spacing: 0.01em;
}

.isd-footer__brand {
  color: var(--isd-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 38, 38, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.isd-footer__brand:hover,
.isd-footer__brand:focus {
  color: #b91c1c;
  border-bottom-color: #b91c1c;
  text-decoration: none;
}

/* Login page uses dedicated isd-login.css */

/* SweetAlert2 confirm actions (IsdConfirm) */
.tls-swal-popup .swal2-actions {
  gap: 0.5rem;
}
.tls-swal-popup .swal2-styled,
.tls-swal-popup .btn {
  margin: 0;
}
