:root {
  --bg-color: #0e0e10;
  --text-color: #f8f8f2;
  --accent-color: #50fa7b;
  --error-color: #ff5555;
  --input-bg: #1e1e20;
  --button-bg: #282a36;
  --button-hover: #44475a;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* Changed to column to allow header at top */
  min-height: 100vh; /* Use min-height for full viewport height */
}

.main-header {
  background-color: #1a1a1d; /* Slightly darker than body for contrast */
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box; /* Include padding in width */
}

.main-header .logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--accent-color);
}

.header-favicon {
  height: 1.2em; /* Adjust as needed */
  vertical-align: middle;
  margin-right: 8px;
}

.main-header nav a {
  margin-left: 20px;
  font-size: 1.1em;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.main-header nav a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.container {
  flex-grow: 1; /* Allow container to take remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #141417;
  padding: 30px 50px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(80, 250, 123, 0.2);
  margin: 20px auto; /* Center container with some margin */
  max-width: 800px; /* Limit container width */
}

h1 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1em;
}

button {
  background-color: var(--button-bg);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

#result {
  margin-top: 15px;
  font-size: 0.9em;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Swagger UI custom CSS */
.swagger-ui .topbar {
    background-color: #2c3e50;
}

.swagger-ui .topbar .link {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    padding: 10px 15px;
  }

  .main-header nav {
    margin-top: 10px;
  }

  .main-header nav a {
    margin: 0 10px; /* Adjust spacing for smaller screens */
    font-size: 1em;
  }

  .container {
    padding: 20px 20px; /* Reduce padding on smaller screens */
    margin: 10px auto; /* Adjust margin */
  }

  h1 {
    font-size: 1.8em; /* Slightly smaller heading */
  }

  input[type="text"], button {
    padding: 12px; /* Slightly larger touch targets */
    font-size: 1.1em;
  }
}
