/* === General Layout === */
#alien-mission-sim {
  font-family: "Orbitron", "Trebuchet MS", sans-serif;
  background: #0a0f1e;
  color: #e0e6ff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
  max-width: 600px;
  margin: 20px auto;
}

/* Title */
#alien-mission-sim h1 {
  text-align: center;
  color: #00e6ff;
  text-shadow: 0 0 10px #00e6ff;
  margin-bottom: 20px;
}

/* === Form Elements === */
#alien-mission-sim label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #9ecfff;
}

#alien-mission-sim select,
#alien-mission-sim input {
  width: 100%;
  padding: 8px;
  background: #12192c;
  border: 1px solid #00e6ff;
  border-radius: 6px;
  color: #e0e6ff;
  outline: none;
  font-size: 14px;
}

#alien-mission-sim select:focus,
#alien-mission-sim input:focus {
  border-color: #00ffaa;
  box-shadow: 0 0 8px #00ffaa;
}

/* === Buttons === */
#alien-mission-sim button {
  display: inline-block;
  margin: 15px 10px 0 0;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00e6ff, #0066ff);
  border: none;
  border-radius: 8px;
  color: #0a0f1e;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-shadow: none;
}

#alien-mission-sim button:hover {
  background: linear-gradient(135deg, #00ffaa, #00e6ff);
  box-shadow: 0 0 12px #00ffaa;
}

.hidden {
  display: none;
}

/* === Result Display === */
#result {
  margin-top: 20px;
  padding: 15px;
  background: #12192c;
  border: 1px solid #00e6ff;
  border-radius: 8px;
  min-height: 40px;
  text-align: center;
  font-size: 15px;
  box-shadow: inset 0 0 10px rgba(0, 200, 255, 0.2);
}

/* === Mission Log === */
#log {
  margin-top: 30px;
  background: #12192c;
  border: 1px solid #0066ff;
  border-radius: 8px;
  padding: 15px;
}

#log h2 {
  color: #00ffaa;
  text-shadow: 0 0 8px #00ffaa;
  margin-bottom: 10px;
}

#log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  font-size: 14px;
}

#log-list li {
  padding: 6px 10px;
  margin-bottom: 4px;
  background: rgba(0, 230, 255, 0.1);
  border-left: 3px solid #00e6ff;
  border-radius: 4px;
}

/* Success vs Failure styling */
#log-list li:contains("✅") {
  border-left-color: #00ffaa;
  color: #aefcb1;
}

#log-list li:contains("❌") {
  border-left-color: #ff4d6d;
  color: #ff8a9e;
}
#log {
  max-height: 250px;   /* keeps the log window from stretching forever */
  overflow-y: auto;    /* enables scrolling if needed */
  scroll-behavior: smooth; /* smooth auto-scroll */
}
.mission-report {
  background: #111827;      /* dark sci-fi box */
  color: #e5e7eb;           /* light text */
  border: 2px solid #4f46e5; /* purple border */
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.6);
}

.mission-report pre {
  white-space: pre-wrap; /* keeps line breaks, but wraps long lines */
  margin-top: 0.5rem;
}
#specimen-level-container .note {
  font-size: 0.85rem;
  color: #9ca3af; /* gray */
  margin-top: 0.25rem;
}

#log-controls {
  margin-top: 0.5em;
  text-align: right;
}

#log-controls button {
  padding: 0.4em 0.8em;
  margin-left: 0.3em;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
}

#export-log-btn {
  background: #4caf50;
  color: white;
}

#export-log-btn:hover {
  background: #45a049;
}

#clear-log-btn {
  background: #f44336;
  color: white;
}

#clear-log-btn:hover {
  background: #d32f2f;
}