/* Maidan Cloud Custom Theme */

:root {
  --maidan-primary: #2563eb;
  --maidan-secondary: #1e40af;
  --maidan-accent: #3b82f6;
  --maidan-success: #059669;
  --maidan-warning: #d97706;
  --maidan-danger: #dc2626;
}

/* Custom header styling */
.nav-chapters {
  font-weight: 500;
}

/* Improve code block styling */
pre {
  border-radius: 8px;
  border-left: 4px solid var(--maidan-primary);
}

/* Custom admonition styling */
.admonition {
  border-radius: 8px;
  margin: 1rem 0;
}

.admonition.note {
  border-left: 4px solid var(--maidan-primary);
}

.admonition.tip {
  border-left: 4px solid var(--maidan-success);
}

.admonition.warning {
  border-left: 4px solid var(--maidan-warning);
}

.admonition.danger {
  border-left: 4px solid var(--maidan-danger);
}

/* Service links table styling */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

table th,
table td {
  border: 1px solid var(--table-border-color);
  padding: 0.75rem;
  text-align: left;
}

table th {
  background-color: var(--table-header-bg);
  font-weight: 600;
}

/* Custom service status indicators */
.service-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.service-status.online {
  background-color: #d1fae5;
  color: #065f46;
}

.service-status.offline {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Quick links styling */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.quick-link {
  display: block;
  padding: 1rem;
  border: 1px solid var(--table-border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link:hover {
  border-color: var(--maidan-primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-link h3 {
  margin: 0 0 0.5rem 0;
  color: var(--maidan-primary);
}

.quick-link p {
  margin: 0;
  color: var(--fg);
  opacity: 0.8;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 0.875rem;
  }
}