/* Custom CSS for HOMEPOT Client Documentation */

/* Brand colors */
:root {
  --homepot-primary: #3f51b5;
  --homepot-accent: #ff4081;
}

/* Code block improvements */
.highlight {
  margin: 1em 0;
}

/* Admonition styling */
.admonition {
  margin: 1.5625em 0;
}

/* Table improvements */
table {
  display: block;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* Code inline styling */
code {
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* Improved heading anchors */
.md-typeset h1[id]::before,
.md-typeset h2[id]::before,
.md-typeset h3[id]::before {
  display: block;
  content: "";
  margin-top: -4rem;
  height: 4rem;
  pointer-events: none;
}

/* Custom note boxes */
.note {
  border-left: 4px solid var(--homepot-primary);
  padding-left: 1em;
  margin: 1em 0;
}

.warning {
  border-left: 4px solid #ff9800;
  padding-left: 1em;
  margin: 1em 0;
}

.tip {
  border-left: 4px solid #4caf50;
  padding-left: 1em;
  margin: 1em 0;
}

/* Keyboard key styling */
kbd {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  color: #333;
  display: inline-block;
  font-family: monospace;
  font-size: 0.85em;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

/* Footer improvements */
.md-footer__inner {
  padding: 0.4rem;
}

/* Navigation improvements */
.md-nav__item--active > .md-nav__link {
  color: var(--homepot-primary);
}

/* Search improvements */
.md-search__input {
  border-radius: 0.2rem;
}

/* Card-like sections for better visual hierarchy */
.card {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 1em;
  margin: 1em 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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