.loading-container {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9fafb;
}

.dark .loading-container {
    background-color: #111827;
}

.loading-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.5;
}

.loading-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    animation: blob-float 10s infinite ease-in-out;
}

.blob-1 {
    background: #3b82f6;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.blob-2 {
    background: #8b5cf6;
    bottom: 20%;
    right: 20%;
    animation-delay: -3.3s;
}

.blob-3 {
    background: #6366f1;
    top: 50%;
    left: 50%;
    animation-delay: -6.6s;
}

.loading-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .loading-content {
    background-color: rgba(17, 24, 39, 0.8);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .loading-text {
    color: #f3f4f6;
}

.loading-progress-container {
    width: 200px;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.dark .loading-progress-container {
    background-color: #374151;
}

.loading-progress-bar {
    height: 100%;
    width: 0;
    background-color: #3b82f6;
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.loading-progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-glow 1.5s infinite;
}

.loading-message {
    font-size: 0.875rem;
    color: #6b7280;
    transition: opacity 0.3s ease;
}

.dark .loading-message {
    color: #9ca3af;
}

/* Animations */
@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-50px, 50px) scale(1.1);
    }
    50% {
        transform: translate(50px, -50px) scale(0.9);
    }
    75% {
        transform: translate(25px, 25px) scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes progress-glow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Blazor ready state */
.blazor-ready .loading-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
