body {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.workflow-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.workflow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#chart-container {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  position: relative;
  min-height: 200px;
}
.chart-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.mermaid {
  visibility: hidden;
}
.mermaid.rendered {
  visibility: visible;
}
.output-container {
  max-height: 500px;
  overflow-y: auto;
}
.tab-content {
  padding: 20px;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 5px 5px;
}
pre {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}
.node-active {
  stroke: #ff7700 !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0 0 5px rgba(255, 119, 0, 0.5));
  transition: all 0.3s ease;
}

.edge-active {
  stroke: #ff7700 !important;
  stroke-width: 2px !important;
  transition: all 0.3s ease;
}

.node-complete {
  stroke: #ff00aa !important;
  stroke-width: 2px !important;
  transition: all 0.3s ease;
}

.edge-traversed {
  stroke: #ff00aa !important;
  stroke-width: 2px !important;
  transition: all 0.3s ease;
}

.animation-controls {
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.animation-speed {
  width: 150px;
}

/* Additional chat styling */
.chat-container code {
  color: #d63384;
}

.chat-container blockquote {
  border-left: 3px solid #ced4da;
  padding-left: 15px;
  margin-left: 10px;
  color: #6c757d;
}

.chat-container img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.chat-container table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.chat-container th, .chat-container td {
  border: 1px solid #dee2e6;
  padding: 8px;
}

.chat-container th {
  background-color: #f8f9fa;
}

.chat-container a {
  color: #0d6efd;
  text-decoration: none;
}

.chat-container a:hover {
  text-decoration: underline;
}

/* Improve mobile experience in chat */
@media (max-width: 768px) {
  .chat-container {
    height: 500px;
  }
  
  .user-message,
  .system-message,
  .tool-message {
    max-width: 95%;
  }
}
