.loading {
    z-index: 1050;
    position: absolute;
    top: 0;
    left: -5px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.loading-content {
    position: absolute;
    border: 16px solid #f3f3f3;
    /* Light grey */
    border-top: 16px solid #3498db;
    /* Blue */
    border-radius: 50%;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    top: 40%;
    left: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #3498db;
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal-loading {
    position: absolute;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #080808cf;
    z-index: 100;
    gap: 5px;
    display: none;
}

.bx.text-sm {
    font-size: 1.15rem !important;
}

.chips-container {
    width: 100%;
}

.chip {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    background: #f0f0f0;
    border-radius: 16px;
    font-size: 14px;
}

.close-chip {
    cursor: pointer;
    padding-left: 5px;
}

.cursor-pointer {
    cursor: pointer;
}

.pagination .page-item .page-link {
    font-size: 1rem;
    width: 40px;
    height: 40px;
}

.mw-fc {
    max-width: fit-content !important;
}

.h-fc {
    height: fit-content !important;
}

.ui-front {
    z-index: 1050 !important;
}

.table .tooltip {
    border-top: 0;
}

.peek-pwd-btn {
    letter-spacing: -0.025rem;
    text-transform: none;
    display: inline-block;
    font-weight: 700;
    line-height: 1.5;
    color: #67748e;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.15s ease-in;
    -webkit-appearance: button;
    appearance: button;
    margin: 0;
    border: 1px solid #d2d6da;
    border-left: 0;

    &:hover {
        background-color: #f8f9fa;
        color: #495057;
    }

    cursor: pointer;
}

/* Custom Toggle Styles */
.custom-toggle-container {
    display: flex;
    justify-content: left;
    margin: 1rem 0;
}

.custom-toggle {
    position: relative;
    display: inline-block;
}

.toggle-background {
    position: relative;
    width: 240px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-option {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    position: relative;
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 0 10px;
    line-height: 40px;
}

.toggle-option.active {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 118px;
    height: 36px;
    border-radius: 18px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.toggle-background.group-selected .toggle-slider {
    transform: translateX(118px);
}

.toggle-background.group-selected .toggle-option.left {
    color: #6c757d;
}

.toggle-background.group-selected .toggle-option.right {
    color: white;
}

/* Switch container background colors */
.switch-container {
    transition: background-color 0.3s ease;
}

.switch-container:not(:has(input:disabled)).active {
    background-color: #E6F0FA !important;
    transition: background-color 0.3s ease;
}

.switch-container:not(:has(input:disabled)).active:hover {
    background-color: #D1E7F7 !important;
}

.switch-container:not(:has(input:disabled)):not(.active) {
    background-color: #f8f9fa !important;
    /* bg-gray-100 equivalent */
    transition: background-color 0.3s ease;
}

.switch-container:not(:has(input:disabled)):not(.active):hover {
    background-color: #e9ecef !important;
}

label:has(input:not(:disabled)) {
    cursor: pointer;
}