.content-title .title {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.areaopac.color3 {

    border-radius: 8px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.buttons > button {
    padding: 10px 20px;
    background: linear-gradient(145deg, #3a3a55, #2e2e44);
    border: 1px solid #555;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buttons > button:hover {
    background: linear-gradient(145deg, #4c4c66, #3a3a55);
    transform: translateY(-1px);
}

#results table {
    margin: 40px auto 0 auto;
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

#results thead {
    background-color: #383851;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

#results thead th {
    padding: 14px;
}

#results tbody tr {
    border-bottom: 1px solid #333;
}


#results tbody td, #results tbody th {
    padding: 12px 16px;
    vertical-align: top;
}

#results tbody th img {
   
    border-radius: 6px;
}

#results tbody th div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#results tbody th div p {
    margin-top: 8px;
    font-size: 13px;
    color: #ccc;
}/* Estilo para alinhar colunas fixas */
#results table td,
#results table th {
  vertical-align: top;
  text-align: left;
}

/* Define largura mínima para colunas fixas */
#results table td:nth-child(5),
#results table th:nth-child(5) {
  min-width: 200px; /* ajuste como desejar */
}

/* Garante consistência no tamanho da célula de imagem */
#results table th:first-child {
  width: 160px;
  white-space: nowrap;
}

/* Alinha os parágrafos dentro da div de imagem */
#results table th:first-child div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
}#results table {
  border-collapse: collapse;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
}

/* Cabeçalho (thead) sem fundo */
#results thead {
  background: none;
}

/* Células do cabeçalho com fundo cinza */
#results thead th {
  background-color: #303047;  /* cinza escuro */
  padding: 12px;
  color: #00ccff;             /* cor do texto azul como na imagem */
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

/* Borda arredondada nos cantos da tabela */
#results table thead th:first-child {
  border-top-left-radius: 8px;
}

#results table thead th:last-child {
  border-top-right-radius: 8px;
}




/* Estilo do cabeçalho da tabela */
thead th {
  background-color: #303047;
  padding: 12px;
  color: #00ccff;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

/* Linhas do corpo */
tbody td {
  padding: 16px;
  vertical-align: top;
}

/* Célula de imagem e nome da zona */
td.zone-cell {
  text-align: center;
  vertical-align: top;
}

/* Imagem do mapa */
.zone-map {
  display: block;
  margin: 0 auto 8px auto;
  border: solid 3px #212529;
  width: 200px;
}

/* Nome da zona */
.zone-name {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  color: white;
}

/* Lista de itens */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  margin: 0;           /* não centralizar por causa de <center> */
  text-align: left;    /* força alinhamento do conteúdo */
}

/* Item individual com ícone */
.item {
  /* Usar grid para garantir: ícone + texto sempre lado a lado */
  display: grid !important;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: center;
  justify-content: start;
  width: 100%;
  text-align: left;
}

/* Ícone do item */
.item-icon {
  border: 0;
  width: 28px;
  height: 28px;
  object-fit: cover;
  flex: 0 0 auto;
}

/* Lucky Drop (Monster) table alignment (sem :has para compatibilidade) */
td > .item-list{
  text-align: left;
  vertical-align: top;
}

.item-list .item img{
  margin-top: 0;
  justify-self: start;
}

.item-list .item span{
  /* páginas antigas colocam style="color:white" inline */
  color: #111827 !important;
  display: block;
  line-height: 1.35;
  justify-self: start;
  text-align: left !important;
}

/* Forçar alinhamento do Lucky Drop mesmo com <center> envolvendo a página */
td.zone-cell + td{
  text-align: left !important;
  vertical-align: top;
}

td.zone-cell + td .item-list{
  width: 100% !important;
}

/* =======================================================================
   Production page overrides (align like Quest + black table header)
   - Production uses: .buttons + #results (tables generated by JS)
   ======================================================================= */

/* 4) Remover botões redundantes (já existe no menu dropdown) */
.buttons{
  display: none !important;
}

