/* --- 1. Global Reset & Theme Variables --- */
    :root {
      --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
      
      --bg-primary: #ffffff;
      --bg-sidebar: #f8f9fa;
      --bg-code: #f1f3f5;
      
      --text-main: #212529;
      --text-muted: #6c757d;
      --text-link: #0066cc;
      
      --border-color: #e9ecef;
      --sidebar-width: 280px;
    }

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

    body {
      font-family: var(--font-sans);
      color: var(--text-main);
      background-color: var(--bg-primary);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    /* --- 2. Layout Structure --- */
    .docs-container {
      display: flex;
      min-height: 100vh;
    }

    .docs-sidebar {
      width: var(--sidebar-width);
      background-color: var(--bg-sidebar);
      border-right: 1px solid var(--border-color);
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      overflow-y: auto;
      padding: 2rem 1.5rem;
    }

    .docs-content {
      margin-left: var(--sidebar-width);
      flex: 1;
      padding: 3rem 4rem;
      max-width: 800px; /* Limits line length for optimal readability */
    }

    /* --- 3. Navigation Links --- */
    .docs-sidebar h3 {
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin: 1.5rem 0 0.5rem 0;
    }

    .docs-sidebar ul {
      list-style: none;
    }

    .docs-sidebar a {
      display: block;
      color: var(--text-main);
      text-decoration: none;
      padding: 0.35rem 0;
      font-size: 0.95rem;
    }

    .docs-sidebar a:hover, 
    .docs-sidebar a.active {
      color: var(--text-link);
      font-weight: 500;
    }

    /* --- 4. Typography & Elements --- */
    h1, h2, h3, h4 {
      font-weight: 700;
      line-height: 1.25;
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    h1 { font-size: 2.25rem; margin-top: 0; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
    h2 { font-size: 1.65rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.3rem; }
    h3 { font-size: 1.35rem; }

    p, ul, ol {
      margin-bottom: 1.2rem;
    }

    ul, ol {
      padding-left: 1.5rem;
    }

    a {
      color: var(--text-link);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    hr {
      border: 0;
      border-top: 1px solid var(--border-color);
      margin: 2rem 0;
    }

    /* --- Table Styles --- */
    table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
    }

    th, td {
      padding: 0.6rem 0.8rem;
      text-align: left;
      border-bottom: 1px solid var(--border-color);
    }

    th {
      background-color: var(--bg-sidebar);
      font-weight: 600;
    }

    /* --- 5. Code & Technical Elements --- */
    code {
      font-family: var(--font-mono);
      background-color: var(--bg-code);
      color: black;
      padding: 0.2rem 0.4rem;
      border-radius: 4px;
      font-size: 0.875rem;
    }

    pre {
      background-color: var(--bg-code);
      padding: 1rem;
      border-radius: 6px;
      overflow-x: auto;
      margin-bottom: 1.2rem;
    }

    pre code {
      padding: 0;
      background-color: transparent;
      border-radius: 0;
    }

    /* --- 6. Callouts / Admonitions --- */
    blockquote, .callout {
      padding: 1rem;
      margin: 1.5rem 0;
      border-left: 4px solid var(--text-link);
      background-color: #f0f7ff;
      border-radius: 0 6px 6px 0;
    }

    blockquote p {
      margin-bottom: 0;
    }

    /* --- 7. Responsive Design --- */
    @media (max-width: 768px) {
      .docs-container {
        flex-direction: column;
      }
      .docs-sidebar {
        position: relative;
        width: 100%;
        padding: 1.5rem;
      }
      .docs-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
      }
    }
