/* Custom styles for Signalbotics documentation */

:root {
  --md-primary-fg-color: #3949ab;
  --md-primary-fg-color--light: #5e6ebf;
  --md-primary-fg-color--dark: #26357c;
  --md-accent-fg-color: #ff5252;
}

/* Improve code block styling */
.highlight pre {
  border-radius: 6px;
  padding: 1em;
}

/* Better table styling */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
}

table th {
  background-color: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
  padding: 12px;
  text-align: left;
}

table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
}

table tr:hover {
  background-color: #f5f5f5;
}

/* Admonition improvements */
.admonition {
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom card styling for home page */
.card {
  background: white;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 1em 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Code inline styling */
code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Improve navigation tabs */
.md-tabs {
  background-color: var(--md-primary-fg-color);
}

/* Better spacing for lists */
ul, ol {
  line-height: 1.8;
}

/* Footnote styling */
.footnote {
  font-size: 0.85em;
  color: #666;
}

/* Image captions */
figure {
  margin: 2em 0;
  text-align: center;
}

figcaption {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
  font-style: italic;
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] table tr:hover {
  background-color: #2a2a2a;
}

[data-md-color-scheme="slate"] code {
  background-color: #2a2a2a;
}

[data-md-color-scheme="slate"] .card {
  background: #1e1e1e;
}
