﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    height: 100vh;
   
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

    .preloader.fade-out {
        opacity: 0;
        pointer-events: none;
    }

    .preloader * {
        box-sizing: border-box;
    }

.preloader-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #495057;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.system-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
    line-height: 1.3;
}

.system-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-weight: 400;
}

.spinner-container {
    margin-top: 2rem;
    position: relative;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f1f3f4;
    border-top: 3px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.progress-bar {
    width: 200px;
    height: 3px;
    background: #f1f3f4;
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6c757d, #495057);
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

.layout-content,
.bg-footer {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .system-title {
        font-size: 1.2rem;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Alternative spinner styles for variety */
.spinner-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.dot {
    width: 12px;
    height: 12px;
    background: #6c757d;
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite 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.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}
