:root {
    --burgundy-primary: #520010;
    --burgundy-hover: #40000c;
    --burgundy-dark: #300009;
    --burgundy-light: #fbe6e8;
    --burgundy-text: #ffffff;
    --modern-radius: 8px;
    --modern-shadow: 0 4px 12px rgba(82, 0, 16, 0.1);

    /* Bootstrap Overrides */
    --primary: var(--burgundy-primary);
    --warning: var(--burgundy-primary);
    --blue: var(--burgundy-primary);
    --yellow: #ffc107; /* Keep a standard warning yellow for alerts if needed, or change to burgundy */
}

/* Button Modernization */
.btn-primary,
.btn-success,
.btn-warning,
.btn-danger {
    border-radius: var(--modern-radius) !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
}

.btn-warning {
    background-color: var(--burgundy-primary) !important;
    border-color: var(--burgundy-primary) !important;
    color: #fff !important;
}

.btn-warning:hover {
    background-color: var(--burgundy-hover) !important;
    border-color: var(--burgundy-hover) !important;
}

.btn-primary:hover,
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Card & Box Modernization */
.x_panel {
    border-radius: var(--modern-radius) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #eee !important;
}

.x_title {
    border-bottom: 2px solid var(--burgundy-light) !important;
    padding-bottom: 10px !important;
}

/* Table Modernization */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--burgundy-primary) !important;
    color: #333;
}

/* Scrollbar Modernization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-dark);
}

/* Custom Overrides for various orange/yellow shades */
[style*="background-color: #520010"],
[style*="background: #520010"],
[style*="background-color:#520010"],
[style*="background-color: #F39C12"],
[style*="background: #F39C12"],
[style*="background-color:#F39C12"],
[style*="background-color: #FF9054"],
[style*="background: #FF9054"],
[style*="background-color:#FF9054"] {
    background-color: var(--burgundy-primary) !important;
}

[style*="color: #520010"],
[style*="color:#520010"],
[style*="color: #F39C12"],
[style*="color:#F39C12"],
[style*="color: #FF9054"],
[style*="color:#FF9054"] {
    color: var(--burgundy-primary) !important;
}

[style*="border-color: #520010"],
[style*="border-color:#520010"],
[style*="border-top: 3px solid #f39c12"] {
    border-color: var(--burgundy-primary) !important;
}

.square[style*="background-color:#FF9054"],
.square[style*="background-color: #FF9054"] {
    background-color: var(--burgundy-hover) !important;
}

/* Alert and Button Overrides */
.alert-warning {
    background-color: var(--burgundy-light) !important;
    border-color: var(--burgundy-primary) !important;
    color: var(--burgundy-dark) !important;
}

.btn-warning {
    background-color: var(--burgundy-primary) !important;
    border-color: var(--burgundy-primary) !important;
    color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: var(--burgundy-hover) !important;
    border-color: var(--burgundy-hover) !important;
    color: #fff !important;
}

/* Installer Overrides */
.pg-header {
    background-color: var(--burgundy-primary) !important;
    background: var(--burgundy-primary) !important;
}

.install_title {
    color: #fff !important;
}

/* Additional common elements that might use the old orange color */
.btn-info {
    background-color: var(--burgundy-primary) !important;
    border-color: var(--burgundy-primary) !important;
    color: #fff !important;
}

.btn-info:hover {
    background-color: var(--burgundy-hover) !important;
    border-color: var(--burgundy-hover) !important;
}

/* Auth Pages (Login, Forgot Password, Reset) */
.auth-page {
    background-color: #f0f2f5 !important;
    font-family: "Poppins", sans-serif !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid rgba(128, 0, 32, 0.05);
}
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}
.auth-header img {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}
.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--burgundy-primary);
    margin: 0;
    letter-spacing: -0.5px;
}
.auth-form-group {
    margin-bottom: 25px;
    position: relative;
}
.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}
.auth-form-control:focus {
    background-color: #fff;
    border-color: var(--burgundy-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.1);
}
.auth-btn-primary {
    width: 100%;
    background: var(--burgundy-primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.2);
}
.auth-btn-primary:hover {
    background: var(--burgundy-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(128, 0, 32, 0.3);
}
.auth-extra-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
}
.auth-extra-links a {
    color: var(--burgundy-primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer-text {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #adb5bd;
}
.auth-footer-text a {
    color: var(--burgundy-primary);
    text-decoration: none;
    font-weight: 600;
}
/* CSS */
.select2-container--invalid .select2-selection {
    border-color: red;
}

@media (max-width: 991px) {
    .side-menu li a.settingitem {
        margin-left: -15px;
    }
}
@media (min-width: 280px) and (max-width: 540px) {
    .nav-sm .nav.child_menu li.active,
    .nav-sm .nav.side-menu li.active-sm {
        border-right: transparent;
    }

    /* .nav-sm .nav.side-menu li a i {
    font-size: 25px !important;
    text-align: center;
    width: 100% !important;
    margin-bottom: 5px;
} */
    .dropdown:hover {
        background-color: #ffffff;
        color: #454545;
        width: 72px;
    }

    i.fa-solid.fa-sliders {
        margin-left: -13px;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fbe6e8;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
        inset: 0px 324px auto;
        height: auto;
        width: 160px;
        padding-left: 1px;
        margin-left: -254px;
    }

    .nav-sm .nav.side-menu li a {
        text-align: left !important;
        font-weight: 400;
        font-size: 10px;
        padding: 10px 5px;
    }

    i.fa-regular.fa-user {
        margin-left: -14px;
    }

    i.fa-solid.fa-car-side {
        margin-left: -11px;
    }

    i.fa-solid.fa-credit-card {
        margin-left: -10px;
    }

    i.fa-solid.fa-calculator {
        margin-left: -12px;
    }

    i.fa-solid.fa-clipboard-check {
        margin-left: -4px;
    }
}

@media (min-width: 768px) and (max-width: 912px) {
    i.fa-solid.fa-sliders {
        margin-left: -12px;
    }

    .dropdown:hover {
        background-color: #ffffff;
        color: #454545;
        width: 70px;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fbe6e8;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
        inset: 0px 70px auto;
        height: auto;
        width: 160px;
    }

    .nav-sm .nav.side-menu li a {
        text-align: left !important;
        /* font-weight: 400;
    font-size: 10px;
    padding: 10px 5px; */
    }

    i.fa-regular.fa-user {
        margin-left: -12px;
    }

    i.fa-solid.fa-car-side {
        margin-left: -12px;
    }

    i.fa-solid.fa-credit-card {
        margin-left: -12px;
    }

    i.fa-solid.fa-calculator {
        margin-left: -12px;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    i.fa-solid.fa-sliders {
        margin-left: 0px;
    }

    .dropdown:hover {
        background-color: #ffffff;
        color: #454545;
        width: 72px;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fbe6e8;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1;
        inset: 0px 240px auto;
        height: auto;
        width: 222px;
        padding-left: 8px;
    }
}
@media print {
    .noprint {
        display: none;
    }
}
