/* Custom styling for Titanic ML Documentation */

:root {
  --md-primary-fg-color: #1976d2;
  --md-primary-fg-color--light: #42a5f5;
  --md-primary-fg-color--dark: #0d47a1;
  --md-accent-fg-color: #00bcd4;
}

/* Improve code block styling */
.highlight {
  border-radius: 0.5rem;
}

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

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

.grid.cards > *:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

table th {
  background-color: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
}

table td,
table th {
  padding: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
}

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

/* Admonition improvements */
.admonition {
  border-radius: 0.5rem;
}

/* Button styling */
.md-button {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Badge styling */
img[alt$="svg"] {
  display: inline-block;
  margin: 0.2rem;
}
