/* Enhanced Loading Screen Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #1b6ec2, #17a2b8);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.loading-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.loading-logo {
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
}

.logo-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loading-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.loading-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.loading-content-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 2;
    position: relative;
    margin-bottom: 2rem;
}

.loading-progress-wrapper {
    margin: 0;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out 0.4s both;
    width: 150px;
    height: 150px;
    display: block;
}

.loading-progress {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    display: block;
}

.loading-percentage-svg {
    fill: white;
    font-size: 18px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.loading-text-svg {
    fill: white;
    font-size: 14px;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: central;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    opacity: 0.9;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 0.3rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: white;
    stroke-width: 0.3rem;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.1s ease-in-out;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        stroke: rgba(255, 255, 255, 0.9);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    }
    to {
        stroke: rgba(255, 255, 255, 1);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
    }
}



.loading-version {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    z-index: 2;
    text-align: center;
    width: 100%;
    animation: fadeInUpCentered 1s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive loading screen */
@media (max-width: 480px) {
    .loading-container {
        padding: 1rem;
    }
    
    .logo-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border-radius: 20px;
    }
    
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
        margin: 0;
    }
    
    .loading-progress-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .loading-progress {
        width: 120px;
        height: 120px;
    }
    
    .loading-percentage-svg {
        font-size: 14px;
    }
    
    .loading-text-svg {
        font-size: 12px;
    }
}