/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.loading-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.loading-spinner-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-large.hidden {
    display: none;
}

.loading-services {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.loading-service {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
}

.loading-service-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: blink 1.5s ease-in-out infinite;
}

.loading-service.ready .loading-service-dot {
    background: #4ade80;
    animation: none;
}

.loading-service.error .loading-service-dot {
    background: #f87171;
    animation: none;
}

.loading-progress {
    font-size: 14px;
    opacity: 0.8;
}

.loading-progress-bar-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px auto;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.loading-progress-percent {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

/* Service Status Indicators */
.service-status-container {
    display: flex;
    gap: 12px;
    margin-right: 16px;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    transition: all 0.3s ease;
}

.service-status.status-online .status-dot {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.service-status.status-offline .status-dot {
    background: #f87171;
}

.service-status.status-starting .status-dot {
    background: #fbbf24;
    animation: blink 1s ease-in-out infinite;
}

.service-status.status-checking .status-dot {
    background: #94a3b8;
    animation: blink 1.5s ease-in-out infinite;
}

.status-label {
    font-weight: 500;
    color: white;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
