.loading-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, sans-serif;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

/* Loader container with pulsing effect */
.loading-spinner-container {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
}

/* Pulsing background circle */
.loading-spinner-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(59, 130, 246, 0.2);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spinning loader */
.loading-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: rgb(59, 130, 246);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading text container */
.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 32px;
}

/* Animated dots */
.loading-dot {
    display: inline-block;
    animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loading-dot:nth-child(2) { animation-delay: 150ms; }
.loading-dot:nth-child(3) { animation-delay: 300ms; }

/* Progress bar container */
.loading-progress-container {
    width: 256px;
    position: relative;
}

/* Progress bar background */
.loading-progress-bg {
    height: 4px;
    width: 100%;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 9999px;
    overflow: hidden;
}

/* Progress bar fill */
.loading-progress-fill {
    height: 100%;
    background: linear-gradient(to right, rgb(59, 130, 246), rgb(96, 165, 250));
    border-radius: 9999px;
    transition: width 300ms ease-out;
}

/* Progress percentage */
.loading-progress-text {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(156, 163, 175);
    font-size: 0.875rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    50% { opacity: .5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#content-frame {
    transition: opacity 0.3s ease-out;
}