/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #25c2a0;
  --ifm-color-primary-dark: #21af90;
  --ifm-color-primary-darker: #1fa588;
  --ifm-color-primary-darkest: #1a8870;
  --ifm-color-primary-light: #29d5b0;
  --ifm-color-primary-lighter: #32d8b4;
  --ifm-color-primary-lightest: #4fddbf;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

/* Force dark theme styling */
[data-theme='dark'] {
  --ifm-color-primary: #25c2a0;
  --ifm-background-color: #1b252f;
  --ifm-background-surface-color: #1b252f;
}

/* Ensure navbar has proper dark styling */
.navbar {
  background-color: var(--ifm-background-surface-color);
}

/* Ensure badges have proper contrast */
.badge {
  --ifm-badge-background-color: var(--ifm-color-primary);
  --ifm-badge-color: #fff;
}

/* Custom styles for PMDaemon */
.hero__title {
  font-size: 3rem;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Code block enhancements */
.prism-code {
  font-size: 14px;
  line-height: 1.5;
}

/* Feature cards */
.feature-card {
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--ifm-color-emphasis-200);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--ifm-color-primary);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.status-online {
  background-color: #d4edda;
  color: #155724;
}

.status-stopped {
  background-color: #f8d7da;
  color: #721c24;
}

.status-starting {
  background-color: #fff3cd;
  color: #856404;
}

/* Command examples */
.command-example {
  background-color: var(--ifm-color-emphasis-100);
  border-left: 4px solid var(--ifm-color-primary);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.command-example code {
  background-color: transparent;
  padding: 0;
}

/* API endpoint styling */
.api-endpoint {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
}

.api-method {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  min-width: 60px;
  text-align: center;
}

.api-method.get {
  background-color: #d4edda;
  color: #155724;
}

.api-method.post {
  background-color: #cce5ff;
  color: #004085;
}

.api-method.delete {
  background-color: #f8d7da;
  color: #721c24;
}

.api-path {
  font-family: var(--ifm-font-family-monospace);
  font-weight: 600;
}

/* Comparison table enhancements */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

.comparison-table th {
  background-color: var(--ifm-color-emphasis-100);
  font-weight: 600;
}

.comparison-check {
  color: #28a745;
  font-weight: 600;
}

.comparison-cross {
  color: #dc3545;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .feature-card {
    padding: 1rem;
  }
}
