/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Use real image as background */
body {
  font-family: Arial, sans-serif;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow: hidden; /* only hide horizontal scroll */
  min-height: 100vh;
  color: white;
}


/* Transparent Nav Bar */
nav {
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px); /* nice blur effect */
}
nav .logo {
  font-size: 22px;
  font-weight: bold;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
nav ul li a:hover {
  text-decoration: underline;
}

/* Centered Search Container */
/* .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 150px;
  padding: 20px;
  text-align: center;
} */
 .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 130px;
  padding: 20px;
  text-align: center;
}
.container h1 {
  margin-bottom: 30px;
  font-size: 40px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Search Box and Button Animation */
.container input {
  padding: 12px;
  font-size: 16px;
  width: 270px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.container input:focus {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.container button {
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #00bfff;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}
.container button:hover {
  transform: scale(1.05);
  background-color: #009acd;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.8);
}

/* Modal Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  position: relative;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  color: #333;
}
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

.close {
  color: #aaa;
  font-size: 24px;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

#resultContent {
  margin-top: 20px;
}

#resultContent h3 {
  text-align: center;
  font-size: 24px;
}

/* Result Table Styles */
#resultContent table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
#resultContent th,
#resultContent td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  word-wrap: break-word;
}
#resultContent th {
  background-color: #eee;
}
#resultContent th:first-child,
#resultContent td:first-child {
  width: 30%;
}
#resultContent th:last-child,
#resultContent td:last-child {
  width: 70%;
}

/* Pagination & Back to Top */
.pagination-controls {
  text-align: center;
  margin-top: 20px;
}
.pagination-controls button {
  padding: 8px 16px;
  margin: 0 10px;
  font-size: 14px;
  cursor: pointer;
}
.back-to-top {
  display: block;
  margin: 20px auto 0;
  padding: 8px 16px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.back-to-top:hover {
  background-color: #0056b3;
}

/* Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* Hidden by default */
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
 .container {
  margin-top: 290px;
}
.modal-content {
  margin-top: 90px;
}

}

@media (max-width: 300px) {
 .container {
  margin-top: 250px;
}
.modal-content {
  margin-top: 100px;
}

}

#resultContent {
  overflow-x: auto;
}

#resultContent table {
  table-layout: fixed;
  word-wrap: break-word;
}








