body {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

header {
  text-align: center;
  margin: 0px 0;
  text-align: center;
  padding: 20px 0;
}

h1 {
  color: #0ef;
  text-shadow: 0 0 10px #0ef, 0 0 20px #0ef;
  font-size: 2.5rem;
}

.neon-header .blue {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.neon-header .pink {
  color: #8000ff;
  text-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff;
}

#toggleMode {
  font-size: 0.6rem;
  margin-top: 20px;
  padding: 5px 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(to right, #0ef, #c800ff);
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #0ef;
  transition: 0.3s ease;
}

#toggleMode:hover {
  box-shadow: 0 0 20px #c800ff;
}

.search-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-container input {
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  outline: none;
  background-color: #1c1c2c;
  color: #0ef;
  font-size: 1rem;
  width: 250px;
  transition: box-shadow 0.3s ease;
}

.search-container input:focus {
  box-shadow: 0 0 10px #0ef;
}

.search-container button {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(to right, #0ef, #c800ff);
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #0ef;
  transition: 0.3s ease;
}

.search-container button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #c800ff;
}

.pokedex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  width: 100%;
  max-width: 1200px;
}

.pokemon-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #0ef;
  border-radius: 20px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.pokemon-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px #0ef, 0 0 40px #0ef;
  border-color: #f0f;
}

.pokemon-card img {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 5px #0ef);
  transition: transform 0.3s ease;
}

.pokemon-card:hover img {
  transform: scale(1.1);
}

.pokemon-card h2 {
  color: #0ef;
  margin: 10px 0 5px;
  font-size: 1.2rem;
  text-transform: capitalize;
}

.pokemon-id {
  color: #f0f;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
  text-shadow: 0 0 5px #f0f;
}

.types {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.type {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  text-transform: capitalize;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.type:hover {
  transform: scale(1.1);
}

footer {
  margin: 30px 0;
  font-size: 0.9rem;
  color: #aaa;
}

/*Detail Pokemon*/
/* Neon Style */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(to right, #1c1c2c, #2c003e);
  border: 2px solid #0ef;
  border-radius: 16px;
  width: 95%;
  max-width: 600px;
  height: 90vh;
  padding: 16px 20px;
  position: relative;
  color: white;
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.6rem;
  color: #f0f;
  cursor: pointer;
}

.modal-content h2 {
  font-size: 1.5rem;
  color: #0ef;
  margin-top: 0;
  text-align: center;
}

.modal-content img {
  width: 110px;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 5px #0ef);
}

.types {
  text-align: center;
  margin-bottom: 10px;
}

.stats {
  margin-top: 10px;
}

.stats h3 {
  color: #0ef;
  margin-bottom: 8px;
  font-size: 1rem;
  text-align: center;
}

.stat-line {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.stat-line span {
  width: 80px;
}

.stat-bar {
  height: 6px;
  border-radius: 10px;
  background: #333;
  flex-grow: 1;
  margin: 0 6px;
  overflow: hidden;
}

.stat-bar-inner {
  height: 100%;
  background: #f0f;
  transition: width 0.3s ease;
}

.abilities {
  margin-top: 10px;
  text-align: center;
}

.abilities h3 {
  color: #0ef;
  margin-bottom: 6px;
  font-size: 1rem;
}

.ability-badge {
  display: inline-block;
  margin: 3px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #0ef;
  font-size: 0.75rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pagination-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.pagination-container button {
  padding: 10px 16px;
  border: 2px solid cyan;
  background: transparent;
  color: cyan;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px; /* 💡 Sudut tumpul */
  transition: all 0.3s ease;
}

.pagination-container button:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: scale(1.05);
  box-shadow: 0 0 10px cyan;
}

.pagination-container button.active {
  background: linear-gradient(135deg, #ff00ff, #7f00ff);
  color: white;
  border: none;
  box-shadow: 0 0 12px #ff00ff;
}

.pagination-container span {
  color: cyan;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  align-self: center;
}

.loading {
  display: none;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  color: cyan;
  font-size: 20px;
  padding: 20px;
}

/* Animasi loading bulat opsional */
.loading::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 40px;
  height: 40px;
  border: 4px solid cyan;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 20px 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: #0ef;
  text-shadow: 0 0 8px #0ef;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}
