/* Digital Casting System Documentation Theme */

:root {
  /* Light mode colors - enhanced for better contrast */
  --primary-color: #1d4ed8;
  --primary-dark: #1e40af;
  --secondary-color: #374151;
  --accent-color: #d97706;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;

  /* Light mode backgrounds and text - much better contrast */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border-color: #d1d5db;
  --border-light: #e5e7eb;

  /* Enhanced shadows for light mode */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode colors */
[data-md-color-scheme="slate"] {
  --primary-color: #60a5fa;
  --primary-dark: #3b82f6;
  --secondary-color: #94a3b8;
  --accent-color: #fbbf24;
  --success-color: #34d399;
  --warning-color: #fbbf24;
  --error-color: #f87171;

  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1a1;
  --text-muted: #6b7280;
  --border-color: #333333;
  --border-light: #2a2a2a;

  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Base typography */
body {
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Enhanced headings with better hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text-primary);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  border-bottom: 3px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2.5rem;
}

h4 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-top: 2.5rem;
}

/* h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
} */

/* Enhanced code blocks */
code,
pre {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Consolas", "Courier New", monospace;
  font-size: 14px;
  /* border-radius: 6px; */
}

/* Inline code - much better contrast */
code:not(pre code) {
  background: #f3f4f6;
  color: #1f2937;
  padding: 0;
  border: 1px solid #d1d5db;
  font-weight: 600;
  font-size: 13px;
}

/* Code blocks - GitHub-like styling */
pre {
  background: #f6f8fa;
  color: #24292f;
  padding: 0.1rem;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  overflow-x: auto;
  margin: 0;
  position: relative;
  box-shadow: var(--shadow);
}

/* Dark mode specific code styling */
[data-md-color-scheme="slate"] pre {
  background: #0d1117;
  border: 1px solid #21262d;
  color: #e6edf3;
}

[data-md-color-scheme="slate"] code:not(pre code) {
  background: #161b22;
  color: #f0f6fc;
  border: 1px solid #30363d;
}

/* NAVIGATION ENHANCEMENTS - Clean and organized */
.md-nav {
  font-size: 13px;
  line-height: 1.4;
}

/* Navigation titles - clean with no backgrounds */
.md-nav__title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-light);
}

/* Navigation lists */
.md-nav__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Main navigation items */
.md-nav__item {
  margin: 0;
  padding: 0;
}

/* Navigation links - clean styling with proper indentation */
.md-nav__link {
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-weight: 400;
  display: block;
  font-size: 13px;
  line-height: 1;
  background: transparent;
  text-decoration: none;
  margin: 0 0 1px 0;
}

.md-nav__link:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
  text-decoration: none;
  font-weight: 500;
  transform: translateX(2px);
}

.md-nav__link--active {
  color: var(--primary-color);
  background: var(--bg-secondary);
  font-weight: 600;
  position: relative;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary-color);
}

/* Sub-navigation indentation and styling */
.md-nav__item .md-nav__item {
  margin-left: 0;
}

.md-nav__item .md-nav__item .md-nav__link {
  padding-left: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  border-left: 2px solid var(--border-light);
  margin-left: 0.75rem;
}

.md-nav__item .md-nav__item .md-nav__item .md-nav__link {
  padding-left: 2.25rem; /* Second level indent */
  font-size: 11px;
  border-left: 1px solid var(--border-light);
}

.md-nav__item .md-nav__item .md-nav__item .md-nav__item .md-nav__link {
  padding-left: 3rem; /* Third level indent */
  font-size: 11px;
}

/* Sub-navigation hover effects */
.md-nav__item .md-nav__item .md-nav__link:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  transform: translateX(4px);
}

/* Active states for sub-navigation */
.md-nav__item .md-nav__item .md-nav__link--active {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

/* Sidebar styling */
.md-sidebar {
  background: var(--bg-primary);
  border-right: 1px solid var(--border-light);
  width: 12rem;
}

.md-sidebar--primary {
  width: 12rem;
}

.md-sidebar--secondary {
  width: 12rem;
}

/* Content area improvements */
.md-main {
  max-width: none;
  min-width: 800px;
  padding: 0;
  margin: 0;
}

.md-content {
  background: var(--bg-primary);
}

.md-content__inner {
  max-width: none;
  min-width: fit-content;
  min-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

@media screen and (min-width: 76.25em) {
  .md-content {
    background: var(--bg-primary);
  }

  .md-content__inner {
    max-width: none;
    min-width: 600px;
    margin: 0 auto;
    padding: 2rem;
  }
}

/* For ultra-wide screens - maintain left alignment */
@media screen and (min-width: 120em) {
  .md-content__inner {
    max-width: none;
    min-width: fit-content;
    min-width: 600px;
    margin: 0 auto;
    padding: 2rem;
  }
}

/* Responsive design */
@media (max-width: 76.24em) {
  .md-content {
    background: var(--bg-primary);
  }

  .md-content__inner {
    max-width: none;
    min-width: fit-content;
    min-width: 600px;
    margin: 0 auto;
    padding: 2rem;
  }
}

/* Make sure typography uses full width */
.md-typeset {
  max-width: none;
  width: 100%;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6,
.md-typeset p,
.md-typeset div {
  max-width: none;
}

/* Style the function/method signatures */
.doc-heading {
  padding: 8px 12px;
  font-size: 16px !important;
  margin: 0;
}
