@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Theme variables - Light Mode */
  --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: rgba(255, 255, 255, 0.75);
  --bg-header: rgba(255, 255, 255, 0.8);
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --primary-color: #00c6ff;
  --primary-hover: #00aadd;
  --primary-gradient: linear-gradient(135deg, #00c6ff, #0072ff);
  --accent-color: #0072ff;
  --code-bg: #f1f5f9;
  --code-text: #0f172a;
  --pre-bg: #1e293b;
  --pre-text: #f8fafc;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  
  --nav-hover-bg: rgba(0, 198, 255, 0.06);
  --toc-active-bg: rgba(0, 198, 255, 0.08);
  --highlight-flash: rgba(0, 198, 255, 0.25);
  --kbd-bg: #e2e8f0;
  --kbd-border: #cbd5e1;
  --focus-ring: 0 0 0 3px rgba(0, 198, 255, 0.3);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
  /* Theme variables - Dark Mode */
  --bg-color: #0f172a; /* Modern slate dark background */
  --bg-card: #1e293b;
  --bg-sidebar: rgba(15, 23, 42, 0.75);
  --bg-header: rgba(15, 23, 42, 0.8);
  --border-color: #334155;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  --code-bg: #1e293b;
  --code-text: #38bdf8;
  --pre-bg: #0b0f19;
  --pre-text: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  
  --nav-hover-bg: rgba(0, 198, 255, 0.1);
  --toc-active-bg: rgba(0, 198, 255, 0.15);
  --kbd-bg: #334155;
  --kbd-border: #475569;
  --focus-ring: 0 0 0 3px rgba(0, 198, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.4rem; margin-top: 1.75rem; }
h4 { font-size: 1.1rem; margin-top: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  opacity: 0.95;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Shell Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: background-color var(--transition-fast);
}
.hamburger-btn:hover {
  background-color: var(--nav-hover-bg);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 198, 255, 0.4);
}

.version-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--toc-active-bg);
  border: 1px solid rgba(0, 198, 255, 0.2);
  color: var(--primary-color);
}

.header-middle {
  flex: 1;
  max-width: 480px;
  margin: 0 2rem;
}

.search-box-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--focus-ring);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.kbd-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
}
.kbd-key {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  background-color: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  color: var(--text-muted);
  font-family: monospace;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.selector-wrapper {
  position: relative;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.4rem 1.75rem 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.lang-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.selector-wrapper::after {
  content: '▾';
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8rem;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  background-color: var(--bg-card);
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.theme-toggle-btn .sun-icon { display: none; }
body.dark-theme .theme-toggle-btn .moon-icon { display: none; }
body.dark-theme .theme-toggle-btn .sun-icon { display: block; }

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.github-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}
.github-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Document Wrapper Grid */
.doc-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Sidebar Navigation */
.doc-sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 280px;
  height: calc(100vh - 70px);
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  padding: 2rem 1.5rem;
  z-index: 90;
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.sidebar-nav-item a:hover {
  color: var(--primary-color);
  background-color: var(--nav-hover-bg);
  padding-left: 1.1rem;
}
.sidebar-nav-item.active a {
  color: var(--text-main);
  background-color: var(--toc-active-bg);
  border-left: 3px solid var(--primary-color);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 0.75rem;
  font-weight: 600;
}

/* Content Area */
.doc-content-container {
  grid-column: 2;
  padding: 2.5rem 3rem 4rem 3rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.doc-section {
  margin-bottom: 4.5rem;
}

/* Section Header styling */
.doc-section-header {
  margin-bottom: 1.5rem;
}

.doc-section-header h2 {
  font-size: 2.2rem;
  margin-top: 0;
  border: none;
  padding-bottom: 0.25rem;
  position: relative;
  display: inline-block;
}
.doc-section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.doc-section-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  opacity: 0.85;
  margin-bottom: 2rem;
}

/* Sub-sections styling */
.doc-subsection {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.doc-subsection h3 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

/* Supported Formats Grid */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.format-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.format-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.format-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.8;
}
.format-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.format-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Bullet list premium cards */
.features-list, .steps-list, .types-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.features-list li, .types-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
}
.features-list li::before, .types-list li::before {
  content: '✦';
  position: absolute;
  left: 0.25rem;
  color: var(--primary-color);
  font-weight: bold;
}

.steps-list {
  counter-reset: steps-counter;
}
.steps-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  min-height: 2.2rem;
}
.steps-list li::before {
  counter-increment: steps-counter;
  content: counter(steps-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 198, 255, 0.2);
}

