/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: loading-pulse 1.5s ease-in-out infinite;
}

.loading-spinner::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    animation-delay: 0s;
}

.loading-spinner::after {
    width: 70%;
    height: 70%;
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    top: 15%;
    left: 15%;
    animation-delay: 0.2s;
}

@keyframes loading-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.loading-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.loading-dots {
    display: inline-block;
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .loading-overlay {
        background: rgba(17, 24, 39, 0.95);
    }
    
    .loading-text {
        color: #9ca3af;
    }
}

/* Body loading state */
body.loading {
    cursor: wait;
    pointer-events: none;
}

body.loading * {
    pointer-events: none;
}

/* Prevent scrolling when loading */
body.loading {
    overflow: hidden;
}

/* Loading animation variants */
.loading-overlay.minimal {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.loading-overlay.minimal .loading-spinner {
    width: 40px;
    height: 40px;
}

.loading-overlay.minimal .loading-text {
    font-size: 12px;
    bottom: -30px;
}

/* Loading overlay for specific elements */
.loading-container {
    position: relative;
}

.loading-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 

html, body {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed;
  width: 100vw;
} 