/* ============================================================
   Brand Color Override: Primary #292E38 | Accent #BB9974
   Loaded after style.css to override hardcoded theme-1 values
   ============================================================ */

/* ---------- PRIMARY #292E38 (replaces #507274) ---------- */

body.theme-1 .bg-primary {
    background: #292E38 !important;
}

body.theme-1 .dash-header .drp-language .drp-text,
body.theme-1 .dash-header .dash-head-link > i:not(.nocolor) {
    color: #292E38;
}

body.theme-1 .dash-header .drp-company .theme-avtar {
    background: #e8e0d8;
    color: #292E38;
}

/* Sidebar nav — default active state */
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item:active > .dash-link,
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item:focus > .dash-link,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item:active > .dash-link,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link {
    background: #292E38;
    color: #ffffff;
    border: 1px solid #BB9974;
    box-shadow: 0 5px 7px -1px rgba(41, 46, 56, 0.3);
}

/* Sidebar nav — hover state */
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item:hover > .dash-link,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link {
    background: #FFFBF2;
    color: #2D313C;
    border: 1px solid #BB9974;
    box-shadow: 0 5px 7px -1px rgba(187, 153, 116, 0.2);
}

/* Icon color — active/focus */
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item.active > .dash-link i,
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item:active > .dash-link i,
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item:focus > .dash-link i,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item.active > .dash-link i,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item:active > .dash-link i,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link i {
    color: #ffffff;
}

/* Icon color — hover */
body.theme-1 .dash-sidebar.light-sidebar .dash-navbar > .dash-item:hover > .dash-link i,
body.theme-1 .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link i {
    color: #2D313C;
}

body.theme-1 .dash-sidebar.light-sidebar .dash-item .dash-submenu .dash-item::before,
body.theme-1 .dash-sidebar .dash-item .dash-submenu .dash-item::before {
    border-right-color: #BB9974;
}

/* Submenu active/focus state */
body.theme-1 .dash-sidebar.light-sidebar .dash-item .dash-submenu .dash-item.active > .dash-link,
body.theme-1 .dash-sidebar.light-sidebar .dash-item .dash-submenu .dash-item:active > .dash-link,
body.theme-1 .dash-sidebar.light-sidebar .dash-item .dash-submenu .dash-item:focus > .dash-link,
body.theme-1 .dash-sidebar .dash-item .dash-submenu .dash-item.active > .dash-link,
body.theme-1 .dash-sidebar .dash-item .dash-submenu .dash-item:active > .dash-link,
body.theme-1 .dash-sidebar .dash-item .dash-submenu .dash-item:focus > .dash-link {
    color: #292E38;
}

/* Submenu hover state */
body.theme-1 .dash-sidebar.light-sidebar .dash-item .dash-submenu .dash-item:hover > .dash-link,
body.theme-1 .dash-sidebar .dash-item .dash-submenu .dash-item:hover > .dash-link {
    color: #BB9974;
}

body.theme-1 a:not([class]) {
    color: #292E38;
}

body.theme-1 a:not([class]):hover {
    color: #BB9974;
}

body.theme-1 .text-primary {
    color: #292E38 !important;
}

body.theme-1 .list-group-item.active {
    background: #292E38 !important;
    border-color: #BB9974 !important;
}

body.theme-1 .progress-bar:not([class*="bg-"]),
body.theme-1 .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #292E38;
    --bs-btn-border-color: #BB9974;
    --bs-btn-hover-color: #2D313C;
    --bs-btn-hover-bg: #FFFBF2;
    --bs-btn-hover-border-color: #BB9974;
    --bs-btn-focus-shadow-rgb: 41, 46, 56;
    --bs-btn-active-color: #2D313C;
    --bs-btn-active-bg: #FFFBF2;
    --bs-btn-active-border-color: #BB9974;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #292E38;
    --bs-btn-disabled-border-color: #BB9974;
}

body.theme-1 .btn-outline-primary {
    --bs-btn-color: #292E38;
    --bs-btn-border-color: #BB9974;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #292E38;
    --bs-btn-hover-border-color: #BB9974;
    --bs-btn-focus-shadow-rgb: 41, 46, 56;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #292E38;
    --bs-btn-active-border-color: #BB9974;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #292E38;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #BB9974;
    --bs-gradient: none;
}

body.theme-1 .btn-light-primary {
    background: #f5ede3;
    color: #292E38;
    border-color: #BB9974;
}

