/* Theme Color Overrides - Gold and Black Theme */
/* Replace Bootstrap green (#28a745) with gold (#c6a76f) */

:root {
    --success: #c6a76f;
    --green: #c6a76f;
}

/* Button Success Override */
.btn-success {
    color: #fff;
    background-color: #c6a76f !important;
    border-color: #c6a76f !important;
}

.btn-success:hover {
    color: #fff;
    background-color: #b99657 !important;
    border-color: #b99657 !important;
}

.btn-success:focus, .btn-success.focus {
    color: #fff;
    background-color: #b99657 !important;
    border-color: #b99657 !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 167, 111, 0.5) !important;
}

.btn-success.disabled, .btn-success:disabled {
    color: #fff;
    background-color: #c6a76f !important;
    border-color: #c6a76f !important;
}

.btn-success:not(:disabled):not(.disabled):active, 
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle {
    color: #fff;
    background-color: #b99657 !important;
    border-color: #b99657 !important;
}

/* Badge Success Override */
.badge-success {
    color: #fff !important;
    background-color: #c6a76f !important;
}

.badge-success[href]:hover, 
.badge-success[href]:focus {
    color: #fff !important;
    background-color: #b99657 !important;
}

/* Alert Success Override */
.alert-success {
    color: #232323 !important;
    background-color: rgba(198, 167, 111, 0.1) !important;
    border-color: rgba(198, 167, 111, 0.3) !important;
}

.alert-success hr {
    border-top-color: rgba(198, 167, 111, 0.4) !important;
}

.alert-success .alert-link {
    color: #b99657 !important;
}

/* Text Success Override */
.text-success {
    color: #c6a76f !important;
}

a.text-success:hover, 
a.text-success:focus {
    color: #b99657 !important;
}

/* Border Success Override */
.border-success {
    border-color: #c6a76f !important;
}

/* Background Success Override */
.bg-success {
    background-color: #c6a76f !important;
}

a.bg-success:hover, 
a.bg-success:focus,
button.bg-success:hover, 
button.bg-success:focus {
    background-color: #b99657 !important;
}

/* Form Validation Success Override */
.valid-feedback {
    color: #c6a76f !important;
}

.was-validated .form-control:valid, 
.form-control.is-valid {
    border-color: #c6a76f !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23c6a76f' d='m2.3 6.73.7-.04 1.1-1.49 1.84.04.01.15.7-.04.01-.15.84.04 1.05-1.49.01.15.84.04L8 1.9l-.7-.04L6.4 3.45l-.01-.16-.82-.04-.01.15-.7-.04-.01-.15-.82-.04L3.3 5.12l-.01-.15-.7-.04-.01.16-.8-.04z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid:focus, 
.form-control.is-valid:focus {
    border-color: #c6a76f !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 167, 111, 0.25) !important;
}

/* Table Success Override */
.table-success, 
.table-success > th, 
.table-success > td {
    background-color: rgba(198, 167, 111, 0.1) !important;
}

.table-success th, 
.table-success td, 
.table-success thead th {
    border-color: rgba(198, 167, 111, 0.3) !important;
}

.table-hover .table-success:hover {
    background-color: rgba(198, 167, 111, 0.15) !important;
}

.table-hover .table-success:hover > td, 
.table-hover .table-success:hover > th {
    background-color: rgba(198, 167, 111, 0.15) !important;
}

/* Progress Bar Success Override */
.progress-bar-success {
    background-color: #c6a76f !important;
}

/* List Group Success Override */
.list-group-item-success {
    color: #232323 !important;
    background-color: rgba(198, 167, 111, 0.1) !important;
}

.list-group-item-success.list-group-item-action:hover, 
.list-group-item-success.list-group-item-action:focus {
    color: #232323 !important;
    background-color: rgba(198, 167, 111, 0.15) !important;
}

.list-group-item-success.list-group-item-action.active {
    color: #fff !important;
    background-color: #c6a76f !important;
    border-color: #c6a76f !important;
}

/* Custom Override for Any Remaining Green Colors */
*[style*="#28a745"] {
    color: #c6a76f !important;
}

*[style*="background-color: #28a745"] {
    background-color: #c6a76f !important;
}

*[style*="border-color: #28a745"] {
    border-color: #c6a76f !important;
}
