﻿/* wwwroot/css/loading.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 50px;
}

.logo-spinner-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

    .logo-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    text-align: center;
}

.loading-title {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #3182ce;
    border-radius: 2px;
    animation: progress 2s ease infinite;
}

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

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

@keyframes progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Versão mais elaborada do spinner */
.spinner-ring-outer {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border: 3px solid transparent;
    border-top-color: #3182ce;
    border-right-color: #3182ce;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: #63b3ed;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}