/* 
 * Enhanced Dark Mode for Bootstrap 5
 * Compatible with existing styles
 */

/* Dark theme variables */
[data-bs-theme="dark"] {
  --bs-body-color: #dee2e6;
  --bs-body-bg: #212529;
  --bs-emphasis-color: #fff;
  --bs-secondary-color: rgba(255, 255, 255, 0.75);
  --bs-tertiary-color: rgba(255, 255, 255, 0.5);
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --bs-body-color-rgb: 222, 226, 230;
  --bs-body-bg-rgb: 33, 37, 41;
}

/* Enhanced dark theme styles */
[data-bs-theme="dark"] .card {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .table {
  background-color: #2d3748;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .table th {
  background-color: #4a5568;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .table td {
  border-color: #4a5568;
}

[data-bs-theme="dark"] .navbar-dark {
  background-color: #1a202c !important;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #2d3748;
  border-color: #4a5568;
}

[data-bs-theme="dark"] .dropdown-item {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: #4a5568;
  color: #fff;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #86efac;
  border-color: #86efac;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #86efac;
  border-color: #86efac;
  color: #1a202c;
}

[data-bs-theme="dark"] .alert-success {
  background-color: #065f46;
  border-color: #047857;
  color: #86efac;
}

[data-bs-theme="dark"] .alert-warning {
  background-color: #92400e;
  border-color: #d97706;
  color: #fbbf24;
}

[data-bs-theme="dark"] .alert-danger {
  background-color: #991b1b;
  border-color: #dc2626;
  color: #fca5a5;
}

[data-bs-theme="dark"] .alert-info {
  background-color: #1e40af;
  border-color: #2563eb;
  color: #93c5fd;
}

/* Status badges for dark theme */
[data-bs-theme="dark"] .status-ok {
  background-color: #065f46;
  color: #86efac;
}

[data-bs-theme="dark"] .status-degraded {
  background-color: #92400e;
  color: #fbbf24;
}

[data-bs-theme="dark"] .status-error {
  background-color: #991b1b;
  color: #fca5a5;
}

/* Form elements */
[data-bs-theme="dark"] .form-control {
  background-color: #374151;
  border-color: #6b7280;
  color: #e5e7eb;
}

[data-bs-theme="dark"] .form-control:focus {
  background-color: #374151;
  border-color: #3b82f6;
  color: #e5e7eb;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Transitions for smooth theme switching */
*, *::before, *::after {
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

/* Improved navbar brand */
.navbar-brand {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.navbar-brand .bg-primary {
  transition: all 0.3s ease;
}

/* Enhanced dropdown styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  margin: 0.125rem 0.5rem;
  transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
  transform: translateX(0.125rem);
}

/* Active navigation items */
.nav-link.active,
.dropdown-item.active {
  font-weight: 600;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: none;
  }
}

/* Health status specific styles */
.health-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.health-card:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .health-card {
  background-color: #2d3748;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .health-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}

/* Loading animation */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 0.125rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Modal and Popup Styles for Dark Mode */

/* Modal backdrop and dialog */
[data-bs-theme="dark"] .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="dark"] .modal-content {
  background-color: #2d3748;
  border: 1px solid #4a5568;
  color: #e2e8f0;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .modal-header {
  background-color: #374151;
  border-bottom: 1px solid #4a5568;
  color: #f9fafb;
}

[data-bs-theme="dark"] .modal-title {
  color: #f9fafb;
  font-weight: 600;
}

[data-bs-theme="dark"] .modal-body {
  background-color: #2d3748;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .modal-footer {
  background-color: #374151;
  border-top: 1px solid #4a5568;
}

/* Close button styling */
[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}

[data-bs-theme="dark"] .btn-close:hover {
  opacity: 1;
}

/* Data display containers in modals */
[data-bs-theme="dark"] .modal-body pre {
  background-color: #1a202c !important;
  color: #e2e8f0 !important;
  border: 1px solid #4a5568;
  border-radius: 0.375rem;
}

[data-bs-theme="dark"] .modal-body .bg-light {
  background-color: #374151 !important;
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .modal-body .text-dark {
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .modal-body .text-muted {
  color: #9ca3af !important;
}

/* Specific fixes for data display containers */
[data-bs-theme="dark"] .bg-light {
  background-color: #374151 !important;
  color: #e2e8f0 !important;
}

/* Pre elements with specific Bootstrap classes */
[data-bs-theme="dark"] pre.bg-light {
  background-color: #1a202c !important;
  color: #e2e8f0 !important;
  border: 1px solid #4a5568 !important;
}

[data-bs-theme="dark"] pre.p-3 {
  background-color: #1a202c !important;
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] pre.rounded {
  border: 1px solid #4a5568;
}

/* Result content in modals */
[data-bs-theme="dark"] .modal-body h6 {
  color: #f9fafb !important;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .modal-body h6:first-child {
  margin-top: 0;
}

/* JSON syntax highlighting for better readability */
[data-bs-theme="dark"] pre {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

/* Style for inconsistency displays */
[data-bs-theme="dark"] .inconsistency-item {
  background-color: #92400e !important;
  border-left: 4px solid #f59e0b !important;
  color: #fbbf24 !important;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
}

/* Alert styling in modals */
[data-bs-theme="dark"] .modal-body .alert {
  border: 1px solid;
}

[data-bs-theme="dark"] .modal-body .alert-info {
  background-color: #1e40af !important;
  border-color: #2563eb !important;
  color: #93c5fd !important;
}

[data-bs-theme="dark"] .modal-body .alert-success {
  background-color: #065f46 !important;
  border-color: #047857 !important;
  color: #86efac !important;
}

[data-bs-theme="dark"] .modal-body .alert-warning {
  background-color: #92400e !important;
  border-color: #d97706 !important;
  color: #fbbf24 !important;
}

[data-bs-theme="dark"] .modal-body .alert-danger {
  background-color: #991b1b !important;
  border-color: #dc2626 !important;
  color: #fca5a5 !important;
}

/* Password input and form elements in modals */
[data-bs-theme="dark"] .modal-body .form-control {
  background-color: #374151 !important;
  border-color: #6b7280 !important;
  color: #e5e7eb !important;
}

[data-bs-theme="dark"] .modal-body .form-control:focus {
  background-color: #374151 !important;
  border-color: #3b82f6 !important;
  color: #e5e7eb !important;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

[data-bs-theme="dark"] .modal-body .form-label {
  color: #f9fafb !important;
  font-weight: 500;
}

/* Button styling in modals */
[data-bs-theme="dark"] .modal-footer .btn-secondary {
  background-color: #6b7280;
  border-color: #6b7280;
  color: #f9fafb;
}

[data-bs-theme="dark"] .modal-footer .btn-secondary:hover {
  background-color: #4b5563;
  border-color: #4b5563;
}

/* Scroll styling for modal content */
[data-bs-theme="dark"] .modal-body::-webkit-scrollbar {
  width: 8px;
}

[data-bs-theme="dark"] .modal-body::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 4px;
}

[data-bs-theme="dark"] .modal-body::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

[data-bs-theme="dark"] .modal-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Enhanced contrast for better readability */
[data-bs-theme="dark"] .modal-content {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.6);
}

/* Fix for any remaining light backgrounds */
[data-bs-theme="dark"] .bg-white {
  background-color: #2d3748 !important;
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .text-white {
  color: #e2e8f0 !important;
}

/* Ensure proper contrast for all text elements */
[data-bs-theme="dark"] .modal-body * {
  border-color: #4a5568;
}

[data-bs-theme="dark"] .modal-body .text-primary {
  color: #60a5fa !important;
}

[data-bs-theme="dark"] .modal-body .text-success {
  color: #86efac !important;
}

[data-bs-theme="dark"] .modal-body .text-warning {
  color: #fbbf24 !important;
}

[data-bs-theme="dark"] .modal-body .text-danger {
  color: #fca5a5 !important;
}

[data-bs-theme="dark"] .modal-body .text-info {
  color: #93c5fd !important;
}

/* Vehicle detail sections */
[data-bs-theme="dark"] .vehicle-detail-section {
  background-color: #374151;
  border: 1px solid #4a5568;
  color: #e2e8f0;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
}

[data-bs-theme="dark"] .vehicle-detail-section h6 {
  color: #f9fafb;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Result containers styling */
[data-bs-theme="dark"] .result-container {
  background-color: #374151 !important;
  border: 1px solid #4a5568 !important;
  color: #e2e8f0 !important;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
}

[data-bs-theme="dark"] .result-container.success {
  background-color: #065f46 !important;
  border-color: #047857 !important;
  color: #86efac !important;
}

[data-bs-theme="dark"] .result-container.error {
  background-color: #991b1b !important;
  border-color: #dc2626 !important;
  color: #fca5a5 !important;
}

/* Specific result content styling */
[data-bs-theme="dark"] #resultDetails {
  background-color: #1a202c !important;
  color: #e2e8f0 !important;
  border: 1px solid #4a5568;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Vehicle check and sync result containers */
[data-bs-theme="dark"] #vehicleCheckResult,
[data-bs-theme="dark"] #vehicleSyncResult {
  background-color: #374151;
  border: 1px solid #4a5568;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.375rem;
}

/* Tab content in modals */
[data-bs-theme="dark"] .tab-content {
  background-color: #2d3748;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
  background-color: #374151;
  border-color: #4a5568;
  color: #9ca3af;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  background-color: #2d3748;
  border-color: #4a5568 #4a5568 #2d3748;
  color: #f9fafb;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
  background-color: #4a5568;
  color: #e2e8f0;
}

/* Card styling inside modals */
[data-bs-theme="dark"] .modal-body .card {
  background-color: #374151;
  border-color: #4a5568;
}

[data-bs-theme="dark"] .modal-body .card-header {
  background-color: #4a5568;
  border-bottom-color: #6b7280;
  color: #f9fafb;
}

[data-bs-theme="dark"] .modal-body .card-body {
  background-color: #374151;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .modal-body .card-footer {
  background-color: #4a5568;
  border-top-color: #6b7280;
  color: #e2e8f0;
}

/* Input group styling in modals */
[data-bs-theme="dark"] .modal-body .input-group-text {
  background-color: #4a5568;
  border-color: #6b7280;
  color: #e2e8f0;
}

/* Select dropdown styling in modals */
[data-bs-theme="dark"] .modal-body .form-select {
  background-color: #374151;
  border-color: #6b7280;
  color: #e5e7eb;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e5e7eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .modal-body .form-select:focus {
  background-color: #374151;
  border-color: #3b82f6;
  color: #e5e7eb;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Password modal specific styling */
[data-bs-theme="dark"] #passwordModal .modal-content {
  background-color: #2d3748;
  border: 1px solid #4a5568;
}

[data-bs-theme="dark"] #passwordModal .modal-header {
  background-color: #374151;
  border-bottom-color: #4a5568;
}

[data-bs-theme="dark"] #passwordModal .modal-body {
  background-color: #2d3748;
}

[data-bs-theme="dark"] #passwordModal .modal-footer {
  background-color: #374151;
  border-top-color: #4a5568;
}

/* Ensure all modal dialogs have consistent styling */
[data-bs-theme="dark"] .modal-dialog .modal-content {
  background-color: #2d3748;
  border: 1px solid #4a5568;
  color: #e2e8f0;
}

/* Text area styling in modals */
[data-bs-theme="dark"] .modal-body textarea.form-control {
  background-color: #374151;
  border-color: #6b7280;
  color: #e5e7eb;
}

[data-bs-theme="dark"] .modal-body textarea.form-control:focus {
  background-color: #374151;
  border-color: #3b82f6;
  color: #e5e7eb;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Checkbox and radio styling in modals */
[data-bs-theme="dark"] .modal-body .form-check-input {
  background-color: #374151;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .modal-body .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

[data-bs-theme="dark"] .modal-body .form-check-label {
  color: #e2e8f0;
}

/* Switch styling */
[data-bs-theme="dark"] .form-switch .form-check-input {
  background-color: #6b7280;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .form-switch .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

/* Statistics Cards Styling */
.stats-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .stats-card:hover {
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

.stats-card.active {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.25);
}

.stats-card .bi-cursor {
    opacity: 0.6;
    font-size: 0.8rem;
}

.stats-card .card-body {
    position: relative;
}

.stats-card .card-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: width 0.3s ease;
}

.stats-card:hover .card-body::after,
.stats-card.active .card-body::after {
    width: 80%;
}

/* =====================================================
   INLINE STYLE OVERRIDES FOR DARK MODE
   Views use hardcoded colors that need dark mode coverage
   ===================================================== */

/* Tab containers (tipos-geocerca-test, company-test, etc.) */
[data-bs-theme="dark"] .tab-button {
  background-color: #374151;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .tab-button.active {
  background-color: #2d3748;
  border-bottom-color: #2d3748;
}

[data-bs-theme="dark"] .tab-content {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

/* Stat cards from inline styles */
[data-bs-theme="dark"] .stat-card {
  background: #2d3748;
  border-color: #4a5568;
}

[data-bs-theme="dark"] .stat-card h4 {
  color: #9ca3af;
}

[data-bs-theme="dark"] .stat-card .number {
  color: #60a5fa;
}

/* Custom tables from inline styles */
[data-bs-theme="dark"] .tipos-table th,
[data-bs-theme="dark"] .geocerca-table th {
  background-color: #4a5568;
  border-color: #6b7280;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .tipos-table td,
[data-bs-theme="dark"] .geocerca-table td {
  border-color: #4a5568;
  color: #e2e8f0;
}

/* Status badges from inline styles */
[data-bs-theme="dark"] .status-synced {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

[data-bs-theme="dark"] .status-unsynced {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

[data-bs-theme="dark"] .status-inconsistent {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

/* Header sections */
[data-bs-theme="dark"] .header {
  color: #e2e8f0;
}

/* Generic containers with white/light backgrounds */
[data-bs-theme="dark"] .container,
[data-bs-theme="dark"] .request-form {
  background-color: transparent;
  color: #e2e8f0;
}

/* Select and form elements outside modals */
[data-bs-theme="dark"] .form-select {
  background-color: #374151;
  border-color: #6b7280;
  color: #e5e7eb;
}

/* Log entry styling */
[data-bs-theme="dark"] .log-entry {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

/* Accordion items */
[data-bs-theme="dark"] .accordion-item {
  background-color: #2d3748;
  border-color: #4a5568;
}

[data-bs-theme="dark"] .accordion-button {
  background-color: #374151;
  color: #e2e8f0;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: #1e3a5f;
  color: #93c5fd;
}

[data-bs-theme="dark"] .accordion-body {
  background-color: #2d3748;
  color: #e2e8f0;
}

/* Shared coverage for view-local light styles */
[data-bs-theme="dark"] body {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .form-container,
[data-bs-theme="dark"] .log-container,
[data-bs-theme="dark"] .filters,
[data-bs-theme="dark"] .filters-row,
[data-bs-theme="dark"] .filter-section,
[data-bs-theme="dark"] .stat-item,
[data-bs-theme="dark"] .endpoint-group,
[data-bs-theme="dark"] .table-container {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #e5e7eb;
}

[data-bs-theme="dark"] .log-header {
  border-bottom-color: #4b5563;
}

[data-bs-theme="dark"] .log-details,
[data-bs-theme="dark"] .coordinates-info,
[data-bs-theme="dark"] .clasificacion-info,
[data-bs-theme="dark"] .batch-info {
  background-color: #111827;
  border-color: #3b82f6;
  color: #dbeafe;
}

[data-bs-theme="dark"] .performance-metrics {
  background-color: #052e16;
  border-left-color: #22c55e;
  color: #bbf7d0;
}

[data-bs-theme="dark"] .inconsistent-cell,
[data-bs-theme="dark"] .inconsistency-item,
[data-bs-theme="dark"] .table-warning {
  background-color: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

[data-bs-theme="dark"] .table-danger {
  background-color: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

[data-bs-theme="dark"] .log-error {
  background-color: rgba(239, 68, 68, 0.15);
  border-left-color: #ef4444;
}

[data-bs-theme="dark"] .log-warn {
  background-color: rgba(245, 158, 11, 0.15);
  border-left-color: #f59e0b;
}

[data-bs-theme="dark"] .log-info {
  background-color: rgba(59, 130, 246, 0.15);
  border-left-color: #3b82f6;
}

[data-bs-theme="dark"] .log-http {
  background-color: rgba(139, 92, 246, 0.15);
  border-left-color: #8b5cf6;
}

[data-bs-theme="dark"] .log-debug {
  background-color: rgba(107, 114, 128, 0.2);
  border-left-color: #9ca3af;
}

[data-bs-theme="dark"] .tipo-cliente,
[data-bs-theme="dark"] .clasificacion-badge {
  background-color: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

[data-bs-theme="dark"] .tipo-referencia {
  background-color: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
}

[data-bs-theme="dark"] .radio-info {
  color: #86efac;
}

[data-bs-theme="dark"] .endpoint-group h5,
[data-bs-theme="dark"] .stat-card h4 {
  color: #e5e7eb;
}

[data-bs-theme="dark"] .stats-card.bg-warning.text-dark {
  background-color: #92400e !important;
  color: #fef3c7 !important;
}
