/* Custom Bootstrap Primary Color Override - France Infra Brand */
:root {
    --bs-primary: #5DADE2;
    --bs-primary-rgb: 93, 173, 226;
    --bs-primary-bg-subtle: #d6eaf8;
    --bs-primary-border-subtle: #aed6f1;
    --bs-primary-text-emphasis: #21618c;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    --bs-primary: #5DADE2;
    --bs-primary-rgb: 93, 173, 226;
    --bs-primary-bg-subtle: #1b4f72;
    --bs-primary-border-subtle: #2874a6;
    --bs-primary-text-emphasis: #aed6f1;
}

/* Update components that use primary color */
.btn-primary {
    --bs-btn-bg: #5DADE2;
    --bs-btn-border-color: #5DADE2;
    --bs-btn-hover-bg: #4a9fd5;
    --bs-btn-hover-border-color: #3f96cf;
    --bs-btn-active-bg: #3f96cf;
    --bs-btn-active-border-color: #3589c3;
    --bs-btn-disabled-bg: #5DADE2;
    --bs-btn-disabled-border-color: #5DADE2;
}

.btn-outline-primary {
    --bs-btn-color: #5DADE2;
    --bs-btn-border-color: #5DADE2;
    --bs-btn-hover-bg: #5DADE2;
    --bs-btn-hover-border-color: #5DADE2;
    --bs-btn-active-bg: #5DADE2;
    --bs-btn-active-border-color: #5DADE2;
}

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

.bg-primary {
    background-color: #5DADE2 !important;
}

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

.link-primary {
    color: #5DADE2 !important;
}

.link-primary:hover,
.link-primary:focus {
    color: #3f96cf !important;
}

/* Alert primary */
.alert-primary {
    --bs-alert-color: #21618c;
    --bs-alert-bg: #d6eaf8;
    --bs-alert-border-color: #aed6f1;
}

[data-bs-theme="dark"] .alert-primary {
    background-color: #1b4f72;
    border-color: #5DADE2;
    color: #aed6f1;
}

/* Badge primary */
.badge.bg-primary {
    background-color: #5DADE2 !important;
}

/* Progress bar primary */
.progress-bar {
    background-color: #5DADE2;
}

/* List group item active */
.list-group-item.active {
    background-color: #5DADE2;
    border-color: #5DADE2;
}

[data-bs-theme="dark"] .list-group-item.active {
    background-color: #5DADE2;
    border-color: #5DADE2;
}

/* Pagination active */
.pagination .page-item.active .page-link {
    background-color: #5DADE2;
    border-color: #5DADE2;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #5DADE2;
    border-color: #5DADE2;
}

/* Nav pills active */
.nav-pills .nav-link.active {
    background-color: #5DADE2;
}

[data-bs-theme="dark"] .nav-pills .nav-link.active {
    background-color: #5DADE2;
}

/* Accordion button not collapsed */
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #2b3035;
    color: #5DADE2;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: #5DADE2;
    box-shadow: 0 0 0 0.25rem rgba(93, 173, 226, 0.25);
}

[data-bs-theme="dark"] .form-control:focus {
    border-color: #5DADE2;
}

[data-bs-theme="dark"] .form-select:focus {
    border-color: #5DADE2;
}
