/* Loading Overlay - New indigo background and absolute positioning */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2.5rem;
}

/* Container do diamante com fundo sutil */
.diamond-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efeito de fundo do círculo */
.diamond-background {
    position: absolute;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, 
        rgba(129, 140, 248, 0.1) 0%,
        rgba(165, 180, 252, 0.15) 50%,
        rgba(199, 210, 254, 0.1) 100%);
    border-radius: 50%;
    filter: blur(15px);
    animation: backgroundPulse 3s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Animações do diamante */
@keyframes diamondFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

@keyframes diamondGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 15px rgba(165, 180, 252, 0.7));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 25px rgba(199, 210, 254, 0.8));
    }
}

/* Ícone FontAwesome - agora sem o círculo de fundo */
.diamond-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
    animation: iconFloat 3s ease-in-out infinite, diamondGlow 2s ease-in-out infinite alternate;
}

@keyframes iconFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(-10deg);
    }
}

/* Anel giratório ao redor */
.diamond-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(165, 180, 252, 0.6);
    border-radius: 50%;
    animation: ringSpin 12s linear infinite;
    z-index: -1;
}

.diamond-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid rgba(224, 231, 255, 0.3);
    border-radius: 50%;
    animation: ringSpin 8s linear infinite reverse;
}

@keyframes ringSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading Content */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
    padding: 0 2rem;
}

.loading-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e0e7ff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading Dots */
.loading-dot {
    animation: dotPulse 1.5s infinite ease-in-out;
    background-color: #c7d2fe;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(30, 27, 75, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 27, 75, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a5b4fc, #818cf8, #6366f1);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.7);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Text Styles */
.status-text {
    font-size: 0.95rem;
    color: #e0e7ff;
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 500;
    min-height: 1.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.module-name {
    color: #c7d2fe;
    font-weight: 600;
    opacity: 0.9;
}

.progress-percent {
    color: #e0e7ff;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Company Logo */
.company-logo {
    position: absolute;
    top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #eef2ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(129, 140, 248, 0.4);
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #a5b4fc, 
        transparent);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: rgba(199, 210, 254, 0.8);
    font-weight: 500;
    letter-spacing: 1.5px;
}

/* Pontos de brilho */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(224, 231, 255, 0.9);
    border-radius: 50%;
    filter: blur(1px);
    animation: sparkle 2s infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 10%; right: 20%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 30%; left: 25%; animation-delay: 1s; }
.sparkle:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}