/* Reset/utility adjustments */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  font-family: sans-serif;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.navbar-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  display: none; /* hidden on desktop */
  cursor: pointer;
}

.navbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar-item {
  position: relative;
}

.navbar-item > a {
  display: block;
  padding: 1rem 1.2rem;
  color: #333;
  text-decoration: none;
}

.navbar-item > a:hover {
  background-color: #f5f5f5;
}

.dropdown-toggle::after {
  content: "";
  /* you can also use a small arrow icon, or ▾ */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 150px;
}

.dropdown-menu li a {
  padding: 0.8rem 1rem;
  color: #333;
}

.dropdown-menu li a:hover {
  background-color: #eee;
}

/* Show dropdown on hover (desktop) */
.navbar-item.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  .navbar-menu {
    flex-direction: column;
    width: 100%;
    display: none; /* hidden initially */
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-item {
    width: 100%;
  }
  .navbar-item > a {
    padding: 1rem;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
  }
}


body {
    background-color: #FFFFFF;
    color: #30261E;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding-top: 40px;
}

.container {
    text-align: center;
    width: 90%;
}

::placeholder {
  color: #30261E;
  opacity: 1; /* Firefox */
}

h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

input[type="text"] {
    background-color: #F5EFEB;
    color: #30261E;
    border: none;
    padding: 15px;
    width: 500px;
    font-size: 18px;
    margin-bottom: 10px;
    border-radius: 5px;
}

button {
    background-color: #F5EFEB;
    border: none;
    padding: 12px 25px;
    color: #30261E;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}

#loader {
    display: none;
    margin-top: 10px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4c5c68;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    display: flex;
    margin-top: 20px;
    width: 100%;
    gap: 20px;
}

.column {
    flex: 0 0 50%;
    margin: 0 10px;
    background-color: #F5EFEB;
    color: #30261E;
    border-radius: 8px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.pagination button {
    margin: 0 5px;
    padding: 6px 12px;
}

.pagination button:disabled {
    background-color: #F5EFEB; /* dark gray */
    color: #30261E;            /* light gray text */
    cursor: not-allowed;
    opacity: 0.7;
}

select {
    background-color: #F5EFEB;
    color: #30261E;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    cursor: not-allowed; /* shows user it’s locked */
}

label {
    margin-right: 10px;
    font-size: 16px;
}

.badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center; /* center badges horizontally */
}

.badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.api-badge {
    background-color: #4c5c68; /* accent color for API */
}

.db-badge {
    background-color: #6a4c8b; /* accent color for DB */
}

.info-badge {
    background-color: #008540; /* accent color for DB */
}