/* ==========================================================================
   Venderce — Bootstrap primary recolour
   Remaps every Bootstrap "primary" component/utility to the brand green
   (#0fbd74) so the whole site uses one consistent accent colour.
   Loaded AFTER the Bootstrap CDN stylesheet in every base/standalone template.
   ========================================================================== */

/* CSS-variable driven components (progress bars, form checks, text/bg/border
   utilities, links, alerts, badges, etc. derive from these in BS 5.3). */
:root {
    --bs-primary: #0fbd74;
    --bs-primary-rgb: 15, 189, 116;
    --bs-primary-bg-subtle: #d1fae8;
    --bs-primary-border-subtle: #a7f3d0;
    --bs-primary-text-emphasis: #0a9e62;
    --bs-link-color: #0fbd74;
    --bs-link-hover-color: #0a9e62;
    --bs-link-color-rgb: 15, 189, 116;
    --bs-link-hover-color-rgb: 10, 158, 98;
}

/* ---- Buttons ---- */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0fbd74;
    --bs-btn-border-color: #0fbd74;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0a9e62;
    --bs-btn-hover-border-color: #0a9e62;
    --bs-btn-focus-shadow-rgb: 15, 189, 116;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a9e62;
    --bs-btn-active-border-color: #0a9e62;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0fbd74;
    --bs-btn-disabled-border-color: #0fbd74;
}
.btn-check:checked + .btn.btn-primary,
.btn-check:active + .btn.btn-primary,
.btn.btn-primary:active,
.btn.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #0a9e62;
    border-color: #0a9e62;
}
.btn-outline-primary {
    --bs-btn-color: #0fbd74;
    --bs-btn-border-color: #0fbd74;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0fbd74;
    --bs-btn-hover-border-color: #0fbd74;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a9e62;
    --bs-btn-active-border-color: #0a9e62;
    --bs-btn-disabled-color: #0fbd74;
    --bs-btn-disabled-border-color: #0fbd74;
}

/* ---- Utilities (explicit in case the build hardcodes hex) ---- */
.text-primary { color: #0fbd74 !important; }
a.text-primary:hover,
a.text-primary:focus { color: #0a9e62 !important; }
.bg-primary { background-color: #0fbd74 !important; }
.border-primary { border-color: #0fbd74 !important; }
.border-primary-subtle { border-color: #a7f3d0 !important; }

/* ---- Links ---- */
.link-primary { color: #0fbd74 !important; }
.link-primary:hover,
.link-primary:focus { color: #0a9e62 !important; }

/* ---- Alerts ---- */
.alert-primary {
    --bs-alert-color: #0a9e62;
    --bs-alert-bg: #d1fae8;
    --bs-alert-border-color: #a7f3d0;
}
.alert-primary .alert-link { color: #0a9e62; }

/* ---- Badges ---- */
.text-bg-primary { color: #fff !important; background-color: #0fbd74 !important; }

/* ---- Navs ---- */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: #0fbd74;
}

/* ---- Pagination ---- */
.page-item.active .page-link {
    background-color: #0fbd74;
    border-color: #0fbd74;
}
.page-link { color: #0fbd74; }
.page-link:hover { color: #0a9e62; }
.page-link:focus { color: #0a9e62; box-shadow: 0 0 0 0.25rem rgba(15, 189, 116, 0.25); }

/* ---- List group ---- */
.list-group-item-primary {
    color: #0a9e62;
    background-color: #d1fae8;
}
.list-group-item-action.active {
    background-color: #0fbd74;
    border-color: #0fbd74;
}

/* ---- Dropdowns ---- */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #0fbd74;
}

/* ---- Accordion (BS 5.3 uses --bs-accordion-btn-color / active-color) ---- */
.accordion-button:not(.collapsed) {
    color: #0a9e62;
    background-color: #d1fae8;
}
.accordion-button:focus {
    border-color: #a7f3d0;
    box-shadow: 0 0 0 0.25rem rgba(15, 189, 116, 0.25);
}
