/* ================================
   BRAND COLORS (APIDataTools)
================================ */

:root {
  /* Primary (Main brand) */
  --md-primary-fg-color: #03d5ac;

  /* Variants (important for depth) */
  --md-primary-fg-color--light: #35e3c1;
  --md-primary-fg-color--dark: #02b893;

  /* Accent (slightly deeper for contrast) */
  --md-accent-fg-color: #02c39a;

  /* Background tweaks */
  --md-default-bg-color: #ffffff;
}

/* ================================
   DARK MODE (balanced contrast)
================================ */

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #03d5ac;
  --md-primary-fg-color--light: #35e3c1;
  --md-primary-fg-color--dark: #029e7f;

  --md-accent-fg-color: #00e0b2;

  --md-default-bg-color: #0f172a; /* slightly softer than pure black */
}

/* ================================
   UI POLISH (SaaS feel)
================================ */

/* Header shadow */
.md-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.md-button {
  border-radius: 8px;
  font-weight: 500;
}

/* Links */
a {
  transition: color 0.2s ease;
}

/* Code blocks */
.md-typeset pre {
  border-radius: 10px;
}

/* Cards (homepage grid) */
.grid.cards > * {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  background: #ffffff;
  transition: all 0.2s ease;
}

.grid.cards > *:hover {
  transform: translateY(-2px);
  border-color: var(--md-primary-fg-color);
}

/* Dark mode cards */
[data-md-color-scheme="slate"] .grid.cards > * {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Table styling */
.md-typeset table {
  border-radius: 10px;
  overflow: hidden;
}

/* Admonitions (notes, warnings) */
.md-typeset .admonition {
  border-radius: 10px;
}

/* Scrollbar (subtle branding) */
::-webkit-scrollbar-thumb {
  background: var(--md-primary-fg-color);
  border-radius: 10px;
}
.md-header {
  background: linear-gradient(90deg, #03d5ac, #02c39a);
}
.md-tabs__link--active {
  color: #03d5ac !important;
  font-weight: 600;
}
.md-clipboard {
  color: #03d5ac;
}

/* Improve readability */
.md-typeset {
  font-size: 15.5px;
  line-height: 1.7;
}

/* Card grid */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Buttons */
.md-button {
  border-radius: 8px;
}

/* =========================
   HERO CTA BUTTON (SaaS)
========================= */

.hero-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;

  background: linear-gradient(135deg, #03d5ac, #02c39a);
  color: white !important;
  text-decoration: none;

  box-shadow: 0 6px 20px rgba(3, 213, 172, 0.35);
  transition: all 0.25s ease;
}

/* Hover effect */
.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(3, 213, 172, 0.5);
}

/* Active click */
.hero-button:active {
  transform: scale(0.98);
}