/* Algemene sheet container */
.dnd-sheet {
  border: 2px solid #333;
  padding: 20px;
  max-width: 800px; /* 👉 meer breedte */
  background: rgba(255, 255, 255, 0.9); /* licht transparant wit */
  border-radius: 10px;
  margin: 20px auto; /* centreer op de pagina */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Titel */
.dnd-sheet h2 {
  margin-top: 0;
  font-size: 1.8em;
  text-align: center;
}

/* Stats */
.dnd-sheet .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolommen */
  gap: 12px;
  margin-bottom: 20px;
}

.dnd-sheet .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 6px;
}

.dnd-sheet .stat label {
  font-weight: bold;
}

.dnd-sheet .modifier {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

/* Combat panel */
.dnd-sheet .combat {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #aaa;
  background: #f9f9f9;
  border-radius: 6px;
}

.dnd-sheet .combat h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: #111;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.dnd-sheet .combat-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.dnd-sheet .combat-field label {
  width: 100px;
  font-weight: bold;
}

/* Inputs */
.dnd-sheet input[type="number"],
.dnd-sheet input[type="text"] {
  width: 70px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}

.hitdice-tracker {
  margin-top: 6px;
}

.hitdie-box {
  font-size: 18px;
  color: green;
  margin-right: 4px;
}

.dnd-sheet .skills {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #aaa;
  background: #f9f9f9;
  border-radius: 6px;
}

.dnd-sheet .skill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.dnd-sheet .skill label {
  flex: 1;
}

.dnd-sheet .saving-throws {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid #aaa;
  background: #f1f1f1;
  border-radius: 6px;
}

.dnd-sheet .save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.dnd-sheet .stats-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.dnd-sheet .card {
  background: #f9f9f9;
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 12px;
}

.dnd-sheet .card h3 {
  margin-top: 0;
  font-size: 1.3em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.dnd-sheet .save,
.dnd-sheet .skill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.dnd-sheet .items {
  margin-top: 20px;
}
.dnd-sheet .item-search {
  margin-top: 10px;
  width: 100%;
  padding: 6px;
}
.dnd-sheet .item-row {
  margin-bottom: 10px;
  padding: 6px;
  border-bottom: 1px solid #ddd;
}

.dnd-sheet .items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.dnd-sheet .item-input {
  flex: 1;
  padding: 4px;
}

.popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 250px;
  z-index: 999;
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.popup li {
  padding: 5px;
  cursor: pointer;
}
.popup li:hover {
  background: #f0f0f0;
}