/* 3) Tema escuro na área de Production */
.areaopac.color3{
  /* sem "card" atrás: deixa o fundo igual ao da página */
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* 1) Alinhamento consistente / mesmo tamanho */
#results table{
  width: min(980px, 100%) !important;
  margin: 22px auto !important;
  border-collapse: collapse !important;
  table-layout: fixed;
  background: #ffffff;
  color: #000;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  overflow: hidden;
}

/* 2) Header preto (igual Quest) */
#results thead th{
  background: #111827 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(0,0,0,.10) !important;
}

/* coluna da imagem (tbody usa <th>) também branca */
#results tbody th{
  background: #ffffff !important;
  color: #111827 !important;
}

#results tbody th,
#results tbody td{
  padding: 12px 14px !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

/* Coluna 1 (imagem) com largura fixa, para todas as tabelas ficarem alinhadas */
#results thead th:first-child,
#results tbody th:first-child{
  width: 210px !important;
}

#results tbody th:first-child{
  text-align: center;
}

#results tbody th:first-child img{
  /* tamanho "original" (sem forçar escala) */
  max-width: none;
  width: auto;
  height: auto;
  display:block;
  margin: 0 auto;
  border-radius: 8px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 700px){
  /* em telas pequenas, não deixar estourar */
  #results tbody th:first-child img{
    max-width: 100%;
  }
}

/* Centralizar "Success Rate" abaixo da imagem */
#results tbody th:first-child div{
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center;
  margin-top: 10px;
}

#results tbody th:first-child div p{
  margin: 0;
  font-weight: 700;
  text-align: center;
}

/* Alinhar lista de itens/ícones no "Required Item" */
#results tbody td:nth-child(2){
  line-height: 1.7;
}

#results tbody td:nth-child(2) img{
  /* mexer apenas nesses ícones (Required Item): usar tamanho natural do arquivo */
  width: auto;
  height: auto;
  max-width: none;
  max-height: 32px;
  vertical-align: middle;
  margin-right: 8px;
  margin-left: 0;
  float: none !important;
  display: inline-block !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Alguns conteúdos antigos usam align/float e empurram o ícone para a direita */
#results tbody td:nth-child(2) img[align]{
  float: none !important;
}

/* =======================================================================
   Monster Drop (guide.php / maps): Normal Drop + Special Drop alignment
   Table columns: [1]=mob, [2]=Exp, [3]=Lime, [4]=LP, [5]=Normal Drop, [6]=Special Drop
   ======================================================================= */

#results tbody td:nth-child(5),
#results tbody td:nth-child(6){
  text-align: left !important;
  vertical-align: top;
  line-height: 1.5;
}

#results tbody td:nth-child(5) img,
#results tbody td:nth-child(6) img{
  width: 28px;
  height: 28px;
  object-fit: cover;
  vertical-align: middle;
  margin: 0 8px 0 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  float: none !important;
  display: inline-block !important;
}

/* Após remover colunas (Monster Drop agora é 3 colunas): aplicar o mesmo estilo nas colunas 2 e 3 */
#results tbody td:nth-child(2),
#results tbody td:nth-child(3){
  text-align: left !important;
  vertical-align: top;
  line-height: 1.5;
}

#results tbody td:nth-child(2) img,
#results tbody td:nth-child(3) img,
#results tbody td:nth-child(2) img.map-icon,
#results tbody td:nth-child(3) img.map-icon{
  width: 28px;
  height: 28px;
  object-fit: cover;
  vertical-align: middle;
  margin: 0 8px 0 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  float: none !important;
  display: inline-block !important;
}

/* Monster Drop: infos abaixo da imagem alinhadas à esquerda (não centralizado) */
table.maps-table tbody th:first-child div{
  align-items: flex-start !important;
}
table.maps-table tbody th:first-child div p{
  text-align: left !important;
  width: 100%;
  font-weight: 400 !important; /* valores sem negrito */
  margin: 2px 0;
}

/* só os labels (Level/Exp/Lime...) ficam em negrito */
table.maps-table tbody th:first-child div p b{
  font-weight: 700 !important;
}

/* Apenas aproximar o bloco de infos para a esquerda (sem mudar layout) */
table.maps-table tbody th:first-child div{
  padding-left: 6px;
}
