@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #121417;
  color: #cfd4da;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px 20px;
}

header .header-content {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-weight: 700;
  font-size: 2.6rem;
  color: #6bc1ff;
  margin-bottom: 6px;
}

header p {
  font-size: 1.1rem;
  color: #8592a3;
  letter-spacing: 0.02em;
}

.thresholds {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.threshold-input {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.threshold-input label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.threshold-input input {
  border-radius: 8px;
  border: none;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #121417;
  background-color: #c5d6eb;
  transition: box-shadow 0.3s ease;
}

.threshold-input input:focus {
  outline: none;
  box-shadow: 0 0 8px #6bc1ffaa;
}

#evaluateBtn {
  cursor: pointer;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #121417;
  background: #6bc1ff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px #6bc1ffaa;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#evaluateBtn:hover {
  background: #4a9fe0;
  box-shadow: 0 7px 22px #4a9fe0cc;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.kpi-card {
  background-color: #021793;
  border-radius: 18px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgb(9 30 66 / 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  transition: background-color 0.3s ease;
}

.kpi-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 18px;
}

.kpi-value {
  font-size: 3.4rem;
  font-weight: 700;
  color: #9ddcfe;
}

.kpi-card.passed {
  background-color: #27a94c;
}

.kpi-card.failed {
  background-color: #d43939;
}

.rules-section {
  background-color: #1e2532;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 5px 16px #192230cc;
  margin-bottom: 30px;
}

.rules-section h2 {
  margin-top: 0px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #7cd1ff;
}

.rules-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge {
  padding: 10px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  user-select: none;
  color: #12181c;
  background-color: #7cd1ff7a;
  box-shadow: 0 2px 12px #7cd1ff70;
  transition: background-color 0.3s ease;
}

.badge.red {
  background-color: #efcaca;
  color: #e51313;
  box-shadow: 0 2px 12px #cf6b6bcc;
}

.badge.green {
  background-color: #26e155;
  color: #243d1f;
  box-shadow: 0 2px 12px #6bbf8055;
}

footer {
  text-align: center;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  user-select: none;
}

@media (max-width: 480px) {
  .thresholds {
    flex-direction: column;
    align-items: stretch;
  }
  #evaluateBtn {
    width: 100%;
  }
}

#downloadSubmissionBtn {
  margin-top: 20px;
  cursor: pointer;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #121417;
  background: #6bc1ff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px #6bc1ffaa;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  align-items: center;
}

#downloadSubmissionBtn:hover {
  background-color: #1e48d1;
  box-shadow: 0 6px 20px rgba(30, 72, 209, 0.7);
}

#downloadSubmissionBtn:active {
  transform: translateY(1px);
}

.button-container {
  text-align: center;
}

.button-container .open-link {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 10px;
}
.button-container .open-link:hover {
  color: darkblue;
}
