/* Error Display Styling */
.error-display {
  border-left: 4px solid;
  animation: slideInFromRight 0.3s ease-out;
}

.error-display.alert-info {
  border-left-color: #0dcaf0;
  background-color: rgba(13, 202, 240, 0.1);
}

.error-display.alert-warning {
  border-left-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.error-display.alert-danger {
  border-left-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.error-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.error-content {
  min-width: 0;
}

.error-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.error-message {
  color: #dee2e6;
  line-height: 1.6;
}

.error-suggestions {
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.375rem;
  margin-top: 0.75rem;
}

.error-suggestions strong {
  color: #ffc107;
}

.error-suggestions ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.error-suggestions li {
  margin-bottom: 0.25rem;
  color: #dee2e6;
}

.error-technical {
  margin-top: 0.75rem;
}

.error-technical code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.875rem;
  font-family: "Courier New", monospace;
}

.error-timestamp {
  font-size: 0.8rem;
  opacity: 0.7;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Improved processing steps with status indicators */
.processing-step {
  transition: all 0.3s ease;
}

.processing-step.step-running {
  background-color: rgba(13, 202, 240, 0.1);
  border-left: 3px solid #0dcaf0;
}

.processing-step.step-completed {
  background-color: rgba(25, 135, 84, 0.1);
  border-left: 3px solid #198754;
}

.processing-step.step-failed {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 3px solid #dc3545;
}

.step-icon i.fa-spinner {
  color: #0dcaf0;
}

.step-icon i.fa-check-circle {
  color: #198754;
}

.step-icon i.fa-exclamation-circle,
.step-icon i.fa-times-circle {
  color: #dc3545;
}


.chat-disabled-message {
  padding: 1rem;
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffc107;
}

.chat-disabled-message i {
  font-size: 1.25rem;
}

/* Better message display for errors in chat */
.chat-message.message-error {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
}

.chat-message.message-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
}

/* Processing indicator improvements */
.processing-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: rgba(13, 202, 240, 0.1);
  border-radius: 0.375rem;
  border: 1px solid rgba(13, 202, 240, 0.3);
}

.processing-indicator .spinner-border {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 0.2rem;
}

.processing-indicator-text {
  flex-grow: 1;
  color: #dee2e6;
}

.processing-indicator-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #0dcaf0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .error-display {
    font-size: 0.9rem;
  }

  .error-icon i {
    font-size: 1.5rem;
  }

  .error-suggestions ul {
    padding-left: 1.25rem;
  }
}
