/* Container */
.container-fluid {
  max-width: 900px;
  margin: auto;
  padding: 16px;
}

/* Labels e Inputs */
.form-label,
label {
  font-size: 18px;
  margin-bottom: 8px;
  display: block;
}

input[type="color"],
.form-control {
  width: 100%;
  height: 50px;
  padding: 6px 12px;
  font-size: 16px;
  border: 1px solid #7b7d7f;
  border-radius: 4px;
  background: #fff;
  color: #212529;
}

/* Dark mode */
[data-scheme="dark"] .form-control,
[data-scheme="dark"] input[type="color"] {
  background: #111;
  color: #f5f5f5;
  border-color: #888;
}

/* Campo principal */
#customNameForm {
  font-size: 18px;
}

/* Checkboxes */
.form-check {
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
}
.form-check-input { margin-right: 8px; }
.form-check-label { margin: 0; }

/* Botões gerais */
.btn {
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Cores e hover dos botões */
.btn-blue {
  background-color: #0087c6;
  color: #fff;
}
.btn-red {
  background-color: #c6002e;
  color: #fff;
}
.btn-green {
  background-color: #198754;
  color: #fff;
}
.btn-blue:hover,
#copyBtn:hover {
  background-color: #0076a8;
}
.btn-red:hover,
#cleanBtn:hover {
  background-color: #a50028;
}

/* Botões “Adicionar” */
.row.mb-5 {
  display: flex !important;
  gap: 14px !important;
}
.row.mb-5 > .col { padding: 0 !important; }
.row.mb-5 .btn {
  flex: 1;
  width: auto !important;
}
#firstAddBtn,
#lastAddBtn {
  text-transform: none;
  background-color: #0087c6 !important;
  color: #fff !important;
}

/* Toggle de símbolos */
#btnSimbol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
#btnSimbol img {
  transition: transform 0.3s;
}

/* Grid de símbolos */
#mainRow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.addSimbolo {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px;
  flex: 1 1 calc(50% - 16px);
}
.addSimbolo div:first-child {
  font-size: 24px;
  margin-right: 12px;
  color: #fff;
}
.symbol-btn {
  width: 36px;
  height: 36px;
  margin-left: 8px;
  border-radius: 4px;
}

.addSimbolo .symbol-btn:first-of-type {
  margin-left: auto;
}

/* Preview inline */
.firstArrayInput span,
.lastArrayInput span {
  display: inline-block;
  margin-right: 8px;
}

/* Caixa de preview */
.finishedInput {
  background: #111417;
  border: 1px solid #ababac;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.1;
  font-family: 'Industry', sans-serif;
  white-space: pre-wrap;
}

/* Copiar/Limpar row */
.content > .row:last-child {
  display: flex !important;
  gap: 14px !important;
}
.content > .row:last-child > .col {
  padding: 0 !important;
}
.content > .row:last-child .btn {
  flex: 1;
  width: auto !important;
}

/* Alerta */
.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.alert-danger.d-none {
  display: none !important;
}

/* Espaçamento geral */
.inputDiv,
.firstRow,
#btnSimbol,
#collapseExample,
.row.mb-5,
.finishedInput,
.content > .row:last-child {
  margin-bottom: 20px;
}

/* Espaço extra entre cor e estilos */
.firstRow > .col-12 {
  margin-bottom: 16px;
}

/* Responsividade */
@media (max-width: 600px) {
  /* Símbolos: cada um ocupa 100% da linha */
  .addSimbolo {
    flex: 1 1 100% !important;
  }

  /* 1) Copiar + Limpar: ocupam full width e empilham com gap */
  .content > .row:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 12px !important;
  }
  .content > .row:last-child .btn {
    width: 100% !important;
    flex: none !important;
  }
  
  .content > .row:last-child .btn + .btn {
  margin-top: 12px !important;
}

  /* 2) Alerta com texto centralizado */
  .alert-danger {
    text-align: center !important;
  }

/* 3) “Adicionar” full width e empilhado no mobile */
.row.mb-5 {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}
.row.mb-5 .btn {
  width: 100% !important;
  flex: none !important;
  white-space: nowrap !important;
  font-size: 14px !important;
}

  /* 4) Toggle “Abrir seleção” full width */
  #btnSimbol {
    width: 100% !important;
  }

  /* 5) Checkboxes maiores e em duas colunas */
  .form-check-input {
    width: 24px !important;
    height: 24px !important;
    margin-right: 8px !important;
  }
  .form-check-label {
    font-size: 16px !important;
  }
.firstRow {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.firstRow > .col-12 {
  flex: 1 1 100% !important;
}
.firstRow > .col:not(.col-12) {
  flex: 1 1 calc(50% - 8px) !important;
}
  .firstRow .form-check {
    flex: 1 1 calc(50% - 8px) !important;
  }
}