.external {
  background: green;
  color: #fff;
  padding: 1rem;
}

/* Main container styles */
.ai-system-steps {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 0px !important;
  padding-right: 10px;
}

/* .new-step {
  animation: fadeIn 0.8s ease-out;
  opacity: 1;
} */

/* @keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* Main title */
.system-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* Steps container */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual step */
.step {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.step.expanded {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Step header */
.step-header {
  padding: 12px 16px;
  background-color: #f5f7f9;
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  transition: background-color 0.2s ease;
}

.step-header:hover {
  background-color: #edf0f3;
}

/* Title container to group title and expand button */
.title-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Step title styling */
.step-title {
  font-style: italic;
  font-weight: 500;
  color: #333;
  flex-grow: 1;
}

/* Expand button styling */
.expand-button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.expand-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #222;
}

/* Step content */
.step-content {
  padding: 16px;
  overflow-x: scroll;
  background-color: white;
  line-height: 1.5;
}

/* Styles for the stop button container to ensure it's always visible */
.stop-button-container {
  position: sticky;
  bottom: 0;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0);
  padding: 8px 0;
  border-top: 0px solid #e0e0e0;
  z-index: 100;
  width: 100%;
  text-align: center;
}

.stop-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.stop-button:hover {
  background-color: #ff3333;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.stop-button:disabled {
  background-color: #cccccc;
  cursor: default;
  box-shadow: none;
}

.stop-button svg {
  margin-right: 8px;
}
