/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 128, 128, 0.9); /* More transparent - reduced from 0.9 to 0.85 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px); /* Added subtle blur effect */
}

.loading-overlay.active {
    opacity: 0.5;
    visibility: visible;
}

.loading-spinner {
    width: 50px; /* Slightly smaller */
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2); /* More transparent border */
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 1); /* Semi-transparent background */
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px); /* Blurred background for text */
	opacity: 0; 
}

.loading-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 1; /* Slightly transparent text */
}

.loading-subtext {
    font-size: 0.8rem;
    opacity: 0; /* More transparent subtext */
}

.loading-logo {
    width: 45px; /* Slightly smaller */
    height: 45px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.9) 0%, rgba(0, 102, 102, 0.9) 100%); /* More transparent gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.7); /* More transparent border */
    backdrop-filter: blur(3px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for variety - More transparent */
.loading-pulse {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9); /* More transparent */
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 15px;
    backdrop-filter: blur(2px);
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.6; /* More transparent */
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9; /* More transparent */
    }
    100% {
        transform: scale(0.8);
        opacity: 0.6; /* More transparent */
    }
}

/* Wave animation - More transparent */
.loading-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(3px);
}

.loading-wave-dot {
    width: 10px; /* Slightly smaller */
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); /* More transparent */
    margin: 0 3px;
    animation: wave 1.5s ease-in-out infinite;
}

.loading-wave-dot:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-wave-dot:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-wave-dot:nth-child(4) {
    animation-delay: 0.3s;
}

.loading-wave-dot:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7; /* More transparent */
    }
    30% {
        transform: translateY(-12px); /* Slightly smaller bounce */
        opacity: 1;
    }
}

/* Progress bar style - More transparent */
.loading-progress {
    width: 180px; /* Slightly smaller */
    height: 3px; /* Thinner */
    background: rgba(255, 255, 255, 0.2); /* More transparent */
    border-radius: 2px;
    margin-bottom: 15px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9); /* More transparent */
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Ultra light version for minimal disruption */
.loading-overlay.ultra-light {
    background: rgba(0, 128, 128, 0.7); /* Even more transparent */
}

.loading-overlay.ultra-light .loading-content {
    background: rgba(0, 0, 0, 0.2);
}

.loading-overlay.ultra-light .loading-text {
    opacity: 0.9;
}

.loading-overlay.ultra-light .loading-subtext {
    opacity: 0.7;
}

/* Glass morphism effect */
.loading-overlay.glass {
    background: rgba(0, 128, 128, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-overlay.glass .loading-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}