﻿/* ================================
   GLOBAL APP LOADER (Tabler style)
   ================================ */

.logo-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--loader-bg, #ffffff);
    z-index: 9999;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

    /* Fade animation */
    .logo-loader.fade-out {
        opacity: 0;
        visibility: hidden;
    }

/* Center container */
.loader-content {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo */
.loader-logo {
    width: 64px;
    height: 64px;
    z-index: 2;
    animation: logoPulse 1.6s ease-in-out infinite;
}

/* Ring */
.loader-ring {
    position: absolute;
    inset: 0;
    width: 140px;
    height: 140px;
    animation: loaderSpin 1.4s linear infinite;
}

    .loader-ring circle {
        fill: none;
        stroke: var(--loader-accent, #5c7cfa);
        stroke-width: 4.5;
        stroke-linecap: round;
        stroke-dasharray: 220;
        stroke-dashoffset: 40;
        opacity: 0.9;
    }

/* Animations */

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}
/* Light Theme Loader */
body.light-theme {
    --loader-bg: #ffffff;
    --loader-accent: #3b82f6;
}

/* Dark Theme Loader */
body.dark-theme {
    --loader-bg: #0f172a;
    --loader-accent: #5c7cfa;
}
