/* inventory.css */

/* Модальное окно инвентаря использует стили из main.css */
#inventoryModal .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background-color: transparent !important;  /* Тёмный фон для инвентаря */
  color: #fff;             /* Белый текст */
  padding: 30px;
  border-radius: 10px;
}

/* Центрирование заголовка модалки */
.modal-header {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

/* Секция оборудования */
.equipment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 25px;
  padding-bottom: 10px;
}

/* Каждая ячейка оборудования: используем flex-верстку для вертикального выравнивания */
.equipment-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Лейбл для ячейки (над ячейкой) */
.slot-label {
  font-size: 12px;
  margin-bottom: 5px;
  text-align: center;
}

/* Слот оборудования: фиксированный размер 50x50 px */
.slot {
  width: 50px;
  height: 50px;
  border: 2px dashed #777;
  border-radius: 5px;
  background-color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Заголовок секции Рюкзак */
.section-header {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
}

/* Рюкзак: компактная сетка квадратных ячеек – также 50x50 px */
.inventory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin-top: 10px;
  
  padding-top: 10px;
}

.inventory-item {
  width: 50px;
  height: 50px;
  border: 1px solid #777;
  border-radius: 5px;
  background-color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.inventory-item img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.item-quantity {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7em;
  padding: 1px 7px 1px 6px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.5px;
}
