/* Main Admin Styles */
/* body {
    display: flex;
    overflow-x: hidden;
} */

/* ===== ENHANCED SIDEBAR STYLES ===== */
#sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #E0E0E0;
    height: 100vh;
    position: fixed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 20px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

#sidebar.collapsed {
    width: 80px;
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    padding: 12px 18px;
    margin: 2px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

#sidebar .nav-link i {
    transition: transform 0.3s ease, color 0.3s ease;
    width: 20px;
    text-align: center;
}

#sidebar .nav-link:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    color: #ffffff;
    transform: translateX(5px);
}

#sidebar .nav-link:hover i {
    color: #667eea;
    transform: scale(1.1);
}

#sidebar .nav-link.active {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#sidebar .nav-link.active i {
    color: #ffffff;
}

/* Submenu Styles */
#sidebar .collapse .nav-link {
    padding: 10px 15px;
    margin: 1px 8px 1px 20px;
    font-size: 13px;
    border-left: 2px solid transparent;
    transform: none !important;
}

#sidebar .collapse .nav-link:hover {
    border-left-color: #667eea;
    transform: none !important;
}

#sidebar .collapse .nav-link:hover i {
    transform: none !important;
}

#sidebar .collapse .nav-link.active {
    background: rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
    box-shadow: none;
    transform: none !important;
}

/* Chevron Animation */
#sidebar .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 12px;
}

#sidebar .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Collapsed State */
#sidebar.collapsed .nav-link span:not(:first-child) {
    display: none;
}

#sidebar.collapsed .nav-link i {
    margin-right: 0px !important;
    font-size: 18px;
}

#sidebar.collapsed .nav-link {
    text-align: center;
    padding: 14px;
    margin: 4px 8px;
}

#sidebar.collapsed .collapse,
#sidebar.collapsed .nav-link i.fas.fa-chevron-down {
    display: none !important;
}

#content {
    margin-left: 250px;
    flex-grow: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    min-height: 100vh;
}

#sidebar.collapsed+#content {
    margin-left: 80px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
}

/* Search Container */
.search-container {
    padding: 0 15px;
    margin-bottom: 20px;
}

.search-container input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-container input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

#sidebar.collapsed .search-container {
    display: none;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 15px;
}

.logo-container img {
        max-width: 160px;
    transition: transform 0.3s ease;
    filter: invert(1) contrast(1.2);
}

.logo-container img:hover {
    transform: scale(1.05);
}

#sidebar.collapsed .logo-container {
    display: none;
}

.dt-heading {
    font-size: 1.1rem;
}

.dt-trash {
    padding: 4px 10px !important;
    cursor: pointer;
}

table.dataTable {
    width: 100%;
    background-color: #fff;
}

table.dataTable thead tr th {
    background-color: #f4f7f6 !important;
}

table.dataTable thead th {
    color: #2D2D2D;
    font-weight: 600;
}

table.dataTable td,
table.dataTable th {
    border: none !important;
}

table.dataTable tbody tr:hover {
    background-color: #f4f7f6 !important;
    cursor: pointer;
}

table.dataTable td,
table.dataTable th {
    padding: 1rem;
}


.dataTables_filter input {
    border-radius: 0.5rem !important;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    width: auto;
}

.dataTables_filter input::placeholder {
    color: #333333;
    font-style: italic;
}

.table> :not(caption)>*>* {
    background-color: transparent !important;
}

.dataTables_paginate {
    margin-top: 20px;
    text-align: center;
}

.dataTables_paginate .paginate_button {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    color: #007bff;
    background-color: #ffffff;
    border: 1px solid #ccc;
    font-size: 14px;
    font-weight: 500;
}

.dataTables_paginate .paginate_button:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.dataTables_paginate .paginate_button.current {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.dataTables_paginate .paginate_button:disabled {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #ddd;
}

.dataTables_paginate .paginate_button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    font-size: 16px;
}

.dataTables_info {
    font-size: 14px;
    color: #6c757d;
}


.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    border-radius: 50px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(14px);
}

.card-header-bg {
    background-color: #595959 !important
}

.border-edit {
    border-color: #4A90E2 !important
}

.pencil-edit-color {
    border-color: #4A90E2 !important
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link {
    color: black;
    font-weight: normal;
}

.nav-tabs .nav-link.active {
    font-weight: 500;
    color: #007bff !important;
}

.btn-primary {
    width: auto;
}

.cart-info {
    height: 54px;
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 0 27px;
    border-radius: 42px;
    font-size: 15px;
    font-weight: bold;
    line-height: 54px;
    position: relative;
}
div#products-table_wrapper {
    padding-bottom: 20px;
}
.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important;
}

.text-end.no-print.fulfillment-status .form-select {
    width: auto !important;
}

@media screen and (max-width: 991px) {
    #sidebar {
        width: 80px;
    }

    #content {
        margin-left: 80px;
    }

    #sidebar .nav-link[aria-expanded="true"] .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Collapsed State */
    #sidebar .nav-link span:not(:first-child) {
        display: none;
    }

    #sidebar .nav-link i {
        margin-right: 0px !important;
        font-size: 18px;
    }

    #sidebar .nav-link {
        text-align: center;
        padding: 14px;
        margin: 4px 8px;
        width: 60px;
    }

    #sidebar .nav-link i.fas.fa-chevron-down {
        display: none !important;
    }

    #sidebar.collapsed+#content {
        margin-left: 80px;
    }

    #sidebar .search-container,
    #sidebar .logo-container {
        display: none;
    }

   #sidebar ul.nav.flex-column.ms-3 {
        margin-left: 0rem !important;
    }
}