/* PulseAI Dark Mode Styles */

[data-bs-theme="dark"] {
    --bs-body-bg: #070a12;
    --bs-body-bg-rgb: 7, 10, 18;
    --bs-body-color: #f1f5f9;
    --bs-tertiary-bg: #162033;
    --bs-tertiary-bg-rgb: 22, 32, 51;
    --bs-border-color: #1e293b;
    /* List Group Overrides */
    --bs-list-group-bg: #0f1624;
    --bs-list-group-color: var(--bs-body-color);
    --bs-list-group-border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .table thead th {
    background-color: #0b101d;
}

[data-bs-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: rgba(15, 23, 42, 0.45);
}

[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .table td {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #f1f5f9;
}

[data-bs-theme="dark"] a {
    color: #38bdf8;
}

[data-bs-theme="dark"] a:hover {
    color: #7dd3fc;
}

/* --- Heart Beat Pulse Animation --- */
@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes pulse-danger {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes pulse-secondary {
    0% { box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(108, 117, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 117, 125, 0); }
}

/* --- Leaflet Maps Dark Mode Inversion --- */
[data-bs-theme="dark"] .leaflet-layer,
[data-bs-theme="dark"] .leaflet-control-zoom-in,
[data-bs-theme="dark"] .leaflet-control-zoom-out,
[data-bs-theme="dark"] .leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
