

/* Loading Performance Profiler Styles */
.loading-profiler {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff41;
    min-width: 300px;
    max-width: 400px;
    backdrop-filter: blur(4px);
}

.loading-profiler.hidden {
    display: none !important;
}

.profiler-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.profiler-header h3 {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.total-time {
    font-weight: bold;
    color: #ffd700;
}

.profiler-stages {
    margin-bottom: 12px;
}

.stage-item {
    margin-bottom: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.stage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.stage-name {
    font-weight: bold;
}

.stage-status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.stage-status.pending { background: #666; color: #ccc; }
.stage-status.active { background: #ff6b35; color: #fff; }
.stage-status.complete { background: #28a745; color: #fff; }
.stage-status.error { background: #dc3545; color: #fff; }

.stage-timing {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 6px;
}

.stage-progress-bar {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #32cd32);
    width: 0%;
    transition: width 0.3s ease;
}

.profiler-footer {
    padding-top: 8px;
    border-top: 1px solid #333;
}

.performance-metrics {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
}

.metric-label {
    color: #aaa;
    margin-bottom: 2px;
}

.metric-value {
    color: #00ff41;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-profiler {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        font-size: 11px;
    }
    
    .profiler-header h3 {
        font-size: 12px;
    }
    
    .performance-metrics {
        gap: 8px;
    }
    
    .metric {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .loading-profiler {
        padding: 12px;
        font-size: 10px;
    }
    
    .stage-timing {
        flex-direction: column;
        gap: 2px;
    }
}

