:root {
    /* Colors */
    --body-color: #0F172A;
    --body-secondy-color: #222e49;
    --sidebar-color: #0F172A;
    --primary-color: #3A3B3C;
    --primary-color-light: #3A3B3C;
    --toggle-color: #FFF;
    --text-color: #CCC;
    --table-color: #141e34;
    --table-tfoot-color: #707070;
    --paginatecolor: #223253;


    /* Transition */

    --tran-02: all 0.2 ease;
    --tran-03: all 0.3 ease;
    --tran-04: all 0.4 ease;
    --tran-05: all 0.5 ease;
}

.light {
    --body-color: #ffffff;
    --body-secondy-color: #ffffff;
    --sidebar-color: #FFF;
    --primary-color: #695CFE;
    --primary-color-light: #F6F5FF;
    --toggle-color: #DDD;
    --text-color: #707070;
    --table-color: #ffffff;
    --table-tfoot-color: #707070;
    --paginatecolor: #e5e0e0;
}

.dark {
    --body-color: #0F172A;
    --body-secondy-color: #222e49;
    --sidebar-color: #0F172A;
    --primary-color: #3A3B3C;
    --primary-color-light: #3A3B3C;
    --toggle-color: #FFF;
    --text-color: #CCC;
    --table-color: #141e34;
    --table-tfoot-color: #707070;
    --paginatecolor: #223253;
}

.card-header {
    background: var(--body-secondy-color);
}

.card-footer {
    background: var(--body-secondy-color);
    color: var(--text-color);
    height: 35px;
    display: flex;
    justify-content: center;
    font-size: small;
    font-weight: 600;
    padding: 7px;

}

.card-footer p a {
    text-decoration: none;
    color: var(--text-color);
}

.content {
    padding: 0px;
}



.btnLogoutHidden {
    background: none;
    border: none;
    cursor: pointer;
    color: #0000EE;
    /* Link color */
    padding: 0;
}

.dropdown {
    width: 100%;
    height: 100%;
}

#userDropdown::after {
    display: none;
}

/* === Global Premium Loading Overlay === */
/* Ensure SweetAlert toasts appear OVER the loading overlay */
.swal2-container {
    z-index: 11000 !important;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 28, 1) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.premium-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 30px;
}

.premium-spinner div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: premium-spinner-anim 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.premium-spinner div:nth-child(1) {
    animation-delay: -0.45s;
    border-top-color: #3b82f6;
}

.premium-spinner div:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #8b5cf6;
}

.premium-spinner div:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: #06b6d4;
}

@keyframes premium-spinner-anim {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes loaderFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-text {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #f1f5f9;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 400;
    margin-top: 24px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

.loading-subtext {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Fix for jQuery UI Autocomplete Scroll (Global) */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1060 !important;
    /* Global z-index fix */
}