/* ============================
   Base Modal Overlay
============================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  overflow: hidden;

  /* Only dark overlay outside modal */
  background-color: rgba(0,0,0,0.8);

  justify-content: center;
  align-items: center;
}

/* ============================
   Generic Modal Content
============================ */
.modal-content {
  background-size: cover;

  padding: 20px;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  color: white;
  position: relative;
}

.modal-content .close {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content .close:hover {
  color: #fff;
}

/* ============================
   Jump Data Modal Layout
============================ */
#jumpDataModal {
  justify-content: center;
  align-items: center;
}

/* Modal becomes flex column */
#jumpDataModal .modal-content {
  display: flex;
  flex-direction: column;

  width: 90%;
  max-width: 900px;
  height: 85vh;
  max-height: 85vh;

  overflow: hidden;
}

/* Scroll container */
#jumpDataModal .container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;

  background-color: rgba(0,0,0,0.75);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* ============================
   General Typography
============================ */
h1 {
  text-align: center;
  color: gold;
}

/* ============================
   Table Styles
============================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 0.6rem;
  border-bottom: 1px solid #444;
}

th {
  background-color: #222;
  text-align: center;
}

.highlight {
  color: cyan;
  font-weight: bold;
}

/* ============================
   Jump Table Divider Rows
============================ */
#jumpTable tr.jump-system-row td {
  background: rgba(0,0,0,0.55);
  color: gold;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border-top: 2px solid #444;
  border-bottom: 1px solid #333;
}

#jumpTable tr.jump-from-row td {
  background: rgba(0,0,0,0.40);
  color: #ddd;
  font-weight: bold;
  text-align: center;
  padding: 8px 10px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

/* ============================
   Sticky Export Buttons
============================ */
#exportBox {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;

  position: sticky;
  bottom: 0;
  background: rgba(0,0,0,0.75);
  padding-top: 10px;
  border-top: 1px solid #333;
}

/* ============================
   Buttons
============================ */
button {
  background-color: #333;
  border: 1px solid #555;
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #555;
}
