/* Mookinator Styles - Corrigido para alinhamento dos campos min/max e totalmente encapsulado */

.mookinator .container-mook {
  margin: 0 auto;
  font-size: 14px;
}

.mookinator .form-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  /* margin-bottom: 10px; */
  color: #f4f4f4;
  background-color: #333;
  height: 60px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.mookinator .mook-form-container {
  padding: 3px;
}

.mookinator .selected-class-title {
  text-align: center;
  color: #28a745;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: bold;
  min-height: 16px;
}

/* Compact Form Layout */
.mookinator .mook-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 10px;
}

.mookinator .column {
  padding: 3px;
  border-radius: 4px;
  border: 1px solid #b5b5b5;
}

/* CORREÇÃO PRINCIPAL: Alinhamento dos cabeçalhos com os campos */
.mookinator .column-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid #1d1d1d3a;
  gap: 1px;
}

.mookinator .column-header {
  font-size: 10px;
  color: #666;
  margin-left: 25px;
}

/* CORREÇÃO: Cabeçalho vazio alinhado com o label */
.mookinator .column-header:first-child {
  min-width: 30px;
  margin: 0 1px 0 6px; /* Mesmo espaçamento do input-label */
}

/* CORREÇÃO: Cabeçalhos min/max alinhados com os campos */
.mookinator .column-header:nth-child(2),
.mookinator .column-header:nth-child(4) { /* min e max */
  width: 32px; /* Mesma largura dos input-field */
  text-align: center;
}

/* CORREÇÃO: Espaço para o separador */
.mookinator .column-header.separator-space {
  font-size: 14px;
  color: transparent;
  min-width: auto;
}

.mookinator .input-row {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 4px;
}

.mookinator .separator {
  font-size: 14px;
  color: #5f5f5f !important;
}

.mookinator .input-label {
  min-width: 50px;
  font-size: 10px;
  color: #495057;
  text-transform: uppercase;
  margin: 0 1px 0 6px;
}

.mookinator .input-field {
  height: 28px;
  padding: 1px 3px;
  border: 1px solid #20202034;
  border-radius: 3px;
  text-align: center;
  font-size: 12px;
  max-width: 43px;
}

.mookinator .input-field:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
}

/* Vertical Section - Skills/Spells Config */
.mookinator .two-column-sections-container {
  grid-column: 1 / 3; /* Mude de "1 / -1" para "1 / 3" */
  border: 1px solid #bbbbbb;
  border-radius: 4px;
  margin-bottom: 4px;
  padding: 3px;
}

.mookinator .elemento-terceira-coluna {
  grid-column: 3; 
  border: 1px solid #bbbbbb;
  border-radius: 4px;
  margin-bottom: 4px;
  padding: 3px;
}

/* Header para as seções de skills/spells */
.mookinator .sections-header {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 4px;
  align-items: center;
  padding: 3px 6px;
  margin-bottom: 3px;
  border-bottom: 1px solid #ddd;
}

.mookinator .section-column-header {
  font-size: 14px;
  color: #666;
  text-align: center;
  width: 32px; /* Largura fixa para alinhar com os campos */
}

.mookinator .section-column-header:first-child {
  text-align: left;
}

/* Container das seções */
.mookinator .sections-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mookinator .section-column {
  padding: 0;
}

.mookinator .vertical-section {
  grid-column: 1 / -1;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #bbbbbb;
}

.mookinator .section-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  margin-bottom: 4px;
}

.mookinator .section-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mookinator .section-label {
  color: #495057;
  font-size: 10px;
  min-width: 40px;
  text-transform: uppercase;
  margin: 0 1px 0 6px;
}

.mookinator .section-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mookinator .section-input-label {
  font-size: 10px;
  /* min-width: 40px;  */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.mookinator .input-field-coins {
  width: 45px;
  height: 30px;
  padding: 1px 3px;
  border: 1px solid #4646463a;
  border-radius: 3px;
  text-align: center;
  font-size: 12px;
}

.mookinator .section-title {
  display: flex; 
  padding: 6px;
  width: 100%;
  background-color: #33333334;
  justify-content: center; 
  font-size: 11px; 
  /* color: #dadada;  */
  margin: 4px 0 4px 0;
  grid-column: 1 / -1; 
  border-radius: 6px;
}

.mookinator .input-field-coins:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
}

