:root {
  --sidebar-width: 280px;
}
body {
  font-family: "Inter", sans-serif;
}

/* Custom Scrollbar for Webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #4b5563; /* gray-600 */
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280; /* gray-500 */
}
/* Custom Scrollbar for Firefox */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #4b5563 transparent; /* thumb and track */
}

pre[class*="language-"] {
  border-radius: 0.5rem;
  border: 1px solid #4b5563; /* gray-600 */
  background-color: #1f2937; /* gray-800 */
  /* Added fixed height and scrollbar */
  max-height: 400px; /* Adjust as needed */
  overflow-y: auto;
}
/* MODIFIED: Made selectors more specific to only target links within content blocks */
.prose p a,
.prose ul a,
.prose ol a,
.prose li a {
  color: #60a5fa; /* blue-400 */
  text-decoration: none;
}
.prose p a:hover,
.prose ul a:hover,
.prose ol a:hover,
.prose li a:hover {
  text-decoration: underline;
}
/* This ensures that when you jump to a section, it doesn't hide behind the fixed header. */
main section {
  scroll-margin-top: 5rem;
}
.sidebar {
  width: var(--sidebar-width);
  transition: transform 0.3s ease;
}
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 40;
    height: 100%;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    padding-left: 0;
  }
}
@media (min-width: 1024px) {
  .main-content {
    margin-left: var(--sidebar-width);
  }
}
.search-input {
  -webkit-appearance: none;
}
.code-container {
  position: relative;
  /* Added margin-bottom for spacing */
  margin-bottom: 1.5rem; /* Adjust as needed */
}
.copy-btn {
  position: absolute;
  top: 0.95rem;
  right: 1.5rem;
  background-color: #374151; /* gray-700 */
  color: #d1d5db; /* gray-300 */
  border: 1px solid #4b5563; /* gray-600 */
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.code-container:hover .copy-btn {
  opacity: 1;
}
.copy-btn:hover {
  background-color: #4b5563; /* gray-600 */
  color: #f3f4f6; /* gray-100 */
}
