/* Simple Professional Loader */
.simple-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #011936, #0b2a4d);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

    .simple-page-loader.fade-out {
        opacity: 0;
        pointer-events: none;
    }

/* Loader Content */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Logo with Rotating Circle */
.logo-loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating Circle */
.rotating-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #E43636;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    top: 0;
    left: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Logo Container */
.logo-container {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Loading Text */
.loading-text {
    text-align: center;
}

    .loading-text span {
        font-size: 1.1rem;
        color: #f8f8f8;
        font-weight: 500;
        letter-spacing: 1px;
        animation: fade-in-out 1.5s ease-in-out infinite;
    }

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Simple Progress Bar */
.progress-bar {
    width: 200px;
    height: 3px;
    background: #f0f0f0;
    border-radius: 1.5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 1.5px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Alternative: Dots Loading (if you prefer dots instead of progress bar) */
.dots-loading {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #4f46e5;
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

    .dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .dot:nth-child(2) {
        animation-delay: -0.16s;
    }

    .dot:nth-child(3) {
        animation-delay: 0s;
    }

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-loader {
        width: 100px;
        height: 100px;
    }

    .rotating-circle {
        width: 100px;
        height: 100px;
    }

    .logo-container {
        width: 65px;
        height: 65px;
    }

    .loading-text span {
        font-size: 1rem;
    }

    .progress-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .logo-loader {
        width: 80px;
        height: 80px;
    }

    .rotating-circle {
        width: 80px;
        height: 80px;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }
}

/* Alternative Spinning Circle Styles */
.spinning-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid transparent;
    border-top: 2px solid #4f46e5;
    border-right: 2px solid #06b6d4;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* For colored background version */
.simple-page-loader.colored {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

/* For dark mode version */
.simple-page-loader.dark {
    background: #1a1a1a;
}

    .simple-page-loader.dark .loading-text span {
        color: #ccc;
    }

    .simple-page-loader.dark .progress-bar {
        background: #333;
    }

    .simple-page-loader.dark .rotating-circle {
        border-color: #333;
        border-top-color: #4f46e5;
    }
