* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  body {
    padding: 0 2em;
  }

  input,
  textarea {
    font-size: 16px;
  }
}

.htmx-indicator {
  width: 25px;
  height: 25px;
  float: right;
  margin-top: 4px;
  /* Hide by default */
  opacity: 0;
  transition: opacity 200ms ease-in;
}

/* Class added by htmx to the triggering element during request */
.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}


h1,
h2 {
  color: #333;
}

form {
  margin: 20px 0;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  /* Added */
}

input[type="text"],
input[type="password"],
select {
  /* Added select */
  padding: 8px;
  /* Increased padding */
  margin: 5px 0 15px 0;
  /* Adjusted margin */
  width: 100%;
  /* Make inputs wider */
  border: 1px solid #ccc;
  border-radius: 4px;
}

select {
  height: 2em;
  font-size: 16px;
}

button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0056b3;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  /* Styles moved to inline in results.templ for direct manipulation */
}

.titlecard {
  /* Styles moved to inline in results.templ */
}

/* Style for the logout link */
.logout {
  /* Position adjusted in index.templ for better layout */
  color: #007bff;
  text-decoration: none;
}

.logout:hover {
  text-decoration: underline;
}
