/* Custom Theme Overrides */

/* Override the primary color (Navy -> Custom Green) */
:root {
    --bs-primary: #005151;
    --bs-primary-rgb: 0, 81, 81;
}

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

body .btn-primary {
    background-color: #005151 !important;
    border-color: #005151 !important;
}

body .btn-primary:hover,
body .btn-primary:active,
body .btn-primary:focus {
    background-color: #004040 !important;
    /* Slightly darker for interaction */
    border-color: #004040 !important;
}

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

body .border-primary {
    border-color: #005151 !important;
}

body .btn-outline-primary {
    color: #005151 !important;
    border-color: #005151 !important;
}

body .btn-outline-primary:hover {
    background-color: #005151 !important;
    border-color: #005151 !important;
    color: #fff !important;
}

body .btn-outline-primary:not(:disabled):not(.disabled):active,
body .btn-outline-primary:not(:disabled):not(.disabled).active,
.show>body .btn-outline-primary.dropdown-toggle {
    color: #fff !important;
    border-color: #005151 !important;
    background-color: #005151 !important;
    opacity: 0.65;
}

/* 
body .text-primary {
    color: #005151 !important;
}

body .link-primary {
    color: #005151 !important;
}

body .badge-primary {
    background-color: #005151 !important;
    color: #fff !important;
}

body .alert-primary {
    background-color: #005151 !important;
    border-color: #005151 !important;
    color: #fff !important;
} 
*/

/* 
   Targeting the expanded header specifically to ensure the background 
   and its semi-circle curve (pseudo-element) definitely use the new color.
*/

.tm--expanded-hd {
    --nf-header-expand-bg: #005151;
}

.tm--expanded-hd .content__header {
    background-color: #005151 !important;
}

.mn--max.tm--expanded-hd .content__header:before,
.mn--min.tm--expanded-hd .content__header:before {
    background-color: #005151 !important;
}

/* Optional: Override sidebar/brand colors if they were using primary/navy */
.header--primary,
.tm--expanded-hd,
.tm--fair-hd,
.tm--full-hd,
.tm--tall-hd {
    --nf-header-bg: #005151;
    --nf-brand-bg: #005151;
}