/* Preloader Container */
.preloader2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Background color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Stay on top */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Popping Logo */
.preloader2-logo {
    width: 80px; /* Adjust size as needed */
    height: auto;
    animation: popInOut 0.8s infinite ease-in-out; /* Faster animation (0.7s) */
}

/* Pop In & Out Animation */
@keyframes popInOut {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.6);
        opacity: 0;
    }
}

/* Hide Preloader After Page Loads */
body.loaded .preloader2 {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* ===== avatar: force white background and remove any shadow ===== */

/* generic targets to make sure we hit the element that has the white box */
.topbar .account-user-avatar,
.topbar .nav-user .account-user-avatar,
.navbar-custom .topbar .account-user-avatar,
.nav-user .account-user-avatar {
    background-color: #fff !important;    /* match topbar white */
    box-shadow: none !important;          /* remove shadow */
    -webkit-box-shadow: none !important;
    border: 0 none !important;            /* remove border if any */
    padding: 0 !important;                /* remove extra inner spacing */
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    overflow: visible !important;
}

/* remove pseudo-element shadows (some themes use ::before or ::after) */
.topbar .account-user-avatar::before,
.topbar .account-user-avatar::after,
.nav-user .account-user-avatar::before,
.nav-user .account-user-avatar::after {
    content: none !important;
    box-shadow: none !important;
}

/* ensure the image itself has no background or shadow */
.topbar .account-user-avatar img,
.navbar-custom .topbar .account-user-avatar img,
.topbar .nav-user img {
    background: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: block !important;
    object-fit: cover !important;
}

/* in case the toggle/link around avatar has background or shadow */
.topbar .nav-link.nav-user,
.topbar .nav-link.nav-user .account-user-avatar {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 none !important;
}
