/* SillyBubble Extension Styles */

.sillybubble-settings {
  margin-bottom: 10px;
}

.sillybubble_block {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.sillybubble_block label {
  margin-right: 10px;
  min-width: 150px;
}

.sillybubble_block input[type="text"],
.sillybubble_block select {
  flex-grow: 1;
}

.sillybubble_info {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
  font-size: 0.9em;
}

.sillybubble_info code {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
}

.sillybubble_important {
  margin-top: 10px;
  padding: 10px;
  border-left: 3px solid #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

.sillybubble_important strong {
  color: #e74c3c;
}

.sillybubble-test pre {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 10px 0;
}

/* Rendered Images in Tool Calls */
.sillybubble-rendered-image {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  margin: 5px 0;
  text-align: center;
}

.sillybubble-rendered-image img {
  max-width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style adjustments for processed tool calls */
.smallSysMes.toolCall[data-sb-processed="true"] details {
  margin-bottom: 0;
}

.smallSysMes.toolCall[data-sb-processed="true"] summary {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.smallSysMes.toolCall[data-sb-processed="true"] summary:hover {
  opacity: 1;
}

/* Make sure details are properly styled when open */
.smallSysMes.toolCall[data-sb-processed="true"] details[open] .sillybubble-rendered-image {
  display: none;
}

/* Remove the margin between details and summary when image is rendered */
.smallSysMes.toolCall[data-sb-processed="true"] details {
  margin-bottom: 0;
}