/* Custom styles for FlowEditor Executor documentation */

:root {
  --md-primary-fg-color: #3f51b5;
  --md-accent-fg-color: #ff4081;
}

/* Grid cards styling */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.grid.cards > div {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.grid.cards > div:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Code block enhancements */
.highlight pre {
  border-radius: 0.3rem;
}

/* Admonition styling */
.admonition {
  border-left: 0.3rem solid;
  border-radius: 0.2rem;
  margin: 1.5rem 0;
  padding: 0 1.2rem;
}

/* Table styling */
table {
  border-collapse: collapse;
  width: 100%;
}

table thead th {
  background-color: var(--md-primary-fg-color--light);
  color: white;
  font-weight: 600;
  padding: 0.8rem;
  text-align: left;
}

table tbody tr:nth-child(even) {
  background-color: var(--md-default-bg-color--lightest);
}

table tbody td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

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

/* Footer customization */
.md-footer-meta {
  background-color: var(--md-footer-bg-color);
}

/* Version banner */
.md-version {
  font-weight: 600;
}

/* Navigation improvements */
.md-nav__link--active {
  font-weight: 600;
  color: var(--md-primary-fg-color);
}

/* Search result highlighting */
.md-search-result__article--document {
  border-left: 0.3rem solid var(--md-accent-fg-color);
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0.2rem;
}

/* Code inline */
code {
  background-color: var(--md-code-bg-color);
  border-radius: 0.2rem;
  padding: 0.1rem 0.3rem;
  font-size: 0.85em;
}

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

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