/* Loading Animation CSS */

/* Full screen loading overlay - Aerobuild Cloud Branding */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 25%, #bbdefb 50%, #e3f2fd 75%, #f8f9fa 100%);
    background-size: 400% 400%;
    animation: aerobuildGradient 3s ease-in-out infinite;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-overlay:not(.show) {
    opacity: 0;
    visibility: hidden;
}

/* Aerobuild Cloud gradient animation */
@keyframes aerobuildGradient {
    0% {
        background-position: 0% 0%;
    }
    33% {
        background-position: 100% 50%;
    }
    66% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Remove all spinner styles - using logo only */

/* Aerobuild Cloud loading content */
.loading-content {
    text-align: center;
    color: #1976d2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 25px;
    border: 1px solid rgba(25, 118, 210, 0.2);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.1);
}

.loading-content h4 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1976d2;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

.loading-content p {
    margin: 0 0 25px 0;
    font-size: 1.1rem;
    color: #1565c0;
    font-weight: 500;
}

/* Aerobuild Cloud progressive dots */
.loading-dots {
    display: inline-block;
    position: relative;
    width: 100px;
    height: 28px;
    margin-top: 20px;
}

.loading-dots div {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1976d2, #42a5f5);
    animation: aerobuildDots 1.5s ease-in-out infinite;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(25, 118, 210, 0.4);
}

.loading-dots div:nth-child(1) { left: 12px; animation-delay: 0s; }
.loading-dots div:nth-child(2) { left: 40px; animation-delay: -0.5s; }
.loading-dots div:nth-child(3) { left: 68px; animation-delay: -1s; }

@keyframes aerobuildDots {
    0%, 80%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
        background: linear-gradient(45deg, #bbdefb, #e3f2fd);
    }
    40% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
        background: linear-gradient(45deg, #1976d2, #1565c0);
    }
}

/* Aerobuild Cloud page transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(227, 242, 253, 0.95) 50%, rgba(187, 222, 251, 0.95) 100%);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(12px);
}

.page-transition.show {
    opacity: 1;
    visibility: visible;
}

/* Page transition uses logo instead of spinner */
.page-transition .loading-logo {
    width: 80px;
    height: 80px;
    animation: logoFloat 2s ease-in-out infinite;
}

/* Aerobuild Cloud logo in loading */
.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: logoFloat 3s ease-in-out infinite;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(25, 118, 210, 0.2));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Mobile optimizations for loading */
@media (max-width: 768px) {
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-content h4 {
        font-size: 1rem;
    }
    
    .loading-content p {
        font-size: 0.8rem;
    }
    
    .loading-dots {
        width: 60px;
        height: 16px;
    }
    
    .loading-dots div {
        width: 6px;
        height: 6px;
    }
    
    .loading-dots div:nth-child(1) { left: 6px; }
    .loading-dots div:nth-child(2) { left: 24px; }
    .loading-dots div:nth-child(3) { left: 42px; }
}

/* Dark mode support disabled - causes black screen issues */
/* @media (prefers-color-scheme: dark) {
    .loading-overlay {
        background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    }
    
    .loading-content h4 {
        color: #ffffff;
    }
    
    .loading-content p {
        color: #b3b3b3;
    }
    
    .loading-spinner {
        border-color: #404040;
        border-top-color: #0d6efd;
    }
    
    .page-transition {
        background: rgba(26, 26, 26, 0.95);
    }
} */