/* Custom Primary Color Override */
:root {
    --bs-primary: #2A4A11 !important;
    --bs-primary-rgb: 42, 74, 17 !important;
    --bs-secondary: #5E3E2A !important;
    --bs-secondary-rgb: 94, 62, 42 !important;
    --bs-light: #FFF9F3 !important;
    --bs-light-rgb: 255, 249, 243 !important;
    --bs-dark: #000000 !important;
    --bs-dark-rgb: 0, 0, 0 !important;
    --bs-accent: #889346 !important;
    --bs-accent-rgb: 136, 147, 70 !important;
}

/* Primary color variations */
.bg-primary {
    background-color: #2A4A11 !important;
}

.btn-primary {
    background-color: #2A4A11 !important;
    border-color: #2A4A11 !important;
}

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

.text-primary {
    color: #2A4A11 !important;
}

.border-primary {
    border-color: #2A4A11 !important;
}

/* Link colors */
a.text-primary:hover,
a.text-primary:focus {
    color: #1F3A0D !important;
}

/* Badge primary */
.badge-primary {
    background-color: #2A4A11 !important;
}

/* Alert primary */
.alert-primary {
    background-color: rgba(42, 74, 17, 0.1) !important;
    border-color: #2A4A11 !important;
    color: #2A4A11 !important;
}

/* Form controls */
.form-check-input:checked {
    background-color: #2A4A11 !important;
    border-color: #2A4A11 !important;
}

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

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

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #2A4A11 !important;
    border-color: #2A4A11 !important;
}

/* Sidebar and menu items */
.aside-menu .menu-link.active {
    background-color: #2A4A11 !important;
    color: #ffffff !important;
}

.aside-menu .menu-link.active .menu-title {
    color: #ffffff !important;
}

.aside-menu .menu-link.active .menu-icon svg path {
    fill: #ffffff !important;
}

.menu-item.here > .menu-link {
    background-color: rgba(42, 74, 17, 0.1) !important;
}

.menu-item.here > .menu-link .menu-title {
    color: #2A4A11 !important;
}

/* Card headers with primary */
.card-header.bg-primary {
    background-color: #2A4A11 !important;
}

/* Table primary */
.table-primary {
    background-color: rgba(42, 74, 17, 0.1) !important;
}

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

/* Secondary color variations */
.bg-secondary {
    background-color: #5E3E2A !important;
}

.btn-secondary {
    background-color: #5E3E2A !important;
    border-color: #5E3E2A !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #4A3221 !important;
    border-color: #4A3221 !important;
}

.text-secondary {
    color: #5E3E2A !important;
}

.border-secondary {
    border-color: #5E3E2A !important;
}

/* Accent color variations */
.bg-accent {
    background-color: #889346 !important;
}

.btn-accent {
    background-color: #889346 !important;
    border-color: #889346 !important;
    color: #ffffff !important;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    background-color: #6B7538 !important;
    border-color: #6B7538 !important;
}

.text-accent {
    color: #889346 !important;
}

.border-accent {
    border-color: #889346 !important;
}

/* Light color variations */
.bg-light-custom {
    background-color: #FFF9F3 !important;
}

.text-light-custom {
    color: #FFF9F3 !important;
}

.border-light-custom {
    border-color: #FFF9F3 !important;
}

/* Dark color variations */
.bg-dark-custom {
    background-color: #000000 !important;
}

.text-dark-custom {
    color: #000000 !important;
}

.border-dark-custom {
    border-color: #000000 !important;
}
