/* loading-screen.css - Simple loading screen styles with Figtree font */

/* Import Figtree font with all weights */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800;900&display=swap');

/* Main loading screen container */
#app-loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #f8f9fa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500 !important;
    overflow: hidden !important;
}

.loading-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    z-index: 2;
    width: 500px;
    height: 400px;
    padding: 4rem;
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Logo and branding */
.loading-logo {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.company-logo-direct {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 15px;
    opacity: 0;
    animation: logoFadeIn 1.2s ease-out 0.3s forwards, float 3s ease-in-out 1.5s infinite;
    transition: opacity 0.3s ease;
}

.company-logo-direct.loaded {
    opacity: 1;
    animation: logoFadeIn 0.6s ease-out forwards, float 3s ease-in-out 0.6s infinite;
}

.logo-fallback {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: #6c757d;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    color: white;
    opacity: 0;
    animation: logoFadeIn 0.8s ease-out 0.2s forwards, float 3s ease-in-out 1s infinite;
}

.loading-title {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
    color: #495057;
    margin: 0;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: titleFadeIn 0.8s ease-out 0.6s forwards;
}

/* Progress bar only */
.loading-progress {
    margin: 3rem 0 0 0;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: #0d6efd;
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-size: 1.1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
}

.progress-percentage {
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
    color: #495057;
    font-size: 1.1rem;
}

/* Hide all other elements */
.loading-animation,
.loading-subtitle,
.loading-status,
.progress-step,
.status-text,
.loading-background,
.bg-shape {
    display: none !important;
}

/* Hide main content while loading */
body.loading #app > *:not(#app-loading-screen) {
    display: none !important;
}

/* Force hide any other loading indicators */
body.loading #kanbanLoadingContainer,
body.loading .spinner-border,
body.loading .loading-indicator {
    display: none !important;
}

/* Loading complete animation */
#app-loading-screen.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

/* Simple animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Dark mode support */
html[data-bs-theme="dark"] #app-loading-screen {
    background: #212529 !important;
}

html[data-bs-theme="dark"] .loading-content {
    background: #343a40;
    border: 1px solid #495057;
}

html[data-bs-theme="dark"] .loading-title {
    color: #f8f9fa;
}

html[data-bs-theme="dark"] .progress-text {
    color: #adb5bd;
}

html[data-bs-theme="dark"] .progress-percentage {
    color: #f8f9fa;
} 