:root {
  /* Ubuntu Orange color scheme */
  --md-primary-fg-color: #E95420;
  --md-primary-fg-color--light: #F07746;
  --md-primary-fg-color--dark: #C7410E;

  /* Custom colors */
  --landscape-orange: #E95420;
  --landscape-purple: #772953;
  --landscape-light-grey: #F7F7F7;
  --landscape-dark-grey: #2C3E50;

  /* Success/Warning/Error colors */
  --success-color: #4CAF50;
  --warning-color: #FF9800;
  --error-color: #F44336;
  --info-color: #2196F3;
}

/* Material Design Icons - Large and Middle alignment */
.md-typeset .lg {
  font-size: 2.5rem;
}

.md-typeset .middle {
  vertical-align: middle;
}

/* Enhanced grid cards styling */
.md-typeset .grid.cards > * {
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset .grid.cards > *:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(233, 84, 32, 0.15);
  border-color: var(--landscape-orange);
}

/* Card content styling */
/* .md-typeset .grid.cards > * > :first-child {
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, var(--landscape-orange), var(--landscape-purple));
  color: white;
  padding: 1rem;
  margin: 0;
} */

.md-typeset .grid.cards > * > * + * {
  padding: 1rem;
}

/* Enhanced code blocks */
.md-typeset .highlight {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset .highlight > pre {
  margin: 0;
}

/* Code block titles */
.md-typeset .highlight > pre > code[title]:before {
  content: attr(title);
  display: block;
  background: var(--landscape-purple);
  color: white;
  padding: 0.5rem 1rem;
  margin: -1rem -1rem 1rem -1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px 8px 0 0;
}

/* .highlight > pre > code::before {
  content: attr(title);
  display: block;
  background-color: var(--landscape-purple);
  color: white;
  padding: 8px 16px;
  margin: -16px -16px 16px -16px;
  font-weight: 600;
  font-size: 0.9em;
} */

/* Custom admonitions styling */
/* .md-typeset .admonition.success {
  border-color: var(--success-color);
}

.md-typeset .admonition.success > .admonition-title {
  background-color: var(--success-color);
  color: white;
}

.md-typeset .admonition.warning {
  border-color: var(--warning-color);
}

.md-typeset .admonition.warning > .admonition-title {
  background-color: var(--warning-color);
  color: white;
}

.md-typeset .admonition.danger {
  border-color: var(--error-color);
}

.md-typeset .admonition.danger > .admonition-title {
  background-color: var(--error-color);
  color: white;
}

.md-typeset .admonition.tip {
  border-color: var(--landscape-orange);
}

.md-typeset .admonition.tip > .admonition-title {
  background-color: var(--landscape-orange);
  color: white;
} */

/* Enhanced tables */
.md-typeset table:not([class]) {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
}

.md-typeset table:not([class]) th {
  background: linear-gradient(135deg, var(--landscape-orange), var(--landscape-purple));
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
}

.md-typeset table:not([class]) td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) tr:nth-child(even) td {
  background-color: var(--landscape-light-grey);
}

.md-typeset table:not([class]) tr:hover td {
  background-color: rgba(233, 84, 32, 0.05);
}

/* Enhanced inline code */
.md-typeset code {
  /* background-color: var(--landscape-light-grey); */
  /* border: 1px solid #ddd; */
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-family: 'Roboto Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

/* Enhanced inline code in titles */
.md-typeset h1 code,
.md-typeset h2 code,
.md-typeset h3 code {
  background-color: transparent;
  border: none;
  color: var(--landscape-orange);
  font-weight: normal;
}

/* Mermaid diagram styling */
.md-typeset .mermaid {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--landscape-light-grey);
  border-radius: 8px;
  border: 1px solid var(--md-default-fg-color--lightest);
}

/* Enhanced headers */
.md-typeset h1 {
  color: var(--landscape-dark-grey);
  border-bottom: 3px solid var(--landscape-orange);
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}

