html,
body,
#app {
    height: 100%;
    margin: 0;
    padding: 0;
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: linear-gradient(135deg, #0a1f12 0%, #1a472a 45%, #2d5a40 100%);
    overflow: hidden;
}

/* Background pattern - Optimized: Static background, removed animation */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 180, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 180, 0.08) 0%, transparent 50%);
    opacity: 0.9;
}

/* Main loader content */
.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

/* Logo container with pulse effect */
.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-image {
    width: 580px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 180, 0.2));
    z-index: 2;
    position: relative;
    /* Removed heavy animation for better performance */
}

/* Animated text */
.loader-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 1rem 0;
}

.loader-box span {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 180, 0.3);
    letter-spacing: 2px;
    /* Removed individual letter animations for better performance */
}

/* Progress bar */
.progress-container {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 255, 180, 0.2);
}

.progress-fill {
    height: 100%;
    background: #00ffb4;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 0 5px rgba(0, 255, 180, 0.3);
    /* Simplified progress bar - removed complex animations */
}

.progress-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Loading dots */
.loading-dots {
    display: flex;
    gap: 8px;
    margin: 1rem 0;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffb4;
    box-shadow: 0 0 3px rgba(0, 255, 180, 0.3);
    /* Simplified dots - removed pulse animation */
    animation: dotFade 2s ease-in-out infinite;
}

.loading-dots .dot:nth-child(1) { animation-delay: 0s; }
.loading-dots .dot:nth-child(2) { animation-delay: 0.3s; }
.loading-dots .dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* System info */
.loader-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.system-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 255, 180, 0.3);
}

.loading-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.5px;
    /* Removed text fade animation */
}

/* Responsive design */
@media (max-width: 768px) {
    .loader-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .logo-image {
        width: 140px;
    }
    
    .loader-box span {
        font-size: 2rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .system-info {
        font-size: 1rem;
    }
    
    .loading-status {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 120px;
    }
    
    .loader-box span {
        font-size: 1.8rem;
        gap: 4px;
    }
    
    .progress-container {
        width: 200px;
    }
    
    .system-info {
        font-size: 0.9rem;
    }
}
