* {
    font-family: Poppins, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}



body {
    overflow: hidden;
}

/* ======================
    Hanlding Status Icons
    ====================== */
#eyeicon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
}

#eyeiconEdit {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
}

.show-img-btn,
.edit-btn,
.delete-btn,
.info-btn {
    cursor: pointer;
}

.edit-disable-btn,
.delete-disable-btn {
    cursor: default;
    opacity: 35%;
}

[data-bs-theme="darks"] {

    .edit-btn:hover,
    .delete-btn:hover,
    .info-btn:hover {
        color: #b8b8b8b0;
    }
}

.edit-btn:hover,
.delete-btn:hover,
.info-btn:hover {
    color: #706e7ac7;
}

.show-img-btn:hover {
    color: #0cb8dfa4 !important;
}

/* =======
    Utils
   ======= */

.progressing_bar {
    /* position: absolute;
    left: 0;
    bottom: 0; */
    width: 0%;
    height: 1rem;
    background: #6e78b2;
    transition: 3s;
}

.progressing_bar.show {
    width: 100%;
    transition: 3s;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

[data-bs-theme="darks"] {
    .custom__scroll::-webkit-scrollbar-track {
        background: #444861 !important;
    }

    .custom__scroll::-webkit-scrollbar-thumb {
        background: #6e78b2 !important;
    }

    .custom__scroll::-webkit-scrollbar-thumb:hover {
        background: #6e78b27c !important;
    }

}

.custom__scroll::-webkit-scrollbar {
    width: 10px;
}

.custom__scroll::-webkit-scrollbar-track {
    background: #c2bdf3 !important;
    border-radius: 1rem;
}

.custom__scroll::-webkit-scrollbar-thumb {
    background: #7367f0 !important;
    border-radius: 1rem;
    cursor: pointer;
}

.custom__scroll::-webkit-scrollbar-thumb:hover {
    background: #7367f07c !important;
}

input[type="number"] {
    -moz-appearance: textfield;
}

textarea {
    resize: none !important;
}

.custom__scroll::-webkit-scrollbar {
    width: 10px;
}

.custom__scroll::-webkit-scrollbar-track {
    background: #444861;
    border-radius: 1rem;
}

.custom__scroll::-webkit-scrollbar-thumb {
    background: #6e78b2;
    border-radius: 1rem;
}

.custom__scroll::-webkit-scrollbar-thumb:hover {
    background: #6e78b27c;
}

.table__wrapper::-webkit-scrollbar,
#actual-inject::-webkit-scrollbar {
    width: 10px;
}

.table__wrapper::-webkit-scrollbar-track,
#actual-inject::-webkit-scrollbar-track {
    background: #444861;
    border-radius: 1rem;
}

.table__wrapper::-webkit-scrollbar-thumb,
#actual-inject::-webkit-scrollbar-thumb {
    background: #6e78b2;
    border-radius: 1rem;
}

.table__wrapper::-webkit-scrollbar-thumb:hover,
#actual-inject::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Header Navbar Style */
.dropdown__profile__setting:hover div {
    background-color: #444861;
}

.dropdown__profile__logout {
    background-color: #ff4c51;
}

.dropdown__profile__logout:hover {
    background-color: #ff4c52c0;
}

.error__msg {
    color: #ff4c4c;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    margin-left: auto;
}

.checkboxes {
    width: 100%;
    display: flex;
    row-gap: 1rem;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.checkboxes>div {
    /* border: 1px solid red; */
    flex-basis: 40%;
    gap: 0.75rem;
    display: flex;
    justify-content: start !important;
    width: 100%;
    cursor: pointer;
}

.checkboxes>div label,
.checkboxes>div input {
    cursor: pointer;
}

.nav__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2f3349;
}

.nav__title h1 {
    font-size: 1.5rem;
}

.model__contents {
    padding-bottom: 2rem;
    margin-top: 1rem;
    height: calc(100vh - 6.7rem);
}

.model__title {
    font-weight: 500;
    color: #464252;
}

.model__contents__header__right {
    color: #6f6c78;
}

.main__contents {
    overflow: auto;
}

