.calculadora-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background-color: rgba(0,0,0,0.6);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 173, 0, 0.4);
  color: #000000;
  box-sizing: border-box;
}
label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  user-select: none;
}

h2 {
  border-bottom: 2px solid #fe8a01;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  color: #fe8a01;
  text-align: center;
  font-weight: 700;
  user-select: none;
}

#pokemon {
  background-image: none;
  padding-right: 30px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  border-color: #ffcb05;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 203, 5, 0.5);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Roles */
.role-adc { background-color: #dc3545; color: white; }
.role-jgl { background-color: #007bff; color: white; }
.role-tank { background-color: #28a745; color: white; }
.role-sup { background-color: #fd7e14; color: white; }
.role-top { background-color: #6f42c1; color: white; }

/* Resultado */
.resultado-container {
  display: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 25px;
  margin-top: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.resultado-image {
  flex-shrink: 0;
  text-align: center;
  min-width: 180px;
  position: relative;
}

.resultado-image img {
  max-width: 160px;
  height: auto;
  border: 3px solid #ddd;
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Gradiente da role na borda da imagem */
.resultado-image.role-speedster img {
  border: 3px solid;
  border-image: linear-gradient(45deg, #2492c9, #1a7ba8, #2492c9) 1;
}

.resultado-image.role-allrounder img {
  border: 3px solid;
  border-image: linear-gradient(45deg, #ce5fd3, #b84bc4, #ce5fd3) 1;
}

.resultado-image.role-support img {
  border: 3px solid;
  border-image: linear-gradient(45deg, #e1b448, #d4a335, #e1b448) 1;
}

.resultado-image.role-defender img {
  border: 3px solid;
  border-image: linear-gradient(45deg, #9bd652, #87c43f, #9bd652) 1;
}

.resultado-image.role-attacker img {
  border: 3px solid;
  border-image: linear-gradient(45deg, #f16c38, #e55a25, #f16c38) 1;
}

.info-jogador {
  background: #e9ecef;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

/* Tarja da role */
.role-badge {
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.5px;
}

.role-badge.speedster {
  background-color: #2492c9;
}

.role-badge.allrounder {
  background-color: #ce5fd3;
}

.role-badge.support {
  background-color: #e1b448;
}

.role-badge.defender {
  background-color: #9bd652;
}

.role-badge.attacker {
  background-color: #f16c38;
}

.resultado-dados {
  display: flex;
  gap: 25px;
  flex: 1;
  min-width: 0;
}

.coluna-temporada, .coluna-total {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 280px;
}

.coluna-temporada h3 {
  color: #007bff;
  margin: 0 0 15px 0;
  border-bottom: 3px solid #007bff;
  padding-bottom: 8px;
  text-align: center;
  font-size: 18px;
}

/* Avaliação (Fraco, Mediano, Bom, etc.) */
.avaliacao {
  font-size: 15px;
  font-weight: bold;
  margin-top: 8px;
  color: #000; /* Força a cor preta */
}


.coluna-total h3 {
  color: #28a745;
  margin: 0 0 15px 0;
  border-bottom: 3px solid #28a745;
  padding-bottom: 8px;
  text-align: center;
  font-size: 18px;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.stat-line:last-child { border-bottom: none; }

.stat-label { color: #666; font-weight: 500; }
.stat-value { font-weight: bold; color: #333; }

/* Container dos ícones dos itens */
.item-icons-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Item containers */
.item-icon-container {
  position: relative;
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  transition: all 0.3s ease;
}

.item-icon-container.item-clickable {
  cursor: pointer;
  border-color: #ccc;
}

.item-icon-container.item-clickable:hover {
  border-color: #ffcb05;
  box-shadow: 0 0 8px rgba(255, 203, 5, 0.4);
}

.item-icon-container.item-active {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.item-passive-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffc107;
  border: 2px solid white;
  transition: background-color 0.3s ease;
}

.item-icon-container.item-active .item-passive-dot {
  background-color: #28a745;
}

/* Botões */
.botoes-calculadora {
  display: flex;
  gap: 10px;
}

.btn {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

/* Campos lado a lado */
.campos-linha {
  display: flex;
  gap: 20px;
}
.campos-linha > div { flex: 1; }

/* Responsividade */
@media (max-width: 992px) {
  .resultado-container { flex-direction: column; gap: 20px; padding: 15px; }
  .resultado-dados { flex-direction: column; gap: 15px; width: 100%; }
  .coluna-temporada, .coluna-total { min-width: 100%; padding: 15px; }
  .resultado-image { min-width: auto; align-self: center; }
  .stat-line { padding: 8px 0; font-size: 15px; }
  .coluna-temporada h3, .coluna-total h3 { font-size: 17px; padding-bottom: 6px; margin-bottom: 12px; }
  .botoes-calculadora { flex-direction: column; gap: 8px; }
  .campos-linha { flex-direction: column; gap: 0; }
  .item-icons-container { justify-content: center; }
}

@media (max-width: 576px) {
  .calculadora-container { margin: 20px auto; padding: 15px; }
  .resultado-container { margin-top: 20px; padding: 12px; }
  .resultado-image img { max-width: 140px; }
  .coluna-temporada, .coluna-total { padding: 12px; }
  .stat-line { font-size: 14px; }
  .info-jogador { padding: 12px; font-size: 13px; }
  .item-icons-container { gap: 4px; }
  .item-icon-container img { width: 32px; height: 32px; }
}

/* Voltar */
.calculadora-voltar {
  display: inline-block;
  margin-top: 20px;
  color: #ff7500;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.calculadora-voltar:hover { text-decoration: underline; color: #ffad00; }

/* Slider */
.nivel-container,
.stack-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.slider { width: 200px; cursor: pointer; }

/* Battle Items */
.battle-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 10px 0;
}
.battle-container label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.battle-icon { width: 28px; height: 28px; }

/* Skills */
.resultado-skills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}
.skill-box {
  display: flex;
  align-items: center;
  background: rgba(216, 216, 216, 0.4);
  padding: 10px;
  border-radius: 8px;
  gap: 12px;
}
.skill-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: cover;
}
.skill-info { flex: 1; text-align: left; }
.skill-info h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #000;
  font-weight: bold;
}
.skill-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #000;
}
.skill-info li { margin-bottom: 3px; text-align: left; }
.skill-info li:last-child { margin-bottom: 0; }

/* Cooldown styling */
.skill-cooldown {
  color: #a30404;
  font-size: 15px;
  font-weight: normal;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

@media (max-width: 576px) {
  .skill-box { padding: 8px; gap: 10px; }
  .skill-icon { width: 35px; height: 35px; }
  .skill-info h4 { font-size: 13px; }
  .skill-info ul { font-size: 11px; }
}

/* Ultimate */
.skill-box.ultimate {
  border: 2px solid #ff8c42;
  background: rgba(255, 140, 66, 0.1);
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.3);
}
.skill-box.ultimate .skill-info h4 { color: #ff6b00; }

/* Passiva */
.skill-box.passive {
  border: 2px solid #007bff;
  background: rgba(0, 123, 255, 0.08);
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
  border-radius: 8px;
  position: relative;
}
.skill-box.passive .skill-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #000; /* nome da skill em preto */
}
.skill-box.passive .skill-info h4 .passive-label {
  color: #ffd633; /* apenas "Passive Skill" em amarelo */
  margin-right: 6px;
}
.skill-box.passive .passive-subtitle {
  margin-top: 2px;
  font-size: 12px;
  font-style: italic;
  font-weight: bold;
  color: #ffc107;
  line-height: 1.2;
}
.skill-box.passive .passive-status {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc; /* cinza padrão */
  transition: background-color 0.3s ease;
}
.skill-box.passive.active .passive-status {
  background-color: #ffd633; /* amarelo quando ativa */
}
@media (max-width: 576px) {
  .skill-box.passive .passive-subtitle { font-size: 10px; }
  .skill-box.passive .passive-status {
    width: 6px;
    height: 6px;
    top: 6px;
    right: 6px;
  }
}

/* Emblemas */
.emblema-item {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid #444;
}
.emblema-item > label {
  display: block;
  margin-bottom: 10px;
  color: #fe8a01;
  font-size: 16px;
  margin-top: 0;
}
.emblem-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 20px;
}
.emblem-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: 400;
  font-size: 14px;
}
.emblem-options input[type="radio"] { margin: 0; cursor: pointer; }
.emblem-options label:hover { color: #ffcb05; }

@media (max-width: 768px) {
  .emblema-item { padding: 12px; margin-bottom: 15px; }
  .emblema-item > label { font-size: 15px; }
  .emblem-options { margin-left: 15px; gap: 6px; }
  .emblem-options label { font-size: 13px; }
}

.emblem-color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
#emblemas-container label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #fe8a01;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .emblem-color-dot { width: 10px; height: 10px; margin-right: 6px; }
  #emblemas-container label { font-size: 13px; margin-bottom: 6px; }
}

/* -----------------------------
   ESTILOS DO DROPDOWN CUSTOMIZADO
   (miniaturas ao lado do nome)
   ----------------------------- */

.custom-select-container {
  position: relative;
  width: 100%;
  margin-top: 6px;
  font-family: inherit;
}

.custom-select-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  box-sizing: border-box;
}

.custom-select-toggle:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(255, 203, 5, 0.2);
}

/* Thumb da miniatura */
.custom-select-thumb {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
  display: inline-block;
}

.custom-select-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-arrow {
  margin-left: 6px;
  font-size: 14px;
  color: #666;
}

/* Painel com opções */
.custom-select-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 999;
  display: none;
  padding: 6px;
  box-sizing: border-box;
}

/* Cada opção */
.custom-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.custom-select-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.custom-select-item:hover {
  background: rgba(0,0,0,0.03);
}

.custom-select-item.selected {
  background: rgba(40,167,69,0.08);
  border: 1px solid rgba(40,167,69,0.12);
}

/* Estado desabilitado */
.custom-select-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsividade do painel (mobile) */
@media (max-width: 576px) {
  .custom-select-panel {
    max-height: 180px;
  }
  .custom-select-item img { width: 30px; height: 30px; }
  .custom-select-thumb { width: 30px; height: 30px; }
}
/* Força nome dos itens no dropdown custom a ser preto */
.custom-select-label,
.custom-select-item span {
  color: #000 !important;
  font-weight: 500;
}

/* Ajusta container dos slots para que o stack-slider fique abaixo */
.item-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Garante que o stack-slider apareça sempre abaixo do custom-select */
.item-slot .stack-container {
  order: 2;
}
.custom-select-container {
  order: 1;
}

/* Adicione ao final do calculadora.css */
.custom-select-item.disabled {
  opacity: 0.5 !important;
  color: #999 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  position: relative;
}

.custom-select-item.disabled::after {
  content: "🔒";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

.custom-select-disabled .custom-select-toggle {
  opacity: 0.7;
  cursor: not-allowed;
}
/* Battle Items Grid - Adicione ao final do calculadora.css */
.battle-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.battle-item-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.battle-item-option:hover {
  background: rgba(255, 203, 5, 0.1);
  border-color: rgba(255, 203, 5, 0.3);
}

.battle-item-option input[type="radio"] {
  display: none;
}

.battle-item-option input[type="radio"]:checked + img,
.battle-item-option input[type="radio"]:checked + .battle-item-placeholder {
  border: 2px solid #ffcb05;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 203, 5, 0.4);
}

.battle-item-option .battle-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.battle-item-option .battle-item-placeholder {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 2px solid #666;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 102, 102, 0.2);
  font-size: 10px;
  text-align: center;
  color: #ccc;
  transition: all 0.2s ease;
}

.battle-item-option span {
  font-size: 12px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .battle-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6px;
    padding: 6px;
  }
  
  .battle-item-option {
    padding: 4px 2px;
  }
  
  .battle-item-option .battle-icon,
  .battle-item-option .battle-item-placeholder {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
  }
  
  .battle-item-option span {
    font-size: 9px;
  }
  
  .battle-item-option .battle-item-placeholder {
    font-size: 7px;
  }
}

@media (max-width: 576px) {
  .battle-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 4px;
  }
  
  .battle-item-option .battle-icon,
  .battle-item-option .battle-item-placeholder {
    width: 22px;
    height: 22px;
  }
  
  .battle-item-option span {
    font-size: 8px;
  }
}

/* Held Items Grid - Similar ao Battle Items */
.held-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2px;
  margin-top: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.held-item-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.held-item-option:hover:not(.disabled) {
  background: rgba(255, 203, 5, 0.1);
  border-color: rgba(255, 203, 5, 0.3);
}

.held-item-option.selected {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.held-item-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(128, 128, 128, 0.1);
}

.held-item-option.disabled:hover {
  background: rgba(128, 128, 128, 0.1);
  border-color: transparent;
}

.held-item-option .item-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.held-item-option span {
  font-size: 12px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
}

/* Número do slot selecionado */
.held-item-option .slot-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  border: 2px solid white;
}

/* Container dos itens selecionados */
.selected-items-container {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.selected-item-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 2px solid #28a745;
  border-radius: 8px;
  background: rgba(40, 167, 69, 0.05);
  min-width: 100px;
}

.selected-item-slot .slot-header {
  font-size: 12px;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 8px;
}

.selected-item-slot .item-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 4px;
}

.selected-item-slot .item-name {
  font-size: 11px;
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
}

.selected-item-slot .stack-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .held-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    padding: 10px;
  }
  
  .held-item-option {
    padding: 8px 4px;
  }
  
  .held-item-option .item-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
  }
  
  .held-item-option span {
    font-size: 10px;
  }
  
  .held-item-option .slot-number {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: -6px;
    right: -6px;
  }
  
  .selected-items-container {
    gap: 8px;
  }
  
  .selected-item-slot {
    padding: 6px;
    min-width: 70px;
  }
  
  .selected-item-slot .item-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 576px) {
  .held-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6px;
  }
  
  .held-item-option .item-icon {
    width: 28px;
    height: 28px;
  }
  
  .held-item-option span {
    font-size: 9px;
  }
}

/* Adicione ao final do calculadora.css */
.held-item-option.fixed {
  border: 2px solid #ffcb05 !important;
  background: rgba(255, 203, 5, 0.1) !important;
  cursor: not-allowed !important;
}

.selected-item-slot.fixed-item {
  border-color: #ffcb05 !important;
  background: rgba(255, 203, 5, 0.05) !important;
}

.selected-item-slot.fixed-item .slot-header {
  color: #ffcb05 !important;
}

/* Pokemon Selector Circular */
.pokemon-selector-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.pokemon-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border: 4px solid #ffcb05;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 203, 5, 0.1), rgba(255, 138, 1, 0.1));
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 203, 5, 0.3);
}

