.text-alert-danger,
.text-alert-danger a {
  color: #fff;
}

.section-icon svg {
  border-radius: 0;
  min-width: 24px;
  min-height: 24px;
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin: 0 10px 0 0;
}

.section-info,
.section-info a {
  color: #fff;
  background-color: #0084d1;
}

.doc-table {
  p {
    margin: 0;
  }
}

table {
  table-layout: auto;
  width: 100%;
}

td:first-child,
th:first-child {
  width: auto;       
  white-space: nowrap;
}

/* MARS Theme */

/* Code Block background override */
html.dark pre:not(.bg-foreground\/10):where(.dark, .dark *), html.dark .dark\:\!bg-foreground\/10:where(.dark, .dark *) {
  background-color: #EDD5D51A !important;
}

/* Text highlight override */
html.dark ::selection {
  color: #ffffff;
  background: #EDD5D52E;
}

/* Target OpenAPI description field paragraph override */
html.dark .text-card-foreground p {
  color: #D4D4D4;
}

/* Target Playground / Example Response header override */
html.dark .font-mono {
  color: #D4D4D4;
}

/* Target Playground Right side response background override */
html.dark .min-w-0.p-4.py-8.bg-muted\/50 {
  background: #EDD5D51A;
}

/* Target Playground test button override */
html.dark button.text-primary-foreground {
  color: #000000;
  font-weight: 500;
}

/* Target Playground test button hover override */
html.dark button.text-primary-foreground:hover {
  background-color: #D68B1B;
}

footer p.text-muted-foreground {
  white-space: pre-line;
  font-size: 12px;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-legal__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-legal__logo {
  order: 0;
}

.footer-legal__text {
  order: -1;
}

@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
    text-align: left;
    width: 100%;
  }

  .footer-legal__text {
    flex: 1;
    order: 1;
  }

  .footer-legal__logo {
    order: 0;
  }
}

/* WebSocket Interactive Page Styles */

.ws-interactive-page {
  background: hsl(var(--background));
  min-height: 100vh;
}

.method-card {
  transition: box-shadow 0.2s ease;
}

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

.json-editor {
  font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  line-height: 1.5;
}

.json-editor:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.stream-viewer {
  background: hsl(var(--background));
}

.stream-message {
  transition: background-color 0.2s ease;
}

.stream-message:hover {
  background: hsl(var(--muted) / 0.5);
}

.auth-header-manager input:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Scrollbar styles for content areas */
.overflow-y-auto::-webkit-scrollbar {
  width: 10px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 5px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Animation for connection status indicator */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .ws-method-sidebar {
    width: 100%;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid hsl(var(--border));
  }

  .method-card {
    grid-template-columns: 1fr;
  }

  .method-card .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Stream message highlight fade animation */
@keyframes highlight-fade {
  0% {
    background-color: rgb(34 197 94 / 0.2);
    border-color: rgb(34 197 94);
  }
  100% {
    background-color: hsl(var(--background));
    border-color: hsl(var(--border));
  }
}