.table__wrapper {
    /* IF pagination is needed */
    /* height: calc(100vh - 18rem); */

    /* IF pagination is not needed */
    height: calc(100vh - 15rem);
    display: block;
    overflow-y: auto;
}

.table__wrapper-qidar {
    /* IF pagination is needed */
    /* height: calc(100vh - 18rem); */

    /* IF pagination is not needed */
    height: calc(97vh - 15rem);
    display: block;
    overflow-y: auto;
}

.model__contents__table {
    width: 100%;
    color: #6f6c78;
}

.model__contents__table thead,
.model__contents__table tbody {
    width: 100%;
}

.model__contents__table th,
.model__contents__table tr,
.model__contents__table td {
    border-top: 1px solid #e6e6e8;
    /* padding-block: 0.9rem; */
}

:is(tbody tr, tbody, td) {
    text-align: center;
    color: #6f6c78;
}

.model__contents__table td {
    text-align: center;
}

.table__action figure {
    cursor: pointer;
}

/* For Modals */
.modal__contents__overlay {
    visibility: hidden;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    transition: 300ms;
}

.modal__contents__overlay.show {
    opacity: 1;
    visibility: visible;
    transition: 300ms;
}

.modal__contents {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    visibility: hidden;
    width: 30rem;
    margin: auto;
    background-color: #fff;
    padding-block: 1rem;
    border-radius: 0.3rem;
    opacity: 1;
    transition: 300ms;
    transform: translateY(50px);
}

.form-select {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    padding: 0.5rem;
    width: 150px;
}

.form-select option {
    padding: 1rem;
}

.modal__contents.show {
    pointer-events: all;
    visibility: visible;
    transform: translateY(0px);
    opacity: 1;
    transition: 300ms;
}

.modal__contents h2 {
    color: #464252;
    font-size: 1.3rem;
    padding-left: 2rem;
    font-weight: 500;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e6e6e8;
}

.inputbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.inputbox label {
    position: relative;
}

.inputbox input:not(.custom__checkbox) {
    width: 100%;
    outline: none;
    border: 1px solid #c2c2c2;
    border-radius: 0.3rem;
    padding-block: 0.55rem;
    padding-inline: 1rem;
    position: relative;
}

.inputbox select {
    width: 100%;
    outline: none;
    border: 1px solid #c2c2c2;
    border-radius: 0.3rem;
    padding-block: 0.225rem;
    padding-inline: 0.5rem;
    position: relative;
}

.inputbox label::after {
    content: "*";
    display: block;
    position: absolute;
    top: 0;
    right: -10px;
    color: red;
}

.inputbox label.no-req::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: -10px;
    color: red;
}

.inputbox .custom__checkbox~label::after {
    content: "" !important;
}

.custom__checkbox {
    width: 20px;
}

.inputbox__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 100%;
    border: 1px solid #c2c2c2;
    aspect-ratio: 3/1;
    border-radius: 0.3rem;
    position: relative;
    width: 100%;
    margin-bottom: 0.1rem;
    cursor: pointer;
}

.inputbox input[type="number"] {
    width: 20%;
}

.modal__form__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.add__modal__form__actions,
.edit__modal__form__actions {
    justify-content: end !important;
}

.delete__modal__form__actions {
    justify-content: center;
}

.modal__form__actions button {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: #6f6c78;
    padding-block: 0.6rem;
    padding-inline: 1.6rem;
    border-radius: 0.2rem;
    font-weight: bold;
}

.modal__form__actions .cancel {
    background-color: #ffe2e3;
    color: #ff5559;
}

.modal__form__actions .submit {
    background-color: #7367f0;
    color: #fff;
}

/* Delete Modal */

.delete__modal__forms .modal__main {
    text-align: center;
}

.delete__modal__forms figure {
    margin: auto;
    margin: 0;
}

.delete__modal__forms p {
    margin-top: 0.3rem;
    font-size: 14px;
}

.modal__form__actions {
    /* margin-top: 1rem; */
    justify-content: center;
}

.paginations ul {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 2.4rem;
    gap: 0.5rem;
}

