/* Simple Minimalist TypeDoc Theme */

:root {
  /* Colors - Modern Minimalist Palette */
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --text: #0f172a;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --border: #e2e8f0;
  --code-bg: #f1f5f9;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

/* Dark theme */
[data-theme="dark"] {
  --primary: #f8fafc;
  --primary-hover: #e2e8f0;
  --text: #f8fafc;
  --text-light: #94a3b8;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --border: #334155;
  --code-bg: #1e293b;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
}





/* Header */
.tsd-page-toolbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tsd-toolbar-contents {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}



#tsd-toolbar-links {
  display: flex;
  gap: var(--space-lg);
}

#tsd-toolbar-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

#tsd-toolbar-links a:hover {
  color: var(--accent);
}

/* --------------------------- */

/* Main layout */

.col-content {
  flex: 1;
  padding: var(--space-xl) var(--space-lg);
  max-width: calc(100% - 280px);
  order: 1;
}

.col-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  padding: var(--space-lg);
  overflow-y: auto;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  order: 2;
}



/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.25rem;
  margin-top: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-md);
  font-weight: 800;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-light);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


/* Code */
code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

pre {
  background: var(--code-bg);
  padding: var(--space-lg);
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Navigation */
.tsd-navigation a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
}

.tsd-navigation a:hover {
  background: var(--bg);
  color: var(--accent);
}

.tsd-navigation .current a,
.tsd-navigation a.current {
  background: var(--accent);
  color: white;
  font-weight: 500;
}

.tsd-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tsd-navigation li {
  margin: 0;
}

/* Sidebar navigation improvements */
.tsd-navigation {
  font-size: 0.875rem;
}

.tsd-navigation .tsd-accordion-summary {
  padding: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.tsd-navigation .tsd-accordion-details {
  margin-left: var(--space-sm);
}

.tsd-navigation .tsd-accordion-details ul {
  margin-left: var(--space-md);
}

.tsd-navigation .tsd-accordion-details a {
  padding-left: var(--space-md);
  font-size: 0.8125rem;
}

/* Panels */
.tsd-panel {
  margin-bottom: var(--space-xl);
}

.tsd-panel h1,
.tsd-panel h2,
.tsd-panel h3 {
  margin-top: 0;
}

/* Signatures */
.tsd-signature {
  background: var(--code-bg);
  padding: var(--space-md);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin: var(--space-md) 0;
  overflow-x: auto;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

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

/* Search */
#tsd-search-trigger {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: var(--space-sm);
  color: var(--text);
  cursor: pointer;
}

#tsd-search-trigger:hover {
  background: var(--bg-secondary);
}

/* Theme toggle */
#tsd-theme {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text);
  font-size: 0.875rem;
}

/* Accordion */
.tsd-accordion-summary {
  cursor: pointer;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}

.tsd-accordion-summary h3 {
  margin: 0;
  font-size: 1rem;
  display: inline;
}

.tsd-accordion-summary:hover {
  color: var(--accent);
}

/* Page menu */
.page-menu {
  margin-bottom: var(--space-lg);
}

.page-menu a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
}

.page-menu a:hover {
  color: var(--accent);
}

/* Alerts */
.tsd-alert {
  padding: var(--space-lg);
  border-radius: 0.75rem;
  margin: var(--space-lg) 0;
  border-left: 4px solid var(--accent);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.tsd-alert-title {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Additional fixes for text overflow and layout */
.tsd-signature-symbol,
.tsd-signature-type {
  word-break: break-word;
  overflow-wrap: break-word;
}

.tsd-member-group h2,
.tsd-index-group h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fix for long parameter names and types */
.tsd-parameters {
  overflow-x: auto;
}

.tsd-parameter-list {
  word-break: break-word;
}

/* Ensure proper spacing and sizing for all elements */
.tsd-comment {
  margin: var(--space-md) 0;
  line-height: 1.6;
}

.tsd-comment p {
  margin-bottom: var(--space-sm);
}

/* Fix sidebar scrolling and text wrapping */
.col-sidebar * {
  max-width: 100%;
  box-sizing: border-box;
}

.tsd-navigation .tsd-kind-namespace > a,
.tsd-navigation .tsd-kind-module > a,
.tsd-navigation .tsd-kind-class > a {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .container-main {
    flex-direction: column;
  }
  
  .col-sidebar {
    width: 100%;
    min-width: auto;
    position: static;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 300px;
    overflow-y: auto;
  }
  
  .col-content {
    max-width: 100%;
    padding: var(--space-md);
  }
  
  .tsd-toolbar-contents {
    padding: 0 var(--space-md);
    flex-direction: column;
    gap: var(--space-md);
  }
  
  #tsd-toolbar-links {
    order: -1;
  }
}

@media (max-width: 1024px) {
  .col-sidebar {
    width: 240px;
    min-width: 240px;
  }
  
  .col-content {
    max-width: calc(100% - 240px);
  }
}

/* Clean up default styles */
.tsd-widget {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.tsd-widget svg {
  width: 16px;
  height: 16px;
}

/* Hide unnecessary elements */
.tsd-breadcrumb {
  display: none;
}

/* Improve readability */
.tsd-typography {
  max-width: none;
}

.tsd-typography img {
  max-width: 100%;
  height: auto;
}

/* Kind icons */
.tsd-kind-icon {
  display: none;
}


/* Footer */
footer {
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
}
