/**
 * Loading Overlay Styles
 */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.visible {
    opacity: 1;
}

.loading-dialog {
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    padding: 32px 40px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.loading-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.loading-icon {
    font-size: 32px;
    animation: bounce 1s infinite;
}

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

.loading-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.loading-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.loading-progress-bar {
    flex: 1;
    height: 8px;
    background: #3c3c3c;
    border-radius: 4px;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #106ebe);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.loading-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #0078d4;
    min-width: 40px;
    text-align: right;
}

.loading-status {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.loading-detail {
    font-size: 12px;
    color: #808080;
    margin-bottom: 12px;
    min-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loading-stats {
    font-size: 11px;
    color: #606060;
    text-align: right;
}

/* Inline loading for part browser */
.loading-inline {
    padding: 20px;
    text-align: center;
    color: #808080;
}

.loading-inline .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #3c3c3c;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.loading-inline .progress-text {
    font-size: 13px;
    margin-bottom: 4px;
}

.loading-inline .detail-text {
    font-size: 11px;
    color: #606060;
}
