:root {
  --md-primary-fg-color: #4caf50;
  --md-primary-fg-color--light: #8bc34a;
  --md-primary-fg-color--dark: #2e7d32;
  --md-accent-fg-color: #8bc34a;
  --md-primary-bg-color: #ffffff;
  --md-text-color: #333333;
  --md-code-bg-color: #f5f7f9;
  --md-code-fg-color: #111111;
}

/* Global styles */
body, html {
  scroll-behavior: smooth;
}

.md-header {
  background-color: var(--md-primary-fg-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.md-tabs {
  background-color: var(--md-primary-fg-color--dark);
}

/* Top Navigation Tabs */
.md-tabs__link {
  margin-top: 0.4rem;
  padding: 0.6rem 0.8rem;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  opacity: 1;
  font-weight: 600;
}

.md-tabs__item--active {
  position: relative;
}

.md-tabs__item--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background-color: white;
  border-radius: 3px 3px 0 0;
}

/* Adjust tab heights */
.md-tabs__list {
  height: 3rem;
}

.md-tabs__item {
  height: 3rem;
  padding: 0 0.5rem;
}

/* Typography */
.md-typeset h1 {
  color: var(--md-primary-fg-color--dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  color: var(--md-primary-fg-color--dark);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.md-typeset h3 {
  font-weight: 600;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.md-typeset p {
  line-height: 1.6;
  color: var(--md-text-color);
}

.md-typeset a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.md-typeset a:hover {
  color: var(--md-primary-fg-color--dark);
  text-decoration: underline;
}

/* Code blocks */
.md-typeset code {
  background-color: var(--md-code-bg-color);
  color: var(--md-code-fg-color);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.md-typeset pre > code {
  font-size: 0.85em;
  line-height: 1.6;
  padding: 1rem;
}

/* Buttons */
.md-button {
  transition: all 0.3s ease-in-out;
  font-weight: 500;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1.5rem;
}

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

.md-button--primary {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color) !important;
  border: none;
}

.md-button--primary:hover {
  background-color: var(--md-primary-fg-color--dark);
  color: white !important;
}

/* Logo and navigation */
.md-header-nav__button.md-logo img, 
.md-header-nav__button.md-logo svg {
  height: 2rem;
}

.home-logo {
  display: block;
  margin: 0 auto;
  max-width: 150px;
  height: auto;
}

/* Tables */
.md-typeset table:not([class]) {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
  padding: 0.9rem;
}

.md-typeset table:not([class]) td {
  padding: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: none;
}

/* Footer */
.md-footer-meta {
  background-color: var(--md-primary-fg-color--dark);
}

.md-footer-nav {
  background-color: #1c1c1c;
}

/* Utility classes */
.center-text {
  text-align: center;
}

/* Card effects */
.feature-card, .pricing-card, .code-sample {
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content, .section-title, .feature-card, .code-sample, .pricing-card {
  animation: fadeIn 0.8s ease-out forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}