/* Custom CSS for ChatBot Documentation */

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
  margin: 0;
}

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

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

.grid.cards > *:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 2rem;
  margin: 3rem 0;
  background: var(--md-code-bg-color);
  border-radius: 8px;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.footer-cta p {
  margin: 0;
  font-size: 1.1rem;
}

.footer-cta a {
  font-weight: 600;
  text-decoration: none;
  color: var(--md-accent-fg-color);
}

.footer-cta a:hover {
  text-decoration: underline;
}

/* Admonitions Custom */
.admonition {
  border-left: 4px solid;
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
}

.admonition.tip {
  border-color: #00c853;
  background-color: rgba(0, 200, 83, 0.1);
}

.admonition.warning {
  border-color: #ff9800;
  background-color: rgba(255, 152, 0, 0.1);
}

.admonition.danger {
  border-color: #f44336;
  background-color: rgba(244, 67, 54, 0.1);
}

.admonition.info {
  border-color: #2196f3;
  background-color: rgba(33, 150, 243, 0.1);
}

/* Code Blocks */
.highlight {
  border-radius: 8px;
  overflow: hidden;
}

.highlight pre {
  margin: 0;
  padding: 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

table th {
  background-color: var(--md-code-bg-color);
  font-weight: 600;
  text-align: left;
  padding: 0.8rem;
  border-bottom: 2px solid var(--md-default-fg-color--lightest);
}

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

table tr:hover {
  background-color: var(--md-code-bg-color);
}

/* Icons in Headers */
.lg.middle {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  margin: 0 0.2rem;
}

.badge-primary {
  background-color: #2196f3;
}

.badge-success {
  background-color: #4caf50;
}

.badge-warning {
  background-color: #ff9800;
}

.badge-danger {
  background-color: #f44336;
}

.badge-info {
  background-color: #00bcd4;
}

/* Custom List Styles */
.md-typeset ul.custom-list {
  list-style: none;
  padding-left: 0;
}

.md-typeset ul.custom-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.md-typeset ul.custom-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

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

/* Tabs */
.tabbed-set {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
}

/* Search Highlight */
mark {
  background-color: #ffeb3b;
  color: #000;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* Dark Mode Adjustments */
[data-md-color-scheme="slate"] .hero h2 {
  color: var(--md-default-fg-color--light);
}

[data-md-color-scheme="slate"] .footer-cta {
  background: var(--md-code-bg-color);
}

[data-md-color-scheme="slate"] mark {
  background-color: #ffd54f;
  color: #000;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .grid.cards {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.2rem;
  }
}

/* Print Styles */
@media print {
  .md-header,
  .md-footer,
  .md-sidebar,
  .md-nav {
    display: none !important;
  }

  .md-content {
    max-width: 100% !important;
  }
}
