body {
  font-family: sans-serif;
  background-color: #f0f0f0;
  padding: 20px;
}

#setup-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.attr-input-group {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#deck-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Design da Carta */
.card {
  width: 250px;
  background: white;
  border-radius: 15px;
  border: 4px solid; /* Cor dinâmica via JS */
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 8px;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background-color: #eee;
}

.card-body {
  margin-top: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.stat-label {
  font-weight: bold;
  color: #555;
}

/**************Novo*************/

.attr-input-group {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.attr-input-group button {
  padding: 2px 8px;
  cursor: pointer;
}

/* O restante do design das cartas permanece o mesmo do primeiro código */
.card {
  width: 250px;
  background: white;
  border-radius: 15px;
  border: 4px solid;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.card-image {
  width: 100%;
  border-radius: 10px;
  margin: 8px 0;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 4px 0;
}
.stat-label {
  font-weight: bold;
}

/* Container de configuração de impressão */
.print-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #e9ecef;
  padding: 15px;
  border-radius: 8px;
}

.print-button {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* Layout das cartas com checkbox */
.card-wrapper {
  position: relative;
  display: inline-block;
}

.card-select-overlay {
  position: absolute;
  top: 10px;
  left: -10px;
  z-index: 10;
}

.card-select-overlay input[type="checkbox"] {
  transform: scale(1.8);
  cursor: pointer;
}

/* Garante que o grid de impressão use o tamanho correto */
@media print {
  .print-grid {
    width: 210mm; /* A4 */
  }
}
