/* Search dropdown styled like EVE modal */
.eve-search-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: 6px;
  width: 300px;
  margin-top: 5px;
  z-index: 999;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  font-family: Arial, sans-serif;
  text-align: left;
  color: #ccc;
  max-height: 300px;
  overflow-y: auto;
}


.eve-search-dropdown div {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
}

.eve-search-dropdown div:hover {
  background-color: #2a2a2a;
  color: #79cef4;
}

.eve-search-dropdown div:last-child {
  border-bottom: none;
}

.system-card {
  background: #1d1d1d;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 8px;
  color: #ccc;
  margin: 20px auto; /* 👈 center horizontally */
  text-align: left;

  max-width: 557px;   /* 👈 limit width */
  width: 100%;        /* responsive */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); /* optional shadow */
}

.system-card h2 {
  margin: 0;
  font-weight: 400;
  color: #79cef4;
}

.system-card .region-name {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 15px;
}

.planet-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.planet-type {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2a2a2a;
  padding: 5px 10px;
  border-radius: 6px;
}

.planet-type img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.planet-list .planet-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.planet-list .planet-entry img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.planet-entry .radius {
  margin-left: auto;
  color: #999;
  font-size: 0.9em;
}

.region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
}

.region-header {
  display: flex;
  justify-content: center; /* horizontally center */
  align-items: center;      /* vertically center, if height is set */
  padding: 12px 0;          /* optional spacing */
  text-align: center;
}

.system-tile {
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px;
  width: 408px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.system-tile:hover {
  background: #232323;
  box-shadow: 0 0 10px rgba(121, 206, 244, 0.2);
}

.system-tile h4 {
  margin: 0 0 10px 0;
  color: #79cef4;
  font-weight: 400;
  font-size: 1.0em;
}

.system-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.system-header-row h4 {
  margin: 0;
  color: #79cef4;
  font-weight: 400;
  font-size: 1.1em;
}

.planet-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planet-type-region {
  display: flex;
  align-items: center;
  gap: 3px;
  /* padding: 5px 10px; */
  /* background: #2a2a2a;
     padding: 4px 6px;
     border-radius: 4px; */
}

.planet-type-region img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}


.planet-type img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.eve-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.eve-modal-content {
  /* background: #1d1d1d; */
  /* border: 1px solid #333; */
  /* border-radius: 8px; */
  max-width: 700px;
  max-height: 90vh;              /* Limit height to 90% of viewport */
  margin: 80px auto;
  padding: 20px;
  color: #ccc;
  /* box-shadow: 0 0 12px rgba(0,0,0,0.6); */
  overflow-y: auto;              /* Enable vertical scroll */
  transform: scale(0.95);
  opacity: 0;
  /* transition: transform 0.25s ease, opacity 0.25s ease; */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}

.eve-modal.show {
  display: block;
  opacity: 1;
}

.eve-modal-content::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Opera */
}

.eve-modal.show .eve-modal-content {
  transform: scale(1);
  opacity: 1;
}