/* Code block styles */
pre {
  background-color: var(--pre-bg);
  color: var(--pre-text);
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Tables styling */
.responsive-table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--nav-hover-bg);
}

/* Table code identifiers */
td code {
  font-weight: 500;
}

/* Admin Tabs Layout */
.admin-tab-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.admin-tab-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}
.admin-tab-card:hover {
  border-color: var(--primary-color);
}

.admin-tab-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-tab-title::before {
  content: '📂';
}

.admin-tab-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Premium Image Placeholder Frame */
.doc-image-container {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-top: 1.25rem;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.doc-image-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.doc-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}
.image-placeholder {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.image-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--text-muted);
  opacity: 0.6;
  transition: transform var(--transition-normal), fill var(--transition-normal);
}
.doc-image-container:hover svg {
  transform: scale(1.1);
  fill: var(--primary-color);
  opacity: 1;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

.faq-chevron {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  transition: transform var(--transition-normal);
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  fill: var(--primary-color);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1);
}
.faq-item.active .faq-answer-panel {
  max-height: 1000px;
  transition: max-height var(--transition-normal) cubic-bezier(0.95, 0.05, 0.795, 0.035);
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
  transition: border-color var(--transition-normal);
}
.faq-item.active .faq-answer-content {
  border-top-color: var(--border-color);
}

/* Scrollspy Table of Contents (Right) */
.doc-toc-sidebar {
  position: fixed;
  top: 70px;
  right: 0;
  width: 260px;
  height: calc(100vh - 70px);
  border-left: 1px solid var(--border-color);
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  padding: 2.5rem 1.5rem;
  z-index: 90;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-item a {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}
.toc-item a:hover {
  color: var(--primary-color);
  padding-left: 0.9rem;
}
.toc-item.active a {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
  padding-left: 0.9rem;
}

.toc-item.level-3 {
  margin-left: 0.75rem;
}

/* Overlay for Mobile Drawer background blur */
.drawer-backdrop {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Search Highlights */
mark {
  background-color: var(--highlight-flash);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1010;
  display: none;
  margin-top: 8px;
  text-align: left;
}
.search-suggestions-dropdown.active {
  display: block;
}
.suggestion-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background-color: var(--nav-hover-bg);
}
.suggestion-section-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}
.suggestion-match-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.3;
}
.suggestion-match-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Focus Flash Effect */
@keyframes section-flash {
  0% {
    background-color: var(--highlight-flash);
  }
  100% {
    background-color: transparent;
  }
}
.section-flash-active {
  animation: section-flash 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 8px;
}

/* Footer Section */
.doc-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 100%;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .doc-wrapper {
    grid-template-columns: 240px 1fr 200px;
  }
  .doc-sidebar {
    width: 240px;
  }
  .doc-toc-sidebar {
    width: 200px;
  }
}

@media (max-width: 1023px) {
  .hamburger-btn {
    display: block;
  }
  .header-middle {
    margin: 0 1rem;
  }
  .doc-wrapper {
    grid-template-columns: 1fr;
  }
  .doc-content-container {
    grid-column: 1;
    padding: 2rem 1.5rem;
  }
  .doc-sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 150;
    top: 70px;
    box-shadow: var(--shadow-lg);
  }
  .doc-sidebar.active {
    transform: translateX(0);
  }
  .doc-toc-sidebar {
    display: none;
  }
  .theme-toggle-btn, .github-link {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 640px) {
  .header-middle {
    display: none; /* Hide search input in header on extra small screens to save space */
  }
  .logo-container {
    font-size: 1.1rem;
  }
  .version-badge {
    display: none; /* Hide version badge to fit logo and icons */
  }
  .doc-section-header h2 {
    font-size: 1.8rem;
  }
  .doc-subsection h3 {
    font-size: 1.2rem;
  }
}
