/* 
   LOADER PREMIUM STYLES
   Minimalist, sophisticated, and high-performance
*/

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-body, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}


.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    max-width: 800px;
    width: 90vw;
}

.loader-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Signature Drawing Effect - Simplified for GIF */
.loader-logo-wrapper img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));
}

.loader.hidden {
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
}

/* Percentage Counter */
.loader-counter {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    display: flex;
    align-items: baseline;
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

.counter-number {
    font-variant-numeric: tabular-nums;
}

.counter-percent {
    font-size: 1.2rem;
    margin-left: 5px;
}

/* Message under the logo */
.loader-status {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.6;
}

/* Dark mode adjustment if needed */
[data-theme="dark"] .loader {
    background-color: #0a0a0a;
}