/* Custom styles for code blocks */
.highlight {
  padding: 1.75rem !important;
  border-radius: 0.5rem;
  margin: 2rem 0;
  background-color: #1e1e1e !important;
  overflow-x: auto;
}

.highlight.hljs {
  padding: 1.75rem !important;
  line-height: 1.6;
}

/* Add better padding for inline code if needed */
code {
  padding: 0.2em 0.4em;
}

/* Ensure pre elements inside highlight have proper padding and matching background */
.highlight pre {
  padding: 0;
  margin: 0;
  background-color: transparent !important;
  background: transparent !important;
}

/* Ensure code elements inside highlight also have transparent background */
.highlight code,
.highlight pre code {
  background-color: transparent !important;
  background: transparent !important;
}

/* Better scrollbar for code blocks */
.highlight::-webkit-scrollbar {
  height: 8px;
}

.highlight::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.highlight::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.highlight::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}