body.theme-1 .btn-light-primary:hover,
body.theme-1 .btn-light-primary.focus,
body.theme-1 .btn-light-primary:focus,
body.theme-1 .btn-light-primary:not(:disabled):not(.disabled).active,
body.theme-1 .btn-light-primary:not(:disabled):not(.disabled):active,
body.theme-1 .btn-check:active + .btn-light-primary,
body.theme-1 .btn-check:checked + .btn-light-primary {
    background: #292E38;
    color: #fff;
    border-color: #BB9974;
}

body.theme-1 .alert-primary {
    --bs-alert-color: #2D313C;
    --bs-alert-bg: #f5ede3;
    --bs-alert-border-color: #BB9974;
}

body.theme-1 .alert-primary .alert-link {
    color: #292E38;
}

body.theme-1 .badge.bg-light-primary {
    background: #f5ede3;
    color: #292E38;
    border-color: #BB9974;
}

body.theme-1 .page-item.active .page-link {
    background: #292E38;
    border-color: #BB9974;
}

body.theme-1 .nav-link {
    color: #292E38;
}

body.theme-1 .nav-link:hover,
body.theme-1 .nav-link:focus {
    color: #BB9974;
}

body.theme-1 .nav-pills .nav-link:focus,
body.theme-1 .nav-pills .nav-link.active,
body.theme-1 .nav-pills .show > .nav-link {
    color: #ffffff;
    background: #292E38;
    border: 1px solid #BB9974;
}

body.theme-1 .form-check-input:focus,
body.theme-1 .form-select:focus,
body.theme-1 .form-control:focus,
body.theme-1 .custom-select:focus,
body.theme-1 .dataTable-selector:focus,
body.theme-1 .dataTable-input:focus {
    border-color: #BB9974;
    box-shadow: 0 0 0 0.2rem rgba(187, 153, 116, 0.25);
}

body.theme-1 .form-check-input:checked,
body.theme-1 .form-check-input[type="checkbox"]:indeterminate,
body.theme-1 .form-check .form-check-input.input-primary:checked {
    background-color: #292E38;
    border-color: #BB9974;
}

body.theme-1 .form-range::-webkit-slider-thumb,
body.theme-1 .form-range::-webkit-slider-thumb:active,
body.theme-1 .form-range::-moz-range-thumb,
body.theme-1 .form-range::-moz-range-thumb:active {
    background: #BB9974;
}

body.theme-1 pre[class*="language-"] > code {
    border-left-color: #BB9974;
    background-image: linear-gradient(transparent 50%, rgba(187, 153, 116, 0.04) 50%);
}

body.theme-1 .card .card-header h5:after,
body.theme-1 .card .card-header .h5:after {
    background: #BB9974;
}

body.theme-1 .border-primary {
    border-color: #BB9974 !important;
}

/* ---------- SECONDARY #A37856 ---------- */

body.theme-1 .btn-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #A37856;
    --bs-btn-border-color: #A37856;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #8f6848;
    --bs-btn-hover-border-color: #876143;
    --bs-btn-focus-shadow-rgb: 163, 120, 86;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #876143;
    --bs-btn-active-border-color: #7f5b3e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #A37856;
    --bs-btn-disabled-border-color: #A37856;
}

body.theme-1 .btn-outline-secondary {
    --bs-btn-color: #A37856;
    --bs-btn-border-color: #A37856;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #A37856;
    --bs-btn-hover-border-color: #A37856;
    --bs-btn-focus-shadow-rgb: 163, 120, 86;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #A37856;
    --bs-btn-active-border-color: #A37856;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #A37856;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #A37856;
    --bs-gradient: none;
}

body.theme-1 .bg-secondary {
    background-color: #A37856 !important;
}

body.theme-1 .text-secondary {
    color: #A37856 !important;
}

body.theme-1 .badge.bg-secondary {
    background-color: #A37856 !important;
}

body.theme-1 .border-secondary {
    border-color: #A37856 !important;
}

/* ---------- Dashboard project cards ---------- */

.dashboard-project-card {
    background-color: rgba(187, 153, 116, 0.1) !important;
}

.dashboard-project-card::after {
    background-color: #292E38 !important;
}

.dashboard-wrp .dashboard-project-card .theme-avtar::after,
.dashboard-wrp .dashboard-project-card .theme-avtar::before {
    background-color: #BB9974 !important;
}