.pokemon-circle:hover {
  border-color: #ff8a01;
  box-shadow: 0 6px 20px rgba(255, 138, 1, 0.4);
  transform: scale(1.05);
}

.pokemon-circle-content {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.pokemon-circle-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pokemon-placeholder {
  font-size: 32px;
  font-weight: bold;
  color: #ffcb05;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pokemon-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffcb05;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  max-width: 140px;
  word-wrap: break-word;
}

/* Pokemon Grid Panel */
.pokemon-grid-panel {
  position: absolute;
  top: calc(-170% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1000px;
  max-height: 800px;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #ffcb05;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  padding: 15px;
  overflow-y: auto;
}

.pokemon-grid-panel.show {
  display: block;
  animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  padding: 10px;
}

.pokemon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.pokemon-grid-item:hover {
  background: rgba(255, 203, 5, 0.15);
  border-color: rgba(255, 203, 5, 0.5);
  transform: translateY(-2px);
}

.pokemon-grid-item.selected {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.15);
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.pokemon-grid-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.pokemon-grid-item span {
  font-size: 11px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  max-width: 80px;
  word-wrap: break-word;
}

/* Role badge no grid */
.pokemon-role-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pokemon-role-badge.speedster { background-color: #2492c9; }
.pokemon-role-badge.allrounder { background-color: #ce5fd3; }
.pokemon-role-badge.support { background-color: #e1b448; }
.pokemon-role-badge.defender { background-color: #9bd652; }
.pokemon-role-badge.attacker { background-color: #f16c38; }

/* Responsividade */
@media (max-width: 768px) {
  .pokemon-circle {
    width: 120px;
    height: 120px;
  }
  
  .pokemon-circle-content {
    width: 70px;
    height: 70px;
  }
  
  .pokemon-placeholder {
    font-size: 28px;
  }
  
  .pokemon-name {
    font-size: 13px;
    max-width: 120px;
  }
  
  .pokemon-grid-panel {
    width: 95vw;
    max-height: 350px;
  }
  
  .pokemon-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }
  
  .pokemon-grid-item {
    padding: 6px;
  }
  
  .pokemon-grid-item img {
    width: 50px;
    height: 50px;
  }
  
  .pokemon-grid-item span {
    font-size: 10px;
    max-width: 70px;
  }
}

@media (max-width: 576px) {
  .pokemon-circle {
    width: 110px;
    height: 110px;
  }
  
  .pokemon-circle-content {
    width: 60px;
    height: 60px;
  }
  
  .pokemon-placeholder {
    font-size: 24px;
  }
  
  .pokemon-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 6px;
  }
  
  .pokemon-grid-item img {
    width: 45px;
    height: 45px;
  }
}

/* Overlay para fechar o painel ao clicar fora */
.pokemon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: none;
}

.pokemon-overlay.show {
  display: block;
}

/* Estilo para o botão de reset dos held items */
.reset-held-items-button {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 15px auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
  min-width: 140px;
  justify-content: center;
}

.reset-held-items-button:hover {
  background: linear-gradient(135deg, #ff7700, #ff5500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.reset-held-items-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
}

.reset-held-items-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Animação quando não há itens para resetar */
.reset-held-items-button.no-items {
  background: #666;
  cursor: not-allowed;
}

.reset-held-items-button.no-items:hover {
  background: #666;
  transform: none;
  box-shadow: none;
}

/* Estilo para o botão de print - Adicione ao final do calculadora.css */
.btn-print-resultado {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  margin: 25px auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.btn-print-resultado:hover {
  background: linear-gradient(135deg, #ff7700, #ff5500);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.btn-print-resultado:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-print-resultado:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-print-resultado:disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Efeito de loading */
.btn-print-resultado.loading {
  background: #666;
  cursor: wait;
}

.btn-print-resultado.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .btn-print-resultado {
    padding: 14px 20px;
    font-size: 15px;
    min-width: 180px;
    margin: 20px auto;
  }
}

@media (max-width: 576px) {
  .btn-print-resultado {
    padding: 12px 16px;
    font-size: 14px;
    min-width: 160px;
    margin: 15px auto;
  }
}

/* Estilo especial quando o download é concluído */
.btn-print-resultado.success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
}

/* Container para centralizar o botão */
.print-button-container {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

/* Esconder o botão quando o resultado não está visível */
.resultado-container[style*="display: none"] + .btn-print-resultado {
  display: none;
}

/* Estilo para o botão de download - similar ao reset button */
#btn-download {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 15px auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
  min-width: 180px;
  justify-content: center;
  width: auto;
}

#btn-download:hover {
  background: linear-gradient(135deg, #ff7700, #ff5500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

#btn-download:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
}

#btn-download:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 5px;
  z-index: 1000;
}

.lang-btn {
  padding: 8px 12px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: #ff6b47;
}

.lang-btn:hover {
  background: #555;
}

.lang-btn.active:hover {
  background: #e55a3a;
}

/* Buffs de Maestria - Adicionar ao final do calculadora.css */
.buffs-maestria-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.buffs-maestria-container h3 {
  color: #fe8a01;
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
  border-bottom: 2px solid #fe8a01;
  padding-bottom: 8px;
}

.buffs-maestria-container p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

.buffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.buff-option {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.buff-option:hover {
  border-color: rgba(255, 203, 5, 0.3);
  background: rgba(255, 203, 5, 0.05);
}

.buff-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  color: #fff;
  font-weight: 500;
}

.buff-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

.buff-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #ffcb05;
  border-color: #ffcb05;
}

.buff-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
  font-size: 14px;
}

.buff-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.buff-info strong {
  color: #ffcb05;
  font-size: 16px;
}

.buff-info small {
  color: #bbb;
  font-size: 12px;
  line-height: 1.3;
}

.pontos-preview {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.pontos-vitoria,
.pontos-derrota {
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pontos-vitoria strong {
  color: #28a745;
  font-weight: bold;
}

.pontos-derrota strong {
  color: #dc3545;
  font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
  .buffs-maestria-container {
    padding: 15px;
    margin: 15px 0;
  }
  
  .buffs-maestria-container h3 {
    font-size: 16px;
  }
  
  .buffs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .buff-option {
    padding: 12px;
  }
  
  .buff-info strong {
    font-size: 15px;
  }
  
  .buff-info small {
    font-size: 11px;
  }
  
  .pontos-preview {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .pontos-vitoria,
  .pontos-derrota {
    justify-content: center;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .buffs-maestria-container {
    padding: 12px;
  }
  
  .buff-checkbox {
    gap: 10px;
  }
  
  .checkmark {
    width: 18px;
    height: 18px;
  }
  
  .buff-checkbox input[type="checkbox"]:checked + .checkmark::after {
    font-size: 12px;
  }
}

/* Esconder marca d'água da equipe em telas mobile */
@media (max-width: 768px) {
  .team-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

