#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.axon-loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: smooth-blink 2s ease-in-out infinite;
}

@keyframes smooth-blink {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.loader-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--bs-primary);
}

/* For Dark Mode Support */
.dark-style #global-loader {
    background: rgba(35, 35, 51, 0.85);
}

.dtr-control {
    padding-left: 40px !important;
}

.avatar-30 {
    width: 30px !important;
    height: 30px !important;
}

.object-cover {
    object-fit: cover !important;
}

.text-xs {
    font-size: 0.65rem !important;
}

#toast-container {
    z-index: 999999 !important;
}

.tag-line {
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-transform: none;
}

.offcanvas-footer {
    padding: 1rem 1.5rem;
    background-color: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
}

/* Premium Tooltip Styling - Modern Non-Static Look */
.custom-tooltip-vibrant {
    --bs-tooltip-bg: rgba(26, 26, 46, 0.9) !important;
    backdrop-filter: blur(8px) saturate(180%);
}

.custom-tooltip-vibrant .tooltip-inner {
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--bs-tooltip-bg) !important;
}

.custom-tooltip-vibrant .tooltip-arrow::before {
    border-top-color: var(--bs-tooltip-bg) !important;
}

/* Smooth tooltips entry */
.tooltip.fade {
    transition: opacity 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);
}

/* --- Premium Custom Scrollbar Across App --- */
/* Makes scrollbars thin and elegant without breaking theme style */
::-webkit-scrollbar {
    width: 4px;
    height: 4px; /* Thinner horizontal scrollbar */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3); /* Neutral gray, semi-transparent to match any background */
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5) !important;
}

/* Support for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, 0.3) transparent;
}

/* Ensure horizontal containers don't show bulky scrollbars */
.overflow-x-auto, .table-responsive {
    scrollbar-width: thin;
    padding-bottom: 4px; /* Space for the thin scrollbar */
}

/* --- PerfectScrollbar Consistency Fixes --- */
/* Makes the theme's JS-based scrollbars thin to match the native ones */
.ps__thumb-x {
    height: 4px !important;
    bottom: 1px !important;
}

.ps__thumb-y {
    width: 4px !important;
    right: 1px !important;
}

.ps__rail-x:hover > .ps__thumb-x,
.ps__rail-x:focus > .ps__thumb-x,
.ps__rail-x.ps--clicking .ps__thumb-x {
  height: 6px !important; /* Slightly larger on interaction but still smaller than default */
}

.ps__rail-y:hover > .ps__thumb-y,
.ps__rail-y:focus > .ps__thumb-y,
.ps__rail-y.ps--clicking .ps__thumb-y {
  width: 6px !important;
}

/* --- Global UI Fixes: Ensure SweetAlert2 is above all Modals --- */
.swal2-container {
    z-index: 999999 !important;
}

