/* Custom CSS for Technis Documentation */

/* Root variables for consistent theming */
:root {
  --technis-primary: #2196F3;
  --technis-accent: #90CAF9;
  --technis-dark: #0D47A1;
  --technis-code-bg: rgba(33, 150, 243, 0.1);
}

/* Enhanced code blocks */
.highlight {
  border-radius: 0.4rem;
  margin: 1em 0;
}

.highlight code {
  font-size: 0.85em;
  line-height: 1.5;
}

/* Improved table styling */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table thead {
  background-color: var(--technis-primary);
  color: white;
}

table thead th {
  padding: 0.8rem;
  font-weight: 600;
  text-align: left;
}

table tbody tr {
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

table tbody tr:hover {
  background-color: var(--technis-code-bg);
}

table tbody td {
  padding: 0.8rem;
}

table tbody td strong {
  color: var(--technis-primary);
}

/* Dark mode table adjustments */
[data-md-color-scheme="slate"] table thead {
  background-color: var(--technis-dark);
}

[data-md-color-scheme="slate"] table tbody tr:hover {
  background-color: rgba(33, 150, 243, 0.15);
}

/* Enhanced admonitions */
.admonition {
  border-radius: 0.4rem;
  margin: 1.5em 0;
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  margin: 2em 0;
}

/* Better spacing for lists */
.md-typeset ul, .md-typeset ol {
  margin: 1em 0;
}

.md-typeset li {
  margin: 0.5em 0;
}

/* Code inline styling */
.md-typeset code {
  background-color: var(--technis-code-bg);
  padding: 0.1em 0.4em;
  border-radius: 0.2rem;
  font-size: 0.9em;
}

/* Navigation improvements */
.md-nav__link--active {
  font-weight: 600;
}

/* Enhanced search results */
.md-search-result__article {
  padding: 1rem;
}

/* Improve footer spacing */
.md-footer {
  margin-top: 3rem;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--technis-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--technis-dark);
}

/* Responsive improvements */
@media screen and (max-width: 76.1875em) {
  .md-typeset table {
    font-size: 0.9em;
  }
}

/* Print styles */
@media print {
  .md-header,
  .md-sidebar,
  .md-footer {
    display: none;
  }
}
