/* CSS Reset and Base Styles */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
}

body {
      font-family: "Inter", sans-serif;
      background-color: #ffffff;
      color: #374151;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow: hidden;
}
/* Container */
.container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem;
}

/* Main Layout */
.main-layout {
      display: flex;
      gap: 2rem;
}
.prompt-main-content {
    width: 80%;
    overflow-y: scroll;
    scrollbar-width: thin;
}
@media (min-width: 1024px) {
      .main-layout {
            flex-direction: row;
      }
}


/* Table of Contents */
.toc-sidebar {
      display: none;
      background: white;
      padding: 1.5rem;
      border-radius: 0.5rem;
      /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); */
      position: sticky;
      right: 2rem;
      top: 2rem;
      width: 20%;
      max-width: 250px;
      height: fit-content;
}

@media (min-width: 1024px) {
      .toc-sidebar {
            display: block;
      }
}

.toc-list {
      list-style: none;
      position: relative;
}

.toc-list::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 1px;
      background-color: #e5e7eb;
}

.toc-list li {
      margin-bottom: 0px;
}

/* TOC Links */
.toc-link {
      color: #6b7280;
      text-decoration: none;
      font-size: 0.875rem;
      line-height: 1.5;
      padding: 6px;
      display: block;
      border-left: 3px solid transparent;
      padding-left: 1rem;
      transition: all 0.15s ease;
      transform: translateX(0px);
}

.toc-link:hover {
      background-color: #f9fafb;
      color: #374151;
      border-left: 3px solid #069871;
}

.toc-link.active {
      color: #069871;
      border-left: 3px solid #069871;
      /* font-weight: 500; */
      background-color: rgba(6, 152, 113, 0.07);
}

.toc-link.sub-heading {
      padding-left: 2rem;
}

/* Loading States */
.loading {
      text-align: center;
      padding: 2.5rem 0;
      color: #6b7280;
}

/* Smooth Scrolling */
html {
      scroll-behavior: smooth;
}


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

::-webkit-scrollbar-track {
      background: #e0e0e0;
      border-radius: 10px;
}

::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
      background: #555;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
      .container {
            padding: 1rem;
      }

      .blog-content h2 {
            font-size: 1.875rem;
      }

      .blog-content h3 {
            font-size: 1.5rem;
      }
}

/* TOC Header */
.toc-header {
      font-size: 1rem;
      font-weight: 600;
      color: #374151;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid #e5e7eb;
}
article#blog-content {
      margin-bottom: 500px;
}
.main-content{
      margin-top: 48px;
      display: flex;
      height: calc(100vh - 64px);
      overflow: hidden;
}
.d-menu-item span {
  display: inline-block;       /* or block, depending on layout */
  max-width: 200px;            /* set a width constraint */
  white-space: nowrap;         /* prevent wrapping */
  overflow: hidden;            /* hide overflowed text */
  text-overflow: ellipsis;     /* show ... */
  vertical-align: middle;      /* keeps alignment nice */
}
.d-doc .d-menu-item {
    background-color: white;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
}
.d-doc .d-menu-item img{
      height: 20px;
}