// Styles for LLM Tool Message Component
.o_llm_tool_result {
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  background-color: var(--bs-gray-50);

  .o_llm_tool_result_header {
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .o_llm_tool_result_section {
    button {
      cursor: pointer;
      border: none !important;
      box-shadow: none !important;

      &:hover {
        color: var(--bs-primary) !important;
      }

      &:focus {
        box-shadow: none !important;
        outline: none !important;
      }
    }
  }

  .o_llm_tool_result_args,
  .o_llm_tool_result_content {
    pre {
      white-space: pre-wrap;
      word-break: break-all;
      max-height: 300px;
      margin-bottom: 0;
      font-size: 0.875rem;
      line-height: 1.4;

      code {
        color: inherit;
        background: transparent;
        padding: 0;
      }
    }
  }

  .o_llm_tool_result_args pre {
    max-height: 150px; // Smaller for args
  }

  // Error styling
  .bg-danger-subtle {
    background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
  }
}
