#certification-downloader {
  font-family: sans-serif;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  max-width: 500px; /* Adjust as needed */
  margin: 20px auto; /* Centers the component */
}

#certification-downloader h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group select,
.form-group input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box; /* Prevents padding from increasing width */
}

.form-group input[type="text"]:disabled {
  background-color: #eee;
  cursor: not-allowed;
}

#results-list {
  margin-top: 20px;
  max-height: 300px; /* Limit height and add scroll if needed */
  overflow-y: auto;
  border: 1px dashed #eee;
  padding: 10px;
  min-height: 50px; /* Ensure it's visible even when empty */
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5px;
  border-bottom: 1px solid #eee;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item span {
  flex-grow: 1;
  margin-right: 10px;
}

.download-button {
  padding: 5px 10px;
  background-color: #007bff; /* Blue */
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
}

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

.no-results {
    text-align: center;
    color: #777;
    padding: 15px;
}