body {
    font-family: "Poppins", sans-serif !important;
    font-weight: lighter;
    /* font-family: "Century Gothic", serif !important; */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide the spinner for Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.datatable-td {
    white-space: nowrap !important;
    font-size: 0.95rem !important;
}

.datatable-th {
    white-space: nowrap !important;
    font-weight: bold !important;
    font-size: 0.74rem !important;
}

.divider {
    border: 0.01rem solid #ddd !important;
    margin-bottom: 3px !important;
    margin-top: 2px !important;
}

.dark-mode .card {
    background-color: #1f1f1f;
    color: #fff;
}
.dark-mode .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgb(238, 228, 228) !important;
    padding: 0.75rem 1.25rem;
    position: relative;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}
/* Change the background color of the input box (Single Selection) */
.select2-container .select2-selection--single {
    background-color: #343a40 !important;
    /* Dark grey background */
    border-color: #6b757d !important;
    /* Grey border */
    color: white !important;
    /* White text color for better contrast */
}

/* Change the background color of the dropdown */
.select2-container--bootstrap4 .select2-dropdown {
    background-color: #343a40 !important;
    /* Dark grey dropdown background */
    color: white !important;
    /* White text color inside the dropdown */
    border-color: #6b757d !important;
    /* Grey border for dropdown */
}

/* Change the background color of selected options in the dropdown */
.select2-container .select2-results__option[aria-selected="true"] {
    background-color: #6b757d !important;
    /* Light grey for selected option */
    color: white !important;
    /* White text color for selected option */
}

/* Optional: Change the background color of hover options in the dropdown */
.select2-container .select2-results__option:hover {
    background-color: #495057 !important;
    /* Slightly lighter grey on hover */
    color: white !important;
    /* White text on hover */
}

/* Change the placeholder font color */
.select2-container .select2-selection--single .select2-selection__rendered {
    color: #959ca3 !important;
    /* Placeholder text color */
}

/* Optional: Handle when the select2 box is empty (with no selected value) */
.select2-container
    .select2-selection--single
    .select2-selection__rendered[aria-placeholder="true"] {
    color: #959ca3 !important;
    /* Placeholder color when no selection */
}
.dark-mode .btn-dark {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #000000;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0);
    /* Initial shadow (invisible) */
}

.dark-mode .btn-dark::before,
.dark-mode .btn-dark::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    transition: all 0.5s ease, box-shadow 0.3s ease;
}

.dark-mode .btn-dark::before {
    top: 0;
    left: 0;
    border-top: 3px solid #2ea64a;
    /* border-radius: 50rem !important; */
    border-left: 3px solid #2ea64a;
    transform: scale(0.5);
    transform-origin: top left;
}

.dark-mode .btn-dark::after {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #2ea64a;
    /* border-radius: 50rem !important; */
    border-right: 3px solid #2ea64a;
    transform: scale(0.5);
    transform-origin: bottom right;
}

.dark-mode .btn-dark:hover {
    color: #ffffff;
    /* Change text color to golden yellow */
    background-color: #222222;
    /* Slightly lighten the background */
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.7);
    /* Add a glowing effect */
}

.dark-mode .btn-dark:hover::before,
.dark-mode .btn-dark:hover::after {
    transform: scale(1);
    border-color: #2ea64a;
    /* Change border color to golden yellow */
    box-shadow: 0 0 5px #2ea64a;
    /* Add glow to the borders */
}

.main-login {
    width: 100%;
}

.sidebar-light-white .brand-link {
    border-bottom: 1px solid red !important;
}

.my-card-dashboard {
    background-color: rgb(237, 144, 72) !important;
    color: white !important;
    box-shadow: 20px 5px 40px rgba(50, 168, 241, 0.329) !important;
}

.my-card-dashboard > .icon > i,
.my-card-dashboard > a {
    color: rgb(255, 255, 255) !important;
}

.my-card-dashboard > .icon > i {
    /* * { */
    /* background-color: #fff !important;
    color: #4434d8d5 !important; */
    animation: myAnimation 1.5s ease-in-out 0s infinite alternate both;
}

