:root {
  --bg-color: #f9fafb;
  --text-color: #111827;
  --link-color: #2563eb;
  --link-hover: #1d4ed8;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #111827;
    --text-color: #f9fafb;
    --link-color: #60a5fa;
    --link-hover: #93c5fd;
    --card-bg: #1f2937;
    --border-color: #374151;
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.5;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: var(--card-bg);
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 600px) {
  div {
    flex-direction: column;
    align-items: flex-start;
  }
}

div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  word-break: break-all;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Style the status span containers */
span[data-htmx-powered="true"] {
  display: inline-flex;
  align-items: center;
}

/* Style the text inside the status elements */
span[data-htmx-powered="true"] span {
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  background-color: rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  span[data-htmx-powered="true"] span {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Enhancing the inline colors for better contrast in both modes */
span[data-htmx-powered="true"] span[style*="darkred"] {
  color: #dc2626 !important;
}

span[data-htmx-powered="true"] span[style*="darkgreen"] {
  color: #16a34a !important;
}

@media (prefers-color-scheme: dark) {
  span[data-htmx-powered="true"] span[style*="darkred"] {
    color: #f87171 !important;
    background-color: rgba(248, 113, 113, 0.1);
  }
  
  span[data-htmx-powered="true"] span[style*="darkgreen"] {
    color: #4ade80 !important;
    background-color: rgba(74, 222, 128, 0.1);
  }
}