/* Page container */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Heading */
main h2 {
  text-align: center;
  color: #4c6ef5;
  margin-bottom: 25px;
}

/* Form */
#refForm {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
#refForm input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
#refForm button {
  background: #4c6ef5;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
#refForm button:hover {
  background: #3b5bd6;
}

/* Upload */
#uploadInput {
  margin: 10px 0 20px;
  display: block;
}

/* References list */
#refList {
  margin: 20px 0;
}
#refList ol {
  padding-left: 20px;
}
#refList li {
  margin-bottom: 8px;
  line-height: 1.5;
}
#refList li button {
  margin-left: 10px;
  background: #cc3232;
  border: none;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
#refList li button:hover {
  background: #a62828;
}

/* Action buttons */
#clearAll, #downloadTxt, #downloadJson {
  background: #e7b416;
  border: none;
  color: black;
  padding: 8px 14px;
  margin-right: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
#clearAll:hover, #downloadTxt:hover, #downloadJson:hover {
  background: #d6a30f;
}

/* Empty state */
#refList p {
  text-align: center;
  color: #666;
  font-style: italic;
}
