/* Add this at the beginning of your existing styles.css */
.no-highlight {
  background: #f5f5f5;
  color: #333;
  padding: 1rem;
  display: block;
  white-space: pre-wrap;
  font-family: monospace;
}

[data-theme="dark"] .no-highlight {
  background: #2d2d2d;
  color: #fff;
}

/* Rest of your existing styles.css content remains the same */
:root {
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f6;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-hover: #3b82f6;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-hover: #60a5fa;
  --border-color: #374151;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

.app {
  min-height: 100vh;
}

/* Navigation */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.hidden {
  display: none;
}

.sidebar {
  overflow-y: auto;
  max-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 16rem;
  background-color: var(--bg-secondary);
  box-shadow: 4px 0 6px var(--shadow-color);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.2s ease-in-out;
}

.sidebar.open {
  transform: translateX(0);
}

.nav-content {
  padding: 1rem;
}

.close-nav {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: -1rem;
  color: var(--text-primary);
}

.chapters {
  display: flex;
  flex-direction: column;
  /* gap: 0.2rem; */
}

.chapter h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.chapter ul {
  list-style: none;
  margin-left: 1rem;
}

.chapter li {
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem 0; /* Reduce top-bottom padding */
  font-size: 0.9rem; /* Optionally reduce font size */
}

.chapter li:hover {
  color: var(--text-hover);
}

.chapter a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 4px var(--shadow-color);
  z-index: 30;
  padding: 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right-buttons {
  display: flex;
  gap: 10px;
  margin-right: 15px;
  /* margin-left: 130px; */
}

.btn {
  padding: 3px 5px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease-in-out;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}


.menu-button,
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 9999px;
  margin-right: 0px;
}

.theme-toggle{
  margin-left: 0; /* Ensure they stay on the left */
  margin-right: auto; /* Push other elements to the right */
}

.menu-button:hover,
.theme-toggle:hover {
  background-color: var(--bg-tertiary);
}

/* Main Content */
.main-content {
  padding-left: 0;
  transition: padding-left 0.2s ease-in-out;
}

.content {
  padding: 5rem 1.5rem 1.5rem;
}

.article {
  max-width: 64rem;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Code Block */
.code-block {
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  border-radius: 0.375rem;
  background-color: #1e1e1e;
}

/* Feature Block */
.feature-block {
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-block ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.feature-block li {
  margin: 0.5rem 0;
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.use-case {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Theme Toggle */
.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
  border-radius: 9999px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-color: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}

/* Media Queries */
@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }

  .close-nav {
    display: none;
  }

  .menu-button {
    display: none;
  }

  .main-content {
    padding-left: 16rem;
  }

  .header {
    left: 16rem;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .close-nav {
    display: block;
  }
}

/* next button */

/* Light and Dark Mode Media Queries */
@media (prefers-color-scheme: dark) {
  a {
    color: #bb86fc; /* Light purple link color in dark mode */
  }

  #next a {
    background-color: #333;
    color: #fff;
    border: 2px solid #bb86fc;
    border-radius: 50px;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  #next a:hover {
    background-color: #bb86fc;
    transform: translateY(-3px);
  }

  #next a:active {
    background-color: #3700b3;
    transform: translateY(1px);
  }

  #next a:focus {
    outline: none;
    border-color: #bb86fc;
  }
}

@media (prefers-color-scheme: light) {
  a {
    color: #6200ee; /* Blue link color in light mode */
  }

  #next a {
    background-color: #6200ee;
    color: #fff;
    border: 2px solid #6200ee;
    border-radius: 50px;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  #next a:hover {
    background-color: #3700b3;
    transform: translateY(-3px);
  }

  #next a:active {
    background-color: #3700b3;
    transform: translateY(1px);
  }

  #next a:focus {
    outline: none;
    border-color: #3700b3;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #next a {
    padding: 10px 20px;
    font-size: 0.9rem; /* Smaller font size on mobile */
  }

  #next a:hover {
    transform: translateY(-2px); /* Less intense hover effect on mobile */
  }
}

@media (max-width: 480px) {
  #next a {
    padding: 8px 15px;
    font-size: 0.85rem; /* Further reduce font size on very small devices */
  }

  #next a:hover {
    transform: translateY(-1px);
  }
}

section h2 {
  font-size: 2rem; /* Large font size */
  font-weight: bold; /* Make the text bold */
  color: #333; /* Dark grey color */
  text-align: left; /* Center the heading */
  letter-spacing: 1px; /* Slightly increase letter spacing for readability */
  margin-bottom: 20px; /* Space below the heading */
  padding: 0px 0; /* Padding above and below the heading */
  background-color: #f0f8ff; /* Light background color to make it pop */
  border-left: 6px solid #ff6347; /* Decorative left border */
  padding-left: 15px; /* Space between the text and the left border */
  border-radius: 10px;
}
@media (max-width: 768px) {
  section h2 {
    font-size: 1rem; /* Slightly smaller font size on smaller screens */
    padding: 1px 0; /* Reduced padding on small screens */
    padding-left: 5px;
  }
}
