/* Form & Filter */
.jp-form {
  margin-bottom: 1em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  color: #444;
}

#jp-group-select {
  padding: 5px 10px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 140px;
  transition: border-color 0.2s ease;
}

#jp-group-select:focus {
  outline: none;
  border-color: #4caf50;
}

/* Table */
.jp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.85rem;
  color: #333;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.jp-table thead {
  background: linear-gradient(90deg, #4caf50, #43a047);
  color: #222; /* dark gray, instead of white */
  font-weight: 600;
  font-size: 0.9rem;
}

.jp-table th,
.jp-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.jp-table tbody tr:hover {
  background-color: #e8f5e9;
  cursor: default;
}

.jp-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Make first and third column subtle background */
.jp-table tbody tr td:nth-child(1),
.jp-table tbody tr td:nth-child(3) {
  background-color: #f3f9f3;
}

/* Score links */
.jp-score {
  color: #2e7d32;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.jp-score:hover {
  color: #145214;
  text-decoration: underline;
}


/* Modal Styles */
.jp-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.jp-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.jp-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 24px 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

/* Title */
.jp-modal-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #2e7d32;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

/* Close Button (supports both .jp-close and .jp-modal-close) */
.jp-modal-close,
.jp-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.jp-modal-close:hover,
.jp-close:hover {
  color: #000;
}

/* Topic Lists (both fallback and ID-based) */
.jp-topic-list,
#jp-modal-passed,
#jp-modal-failed {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.jp-topic-list li,
#jp-modal-passed li,
#jp-modal-failed li {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #444;
}

/* Passed & Failed Styles */
.jp-topic-list li.pass,
#jp-modal-passed li {
  color: #2e7d32;
  font-weight: 600;
}

.jp-topic-list li.fail,
#jp-modal-failed li {
  color: #c62828;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
