body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/Search_001.png') no-repeat center center fixed;
  background-size: cover;
  margin: 20px;


}


/* Title Styling
#first_line {
  position: absolute;
  top: 2px;
 
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: #c8f6b8;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0px;
  text-align: center;
  width: 100%;
  
  z-index: 1000;
} */


#first_line {

  /* Use vh instead of px */
  font-weight: bold;
  width: 100%;
  font-size: 2rem;
  color: #c8f6b8;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#searchBox {
  position: absolute;

  /* Keeps a fixed gap */
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  padding: 12px 20px;
  font-size: 1rem;
  border: 2px solid #007bff;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease-in-out;
  z-index: 1001;
}









/* #searchBox {
  position: absolute;
  top: 15%;
 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  padding: 12px 20px;
  font-size: 18px;
  border: 2px solid #007bff;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease-in-out;
} */




#searchBox:focus {
  border-color: #47ee0f;
  box-shadow: 0 0 10px rgba(164, 237, 36, 0.5);
}

/* First Popup (Loading) */
#loadingPopup {
	position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  height: auto;
  text-align: center;
}

/* Second Popup (Result) */
/* #resultPopup {
  top: 50%;
  max-height: 90vh;
  overflow-y: auto;
} */


#resultPopup {
  top: 160px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  overflow-y: auto;
}






.popup {
  position: absolute;

  left: 50%;
  width: 80%;
  height: auto;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-in-out;
}

.popup.show {
  opacity: 1;
  display: block;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: red;
  transition: transform 0.3s ease-in-out;
}

.popup .close:hover {
  transform: rotate(120deg);
}

.overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease-in-out;
}




/* Table Container */
#dataContainer {
  /* Enables vertical scrolling */
  overflow-x: auto;
  /* Enables horizontal scrolling */
  border: 1px solid black;
  /* Full border *//
}




table {
  width: 100%;
  border-collapse: collapse;
  /* Ensures borders align perfectly */
  table-layout: auto;
  /* Allows columns to adjust dynamically */
}

th,
td {
  border: 1px solid black;
  /* Ensures consistent borders */
  padding: 8px;
  /* Adds spacing for better readability */
  text-align: center;
  /* Aligns text properly */
  white-space: nowrap;
  /* Prevents text from wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
  /* Adds "..." if text is too long */
}

th {
  background-color: yellow;
  /* Matches your header background */
  font-weight: bold;
}

td {
  background-color: white;
}





















.pagination {
  display: grid;
  grid-template-columns: repeat(n, 1fr);
  gap: 30px;
  display: flex;
  justify-content: center;
  /* Center buttons horizontally */
  align-items: center;
  /* Align buttons in the same line */

}



.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}


.nav-button {
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  min-width: 120px;
  text-align: center;
}

.nav-button:hover {
  background: linear-gradient(135deg, #0056b3, #003d80);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 91, 187, 0.5);
}

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