/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */
/* SPDX-License-Identifier: MIT-0 */

.step-details {
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.step-details-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 50%;
}

.step-metadata {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #007dbc;
}

.step-status {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
  display: inline-block;
}

.step-status-succeeded {
  background-color: #d4edda;
  color: #155724;
}

.step-status-failed {
  background-color: #f8d7da;
  color: #721c24;
}

.step-status-running {
  background-color: #d1ecf1;
  color: #0c5460;
}

.step-status-pending {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* JSON Display Styling */
.json-display {
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  font-size: 12px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  overflow: auto;
  max-height: 300px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}

.json-display:hover {
  border-color: #007dbc;
}

/* Scrollbar styling for JSON display */
.json-display::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.json-display::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.json-display::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.json-display::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
.error-message {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: monospace;
  font-size: 14px;
  margin: 0;
  max-height: 400px;
  overflow: auto;
  background-color: #fff8f8;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
  line-height: 1.5;
  color: #721c24;
}
/* Iteration metadata styling */
.iteration-metadata {
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #007dbc;
}
