/* Bootstrap Color Override - Replace Blue with Orange (WCAG AA compliant) */
:root {
    --bs-primary: #d4521f;
    --bs-primary-rgb: 212, 82, 31;
    --bs-blue: #d4521f;
    --bs-indigo: #d4521f;
    --bs-purple: #d4521f;
    --bs-pink: #d4521f;
    --bs-red: #d4521f;
    --bs-orange: #d4521f;
    --bs-yellow: #d4521f;
    --bs-green: #d4521f;
    --bs-teal: #d4521f;
    --bs-cyan: #d4521f;
}

/* Primary Button Styles */
.btn-primary {
    background-color: #d4521f !important;
    border-color: #d4521f !important;
    color: white !important;
}

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

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #d4521f !important;
    border-color: #d4521f !important;
    opacity: 0.65;
}

/* Outline Primary Button */
.btn-outline-primary {
    color: #d4521f !important;
    border-color: #d4521f !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #d4521f !important;
    border-color: #d4521f !important;
    color: white !important;
}

/* Text and Background Colors */
.text-primary {
    color: #d4521f !important;
}

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

/* Links */
a {
    color: #d4521f;
}

a:hover,
a:focus {
    color: #b8441a;
}

/* Form Controls */
.form-control:focus {
    border-color: #d4521f !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 82, 31, 0.25) !important;
}

.form-check-input:checked {
    background-color: #d4521f !important;
    border-color: #d4521f !important;
}

.form-check-input:focus {
    border-color: #d4521f !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 82, 31, 0.25) !important;
}

/* Progress Bars */
.progress-bar {
    background-color: #d4521f !important;
}

/* Badges */
.badge.bg-primary {
    background-color: #d4521f !important;
}

/* Alerts */
.alert-primary {
    color: #663d21 !important;
    background-color: #ffe8e0 !important;
    border-color: #ffd6c7 !important;
}

/* Pagination */
.page-link {
    color: #d4521f !important;
}

.page-link:hover,
.page-link:focus {
    color: #b8441a !important;
    background-color: #ffe8e0 !important;
    border-color: #d4521f !important;
}

.page-item.active .page-link {
    background-color: #d4521f !important;
    border-color: #d4521f !important;
    color: white !important;
}

/* Nav Pills */
.nav-pills .nav-link.active {
    background-color: #d4521f !important;
}

/* List Group */
.list-group-item.active {
    background-color: #d4521f !important;
    border-color: #d4521f !important;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #d4521f !important;
}

/* Override any remaining blue colors */
*[style*="#0d6efd"] {
    color: #d4521f !important;
}

*[style*="background-color: #0d6efd"] {
    background-color: #d4521f !important;
}

*[style*="border-color: #0d6efd"] {
    border-color: #d4521f !important;
}

/* Specific Bootstrap component overrides */
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    background-color: #d4521f !important;
    border-color: #d4521f !important;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: #b8441a !important;
    border-color: #b8441a !important;
}

.show > .btn-primary.dropdown-toggle {
    background-color: #b8441a !important;
    border-color: #b8441a !important;
}