/* Trader-specific styles, layered on top of /css/main.css */

.intro {
  color: #b0b3b8;
  margin-top: -0.4em;
}

.count {
  color: #b0b3b8;
  font-size: 0.7em;
  font-weight: 400;
}

.hint {
  color: #8a8d91;
  font-size: 0.85em;
}

.reset-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- buttons & inputs --- */

button {
  font-family: inherit;
  font-size: 0.9em;
  color: #e4e6eb;
  background: #3a3b3c;
  border: 1px solid #4a4b4c;
  border-radius: 5px;
  padding: 0.35em 0.8em;
  cursor: pointer;
}

button:hover {
  background: #4a4b4c;
}

button.ghost {
  background: transparent;
}

button.danger {
  border-color: #6b3030;
}

button.danger:hover {
  background: #6b3030;
}

input, select {
  font-family: inherit;
  font-size: 0.9em;
  color: #e4e6eb;
  background: #1b1c1d;
  border: 1px solid #4a4b4c;
  border-radius: 5px;
  padding: 0.35em 0.5em;
}

input:focus, select:focus {
  outline: none;
  border-color: #f36d33;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1.2em 0;
}

#custom-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1.2em;
}

#custom-form label {
  color: #b0b3b8;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

#custom-max {
  width: 4em;
}

/* --- layout --- */

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2em;
  align-items: start;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* --- villager cards --- */

.villager-card {
  background: #2f3031;
  border: 1px solid #3a3b3c;
  border-radius: 8px;
  padding: 0.9em 1em;
  margin-bottom: 1em;
}

.villager-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  margin-bottom: 0.7em;
}

.name-input {
  font-weight: 600;
  width: 9em;
}

.note-input {
  flex: 1;
  min-width: 8em;
}

.villager-head .danger {
  margin-left: auto;
}

.book-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: #1b1c1d;
  border: 1px solid #3a3b3c;
  border-radius: 12px;
  padding: 0.15em 0.4em 0.15em 0.7em;
  margin: 0 0.4em 0.4em 0;
  font-size: 0.85em;
}

.book-list li.hint {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
}

.chip-x {
  background: none;
  border: none;
  color: #8a8d91;
  padding: 0 0.2em;
  font-size: 0.8em;
  line-height: 1;
}

.chip-x:hover {
  background: none;
  color: #ff7b7b;
}

.add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.5em;
}

.add-row input {
  flex: 1;
  min-width: 9em;
}

/* --- coverage panel --- */

.bar {
  height: 8px;
  background: #1b1c1d;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5em 0 1em;
}

#coverage-fill {
  height: 100%;
  width: 0;
  background: #4caf50;
  transition: width 0.2s ease;
}

.grid li {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.85em;
}

.grid li.done .cov-status { color: #4caf50; }
.grid li.partial .cov-status { color: #e0b341; }
.grid li.none { color: #8a8d91; }
.grid li.none .cov-status { color: #8a8d91; }

.cov-status {
  white-space: nowrap;
}

#redundant-list li {
  padding: 0.2em 0;
  font-size: 0.9em;
}
