/* 
 * Premium Global Loader Styling
 * Glassmorphism effect with dual-action spinner.
 */

:root {
    --premium-primary: #0783FF; /* Website primary brand color */
    --premium-text: #1e293b;
    --premium-text-muted: #64748b;
}

#global-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    z-index: 999999;
}

.loader-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    text-align: center;
    min-width: 280px;
}

.premium-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(7, 131, 255, 0.1);
    border-left-color: var(--premium-primary);
    border-radius: 50%;
    animation: premium-spin-main 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 0 15px rgba(7, 131, 255, 0.1);
}

.premium-spinner::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top-color: rgba(7, 131, 255, 0.5);
    animation: premium-spin-sub 2s linear infinite;
}

@keyframes premium-spin-main {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes premium-spin-sub {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.loader-text {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0783FF 0%, #0056b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse-loader-text 2s ease-in-out infinite;
}

@keyframes pulse-loader-text {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 5px rgba(7, 131, 255, 0.2)); }
    50% { opacity: 0.7; filter: drop-shadow(0 0 2px rgba(7, 131, 255, 0)); }
}

.loader-subtext {
    font-size: 0.85rem;
    color: var(--premium-text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}