/* Action Buttons - Side by side layout */
.mookinator .action-buttons-group-bottom {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  grid-column: span 3;
}

.mookinator .generate-btn,
.mookinator .load-btn {
  flex: 1;
  height: 40px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(44, 62, 80, 0.3);
}

.mookinator .generate-btn:hover,
.mookinator .load-btn:hover {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(44, 62, 80, 0.4);
}

.mookinator .generate-btn:active,
.mookinator .load-btn:active {
  transform: translateY(0);
}

.mookinator .generate-btn:disabled,
.mookinator .load-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Name Generator Styles */
.mookinator .name-input-group {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  grid-column: span 3;
}

.mookinator .name-input-label {
  min-width: 50px;
  font-size: 10px;
  color: #495057;
  text-transform: uppercase;
  margin: 0 1px 0 6px;
}

.mookinator #npc-input-name {
  flex-grow: 1;
  padding: 3px 5px;
  border: 1px solid #20202034;
  border-radius: 3px;
  font-size: 12px;
  height: 28px;
}

.mookinator #npc-input-name:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
}

.mookinator .name-generator-btn {
  background: #333;
  border: 1px solid #555;
  color: white;
  padding: 6px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mookinator .name-generator-btn:hover {
  background-color: #555;
}

.mookinator .name-generator-btn i {
  font-size: 12px;
}

.mookinator .dice-btn,
.mookinator .settings-btn {
  width: 60px;
}

/* Name Generator Dialog Styles */
.mookinator.name-generator-dialog {
  min-width: 450px;
  min-height: 500px;
}

.mookinator .name-generator-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
}

.mookinator .name-generator-form-section {
  margin-bottom: 15px;
}

.mookinator .name-generator-form-group {
  margin-bottom: 15px;
}

.mookinator .name-generator-form-group .title-label {
  display: flex;
  align-items: center;
  margin: 8px 0 8px 0;
  color: #333;
  font-size: 13px;
}

/* CSS corrigido para layout de duas colunas */
.mookinator .name-generator-form-group.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.mookinator .name-generator-column {
  /* Cada coluna individual */
}

.mookinator .name-generator-form-group.title-label {
  display: flex;
  align-items: center;
  margin: 0 0 8px 0;
  color: #333;
  font-size: 13px;
}

.mookinator .name-generator-gender-options,
.mookinator .name-generator-name-part-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mookinator .name-generator-nation-select {
  width: 100%;
  height: 40px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}

.mookinator .name-generator-gender-options,
.mookinator .name-generator-name-part-options {
  display: grid;
  grid-template-columns: 1fr;
}

.mookinator .name-generator-radio-group {
  display: flex;
  align-items: center;
}

.mookinator .name-generator-radio-group input[type="radio"] {
  display: none;
}

.mookinator .name-generator-radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}

.mookinator .name-generator-radio-button {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  /* background-color: white; */
  transition: all 0.2s ease;
}

.mookinator .name-generator-radio-group input[type="radio"]:checked + .name-generator-radio-label .name-generator-radio-button {
  border-color: #414141;
  background-color: #333;
}

.mookinator .name-generator-radio-group input[type="radio"]:checked + .name-generator-radio-label .name-generator-radio-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
}

.mookinator .name-generator-radio-label:hover .name-generator-radio-button {
  border-color: #007bff;
}

.mookinator .name-generator-radio-text {
  font-size: 13px;
  color: #495057;
}

.mookinator .name-generator-names-container {
  flex-grow: 1;
  border: 1px solid #ccc;
  background: #f8f9fa;
  padding: 10px;
  overflow-y: auto;
  margin-bottom: 15px;
  border-radius: 3px;
  min-height: 200px;
}

.mookinator .name-generator-names-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mookinator .name-generator-name-item {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.mookinator .name-generator-name-item:hover {
  background-color: #e9ecef;
  border-color: #007bff;
}

.mookinator .name-generator-no-names {
  color: #6c757d;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

.mookinator .name-generator-name-item.male i {
  color: #007bff;
}

.mookinator .name-generator-name-item.female i {
  color: #e83e8c;
}