/* 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;
    min-height: 400px;
    max-height: 90vh;
    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;
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.company-logo-direct.loaded {
    opacity: 1;
}

.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;
    animation: float 3s ease-in-out infinite, fadeIn 0.5s ease-in-out;
}

.loading-title {
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Figtree', sans-serif;
    color: #6c757d;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Spinner container */
.loading-spinner {
    margin: 2rem 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Spinner circle */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading text */
.loading-text {
    color: #6c757d;
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
    flex-shrink: 0;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 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 fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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"] .loading-text {
    color: #adb5bd;
}

html[data-bs-theme="dark"] .spinner {
    border-color: #495057;
    border-top-color: #0d6efd;
} 