body {
  font-family: "Open Sans", sans-serif;
  font-weight: 1100;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  justify-content: center;
  background-color: #f0f0f0;
}

div {
  width: 350px;
  margin: 5% auto auto;
  background-color: #ffffff;
}

h1 {
  text-align: center;
  margin-bottom: 25px;
}

p {
  text-align: center;
}

a {
  text-decoration: none;
}

textarea {
  width: 97.25%;
  height: 300px;
  border: 2px solid #ccc;
  border-radius: 4px;
  resize: none;
  user-select: none;
}

input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0 20px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.container {
  position: relative;
  background-color: white;
  padding: 20px;
  min-height: 630px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 370px;
}

.container_login {
  position: relative;
  background-color: white;
  min-height: 430px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 370px;
  padding: 20px;
}

.threshold-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 5px 0 0;
  width: unset;
}

.threshold-row label {
  flex: 0 0 auto;
}

.threshold-slider {
  flex: 5;
}

.threshold-number {
  flex: 1;
}

#use-poca {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  accent-color: #04AA6D; /* modern browsers: tinted check mark */
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}

#use-poca:focus {
  outline: 3px solid rgba(0, 123, 255, 0.12);
  outline-offset: 2px;
}

#use-poca:checked {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(4, 170, 109, 0.12);
}

.poca-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.input-hint {
  font-size: 0.6rem;
  color: #5a5a5a;
  line-height: 1.3;
  font-style: italic;
}

.dropdown-content {
  line-height: 1.35;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  overflow-y: auto;
  max-height: 300px;
  border-radius: 8px;
}

.corner-link {
  position: absolute;
  top: 10px;
  right: 15px;
  text-decoration: none;
  font-size: 16px;
  color: rgb(100, 100, 100);
  font-weight: bold;
}

.corner-link:hover {
  color: rgb(0, 123, 255);
}

#history-dropdown {
  padding: 5pt;
}

#link {
  font-weight: 700;
  color: #0074D9;
}

#link:hover {
  color: #dc68dc;
  cursor: pointer;
  transition: color 0.3s;
}

.back-button-center {
  display: flex;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 10pt;
}

.button-center {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

button {
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 3px solid transparent;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.button-container button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#EnterButton {
  background-color: #04AA6D;
  width: 85%;
  align-items: center;
  margin: 0;
}

#EnterButton:active {
  background-color: #125300;
}

#BackButton {
  background-color: #04AA6D;
  width: 85%;
  align-items: center;
  margin: 0;
}

#BackButton:active {
  background-color: #125300;
}

#logoutButton {
  background-color: #ffb650;
  flex: 1;
  min-width: 30%;
  height: 10%;
}

#historyButton, #uploadButton, #databasesButton {
  background-color: rgb(102, 153, 219);
  flex: 1;
  min-width: 30%;
  height: 10%;
}

img.avatar {
  width: 40%;
  border-radius: 50%;
}

.notification {
  position: fixed;
  top: 24px;
  left: 50%;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(14, 23, 44, 0.25);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.notification.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.success {
  background: linear-gradient(135deg, #e8fbf0, #c8f6df);
  border: 1px solid #9cdcb9;
  color: #135839;
}

.error {
  background: linear-gradient(135deg, #fdeeee, #fad4d4);
  border: 1px solid #f2a7a7;
  color: #7b1c1c;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid #ccc;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.spinner-state .loading-spinner {
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.databases-container {
  min-height: 630px;
  width: 600px;
  gap: 16px;
}

.container.history-container {
  min-height: 630px;
  height: 630px;
  width: min(960px, 100vw - 40px);
  gap: 16px;
}

.history-scroll {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  width: 100%;
  margin: 0 0 15px 0;
  flex: 1;
  min-height: 0;
}

.databases-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.databases-table th,
.databases-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.databases-table th {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #0a1320;
}

.databases-table td {
  color: #111;
}

.history-table th:nth-child(4),
.history-table td:nth-child(4) {
  text-align: left;
}

.names-cell {
  max-width: 320px;
  vertical-align: middle;
  padding-top: 20px;
  padding-bottom: 20px;
}

.name-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  vertical-align: middle;
  align-items: center;
  width: auto;
  margin: 0;
  background: transparent;
}

.generated-cell {
  font-weight: 600;
}

.generated-time {
  font-weight: 500;
  color: #6b7280;
}

.name-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(15, 63, 145, 0.08);
  color: #0f3f91;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.name-pill.is-empty {
  background-color: rgba(17, 17, 17, 0.05);
  color: #555;
}

.empty-state {
  display: none;
  margin-top: 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
}

.download-result-button {
  position: relative;
  width: 140px;
  padding: 6px 14px;
  background-color: #0f3f91;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.download-result-button.is-loading {
  color: transparent;
}

.download-result-button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  animation: spin 0.75s linear infinite;
}

.download-result-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.download-result-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.poca-yes {
  color: #047857;
}

.poca-no {
  color: #b91c1c;
}

.poca-unknown {
  color: #6b7280;
}

.databases-table th:first-child,
.databases-table td:first-child {
  text-align: left;
}

.cell-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top: 2px solid rgb(102, 153, 219);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

.download-link {
  color: rgb(0, 123, 255);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.download-link:hover {
  text-decoration: underline;
}

.download-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.relative-time {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: rgba(0, 123, 255, 0.1);
  color: #0f3f91;
  font-weight: 600;
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.update-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  min-width: 120px;
  background-color: #04AA6D;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
}

.update-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.update-button.is-loading {
  cursor: progress;
}

/*# sourceMappingURL=style.css.map */
