/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
    text-align: center;
    position: relative;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-screen .logo-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-screen .logo-icon img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.loading-screen .logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.loading-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 1.5rem;
    min-height: 1.5em;
}

.loading-screen .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loading-screen .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: floating 6s infinite ease-in-out;
}

@keyframes logoGlow {
    0% {
        box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 80px rgba(139, 92, 246, 0.6);
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(100px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-progress {
        width: 250px;
    }
    
    .loading-screen .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .loading-screen .logo-icon img {
        width: 45px;
        height: 45px;
    }
    
    .loading-screen .logo-text {
        font-size: 1.5rem;
    }
}