/* Example keyframes for the animation */
@keyframes myAnimation {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}
.dark-mode .navbar-dark {
    background-color: #000000;
    border-color: #00000000;
}
.dark-mode .content-wrapper {
    background-color: #000000;
    color: #fff;
}
.dark-mode .preloader {
    background-color: #000000 !important;
    color: #fff;
}
.dark-mode .brand-link {
    border: 0 !important;
    margin-bottom: 2rem !important;
    /* border-right: 1px solid #ffffff00; */
    background-color: #2c2b2b !important;
    color: #fff;
}
.dark-mode aside {
    border-radius: 10px;
    background-color: #2c2b2b !important;
    color: #fff;
    /* border-right: 1px solid #ffffff4d; */
    box-shadow: 10px 0 15px rgba(0, 0, 0, 0.5); /* Right-side shadow with blur */
}

.dark-mode footer {
    background-color: #2c2b2b !important;
    color: #fff;
}
/* SIDE MENU  */

.nav-sidebar .nav-item {
    width: 92% !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-sidebar .nav-link {
    width: 100%;
    background-color: #1f1f1f !important;
    color: #fff !important;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.nav-sidebar .nav-link:hover {
    background-color: #fff !important;
    color: rgba(255, 0, 0, 0.664) !important;
}

.dark-mode .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.dark-mode .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #fff !important;
    color: rgba(255, 0, 0, 0.664) !important;
}

.dark-mode .nav-pills .nav-item:hover .nav-link {
    background-color: #fff !important;
    color: rgba(255, 0, 0, 0.664) !important;
    transition: color 0.7s ease-in-out, background-color 0.4s ease-in-out;
}

.dark-mode .nav-pills .nav-link {
    margin: 0.3rem auto !important;
    padding: 0.7rem 1rem !important;
    background-color: #1f1f1f !important;
    color: #fff !important;
    border-radius: 50px !important;
}

/* Profile MENU  */

/* .user-profile {
    border-radius: 5rem;
    border: 1px solid #fff;
}

.user-profile .nav-link {
    margin-top: -0.8rem;
}

.user-profile .profile-image {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: cover;
    border-radius: 50%;
}

.user-profile .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    background-color: #000;
    margin: 0px auto !important;
}

.user-profile .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #1f1f1f !important;
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.user-profile .dropdown-item:hover {
    background-color: #fff;
    color: red;
}

.user-profile .dropdown-item i {
    color: #666;
    font-size: 16px;
}

.user-profile .dropdown-item.text-danger i {
    color: #dc3545;
}

.user-profile .dropdown-divider {
    margin: 5px 0;
} */

/*
        .sidebar-light-white .nav-sidebar>.nav-item>.nav-link.active {
            background-color: red;
            color: #fff;
        } */
/*
        .nav-treeview>.nav-item>.nav-link.active,
        .nav-treeview>.nav-item>.nav-link.active:hover {
            background-color: #fff !important;
            color: rgba(255, 0, 0, 0.664) !important;
        }

        .nav-pills .nav-link.active,
        .nav-pills .show>.nav-link {
            background-color: #fff !important;
            color: rgba(255, 0, 0, 0.664) !important;
            margin: 0.5rem auto !important;
            width: 90% !important;
            padding: 0.3rem !important;
            border-radius: 50px !important;
        }

        .sidebar-white-primary {
            background-color: white !important;
        }

        .nav-pills .nav-item {
            background-color: #1f1f1f !important;
            margin: 0.5rem auto !important;
            width: 90% !important;
            padding: 0.3rem !important;
            border-radius: 50px !important;
        }

        .nav-pills .nav-item:hover,
        .nav-pills .nav-item.nav-link {
            background-color: #fff !important;
            color: rgba(255, 0, 0, 0.664) !important;
            margin: 0.5rem auto !important;
            width: 90% !important;
            padding: 0.3rem !important;
            border-radius: 50px !important;
        }

        .nav-pills .nav-link.active,
        .nav-pills .show>.nav-link {
            background-color: #fff !important;
            color: rgba(255, 0, 0, 0.664) !important;
        }

        .nav-pills>.menu-open>.active {
            background-color: rgb(237, 144, 72) !important;
            color: #fff !important;
        } */
/* Customize the scrollbar container */
::-webkit-scrollbar {
    width: 12px; /* Width of the vertical scrollbar */
    height: 12px; /* Height of the horizontal scrollbar */
}

/* Customize the scrollbar track (the background) */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Light gray background */
    border-radius: 10px;
}

/* Customize the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background: #888; /* Dark gray thumb */
    border-radius: 10px;
}

/* Hover effect on the scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* Darker gray when hovering */
}