.md-typeset h2 {
  color: var(--landscape-purple);
  border-bottom: 2px solid var(--landscape-purple);
  padding-bottom: 0.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.md-typeset h3 {
  color: var(--landscape-orange);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Timeline styling for deployment guides */
.timeline {
  position: relative;
  padding: 20px 0;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--landscape-orange), var(--landscape-purple));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 15px 0 15px 60px;
  margin: 25px 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 4px solid var(--landscape-orange);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--landscape-orange);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--landscape-orange);
}

/* Status indicators */
/* .status-indicator {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-indicator.success {
  background-color: var(--success-color);
  color: white;
}

.status-indicator.warning {
  background-color: var(--warning-color);
  color: white;
}

.status-indicator.error {
  background-color: var(--error-color);
  color: white;
}

.status-indicator.info {
  background-color: var(--info-color);
  color: white;
} */

/* Hero section styling */
.hero-section {
  background: linear-gradient(135deg, var(--landscape-orange), var(--landscape-purple));
  color: white;
  padding: 3rem 2rem;
  margin: -1rem -1rem 2rem -1rem;
  border-radius: 0 0 16px 16px;
  text-align: center;
}

.hero-section h1 {
  border: none;
  color: white;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Button styling */
.md-typeset .md-button {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.md-typeset .md-button--primary {
  background: linear-gradient(135deg, var(--landscape-orange), var(--landscape-purple));
  border: none;
  color: white;
}

.md-typeset .md-button--primary:hover {
  background: linear-gradient(135deg, var(--landscape-purple), var(--landscape-orange));
}

/* Architecture diagram enhancements */
.architecture-container {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--landscape-light-grey);
  border-radius: 12px;
  border: 1px solid var(--md-default-fg-color--lightest);
}

/* Progress bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--md-default-fg-color--lightest);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--landscape-orange), var(--landscape-purple));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Feature comparison tables */
.comparison-table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th {
  background: linear-gradient(135deg, var(--landscape-orange), var(--landscape-purple));
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.comparison-table tr:nth-child(even) td {
  background: var(--landscape-light-grey);
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --landscape-light-grey: #37474F;
  --landscape-dark-grey: #ECEFF1;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:nth-child(even) td {
  background-color: rgba(255,255,255,0.05);
}

[data-md-color-scheme="slate"] .timeline-item {
  background: rgba(255,255,255,0.05);
}

[data-md-color-scheme="slate"] .architecture-container {
  background: rgba(255,255,255,0.05);
}

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

  .timeline-item {
    padding-left: 50px;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item::before {
    left: -37px;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }
}

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

  .md-main {
    margin: 0 !important;
  }

  .md-content {
    margin: 0 !important;
    max-width: none !important;
  }

  .hero-section {
    background: white !important;
    color: black !important;
  }
}

/* Animation for loading states */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 2s infinite;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus indicators for accessibility */
.md-typeset a:focus,
.md-typeset button:focus {
  outline: 2px solid var(--landscape-orange);
  outline-offset: 2px;
}

/* Enhanced navigation styling */
.md-nav__title {
  color: var(--landscape-purple);
  font-weight: 600;
}

.md-nav__link--active {
  color: var(--landscape-orange);
  font-weight: 500;
}

/* Footer customization */
.md-footer {
  background: linear-gradient(135deg, var(--landscape-purple), var(--landscape-orange));
}

/* Search highlighting */
.md-search-result__article--document {
  border-left: 4px solid var(--landscape-orange);
}

/* Tab styling enhancements */
.md-typeset .tabbed-set > input:checked + label {
  border-bottom: 2px solid var(--landscape-orange);
  color: var(--landscape-orange);
}

/* Collapsible sections */
.md-typeset details summary {
  background: var(--landscape-light-grey);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--landscape-purple);
}

.md-typeset details[open] summary {
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* Custom emoji and icon sizing */
.md-typeset .twemoji {
  height: 1.2em;
  vertical-align: text-top;
}

/* Sidebar customizations */
.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 4px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: var(--landscape-orange);
  border-radius: 2px;
}