.paginations ul li {
    padding: 0.5rem 1rem;
    list-style: none;
    cursor: pointer;
}

[data-bs-theme="darks"] .pagination__active {
    background-color: #7367f0 !important;
    color: white;
}

.paginations .pagination__active {
    color: white;
    background-color: #615ac3;
}

[data-bs-theme="darks"] {
    .bg__dark__status__user {
        background-color: #2d4b4f;
        color: #28c46e;

        border-radius: 0.3rem;
    }

    .bg__dark__status__user_inactive {
        background-color: #3b4054;
        color: #7a7d8b;

        border-radius: 0.3rem;
    }

    .bg__dark__status__client {
        background-color: #2d4b4f;
        color: #28c46e;
        width: 50%;
        border-radius: 0.3rem;
    }

    .bg__dark__status__client_inactive {
        background-color: #3b4054;
        color: #7a7d8b;
        width: 50%;
        border-radius: 0.3rem;
    }

    .bg__dark__status__cart {
        background-color: #c4fbdc;
        color: #35ca77;
        width: 50%;
        border-radius: 0.3rem;
    }

    .bg__dark__status__cart_inactive {
        background-color: #ebebed;
        color: #9396a1;
        width: 50%;
        border-radius: 0.3rem;
    }
}

.bg__dark__status__user {
    background-color: #c4fbdc;
    color: #35ca77;
    border-radius: 0.3rem;
}

.bg__dark__status__user_inactive {
    background-color: #ebebed;
    color: #9396a1;
    border-radius: 0.3rem;
}

.bg__dark__status__client {
    background-color: #c4fbdc;
    color: #35ca77;
    width: 50%;
    border-radius: 0.3rem;
}

.bg__dark__status__client_inactive {
    background-color: #ebebed;
    color: #9396a1;
    width: 50%;
    border-radius: 0.3rem;
}

.bg__dark__status__cart {
    background-color: #c4fbdc;
    color: #35ca77;
    width: 50%;
    border-radius: 0.3rem;
}

.bg__dark__status__cart_inactive {
    background-color: red;
    color: #9396a1;
    width: 50%;
    border-radius: 0.3rem;
}

.chartjs-legend li {
    border: 1px solid #000;
    /* Set border color and width */
    padding: 5px;
    /* Add some padding to make the border more visible */
}

.tab-pane {
    border: 1px solid #2F3349 !important;
    padding-top: 15px;
}

.nav-link {
    background-color: transparent;
    color: #2F3349;
    border: 1px solid #2F3349;
}

.nav-link.active {
    background-color: #2F3349 !important;
    color: white !important;
    border-color: #2F3349 !important;
    border-width: 3px;
    border-top-width: 6px;
}

.nav-link:hover {
    background-color: #2F3349 !important;
    color: white !important;
    border-color: #2F3349 !important;
}

[data-bs-theme="darks"] {
    .tab-pane.dark-border {
        border: 1px solid #4f5575 !important;
    }

    .nav-link {
        background-color: transparent;
        color: white;
        border: 1px solid #4f5575 !important;
    }

    .nav-link.active {
        background-color: #5D5D85 !important;
        color: white !important;
        border-color: white !important;
        border-width: 3px;
        border-top-width: 6px;
    }

    .nav-link:hover {
        background-color: #5D5D85 !important;
        color: white !important;
        border-color: white !important;

    }

    .table-bordered-custom {
        border: 1px solid #4f5575;
        border-radius: 10px;
    }

    .table-bordered-custom th,
    .table-bordered-custom td {
        border: 1px solid #4f5575;
    }
}

    /* Wrapper for the select to control positioning */
    .custom-select-wrapper {
        position: relative;
        width: 100%;
    }

    /* Custom select styling */
    .custom-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg width="21" height="11" viewBox="0 0 21 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 11L0 0H21L10.5 11Z" fill="%23464252"/></svg>');
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 30px;
        /* Space for the custom arrow */
    }

    /* Optional: Adjust padding for dropdown to fit custom arrow */
    .dark__input.py-2 {
        padding-top: 8px;
        padding-bottom: 8px;
    }