/**
 * Loading Screen Styles
 */
#nca-loading-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nca-loading-container {
    text-align: center;
    max-width: 320px;
}

.nca-loading-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(139, 31, 31, 0.2);
    animation: loadingPulse 1.5s ease-in-out infinite;
    overflow: hidden;
}

.nca-loading-text-wrapper {
    margin-bottom: 32px;
}

.nca-loading-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.nca-loading-dots {
    font-size: 14px;
    color: #8b1f1f;
    letter-spacing: 3px;
    font-weight: 500;
}

.nca-loading-dots::after {
    content: '...';
    display: inline-block;
    animation: loadingDots 1.4s steps(3, end) infinite;
}

.nca-progress-wrapper {
    margin-bottom: 20px;
}

.nca-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #64748b;
}

.nca-progress-bar-container {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#nca-loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b1f1f 0%, #a02a2a 50%, #caa14a 100%);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(139, 31, 31, 0.3);
    width: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nca-progress-percentage {
    font-size: 13px;
    font-weight: 600;
    color: #8b1f1f;
    min-width: 35px;
    text-align: right;
}

.nca-loading-footer {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Animations */
@keyframes loadingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(139, 31, 31, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 32px rgba(139, 31, 31, 0.3);
    }
}

@keyframes loadingDots {
    0%, 20% {
        content: '';
        animation-timing-function: steps(1, end);
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Smooth fade out */
#nca-loading-screen.fade-out {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 1, 1);
}
