/* Diagnostic Progress Interface Styles */
/* Requirements: 36.1, 36.2, 36.5 */

.diagnostic-progress-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.diagnostic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.diagnostic-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.diagnostic-icon {
    font-size: 24px;
}

.diagnostic-controls {
    display: flex;
    gap: 8px;
}

.diagnostic-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.diagnostic-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.diagnostic-btn:active {
    transform: translateY(0);
}

.diagnostic-phase {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.phase-label {
    font-size: 14px;
    opacity: 0.9;
}

.phase-name {
    font-size: 16px;
    font-weight: 600;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    transition: width 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.9;
}

.diagnostic-steps {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.steps-header {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.diagnostic-step {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.diagnostic-step:last-child {
    margin-bottom: 0;
}

.diagnostic-step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.step-completed {
    opacity: 0.8;
}

.step-in-progress {
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.step-icon {
    font-size: 18px;
}

.step-title {
    font-size: 14px;
}

.step-description {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.9;
    padding-left: 26px;
}

.no-steps {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
    font-size: 14px;
}

/* Scrollbar styling for steps */
.diagnostic-steps::-webkit-scrollbar {
    width: 6px;
}

.diagnostic-steps::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.diagnostic-steps::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.diagnostic-steps::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .diagnostic-progress-container {
        padding: 16px;
    }

    .diagnostic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .diagnostic-controls {
        width: 100%;
    }

    .diagnostic-btn {
        flex: 1;
    }

    .progress-info {
        flex-direction: column;
        gap: 4px;
    }
}

/* Hidden state */
#diagnostic-progress {
    display: none;
}

#diagnostic-progress.active {
    display: block;
}
