html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  background-image: url('background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

nav {
  background: linear-gradient(135deg, rgba(0,0,0,0), rgba(0,0,0,0.6));
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  width: 150px;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.admin-button, .logout-button {
  background: none;
  color: #1E90FF;
  padding: 10px 20px;
  border: 2px solid #1E90FF;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.admin-button:hover, .logout-button:hover {
  background-color: #1E90FF;
  color: white;
  box-shadow: 0 4px 8px rgba(30,144,255,0.5);
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.8);
  padding: 40px 50px;
  border-radius: 35px;
  border: 4px solid #1E90FF;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  animation: borderAnimation 20s linear infinite;
}

@keyframes borderAnimation {
  0% { border-color: #1E90FF; }
  25% { border-color: #00BFFF; }
  50% { border-color: #87CEFA; }
  75% { border-color: #1E90FF; }
  100% { border-color: #1E90FF; }
}

h1, h2, h3 {
  color: #1E90FF;
}

form {
  margin-top: 20px;
  text-align: left;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  color: #333;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 2px solid #1E90FF;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #FF6347;
  box-shadow: 0 0 10px rgba(255,99,71,0.5);
  outline: none;
}

button {
  background: none;
  color: #1E90FF;
  padding: 15px 30px;
  margin-top: 30px;
  border: 2px solid #1E90FF;
  border-radius: 30px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

button:hover {
  background-color: #1E90FF;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30,144,255,0.5);
}

.error {
  color: #b30000;
  margin: 10px 0;
  text-align: left;
}

.success, .success-note {
  color: #32CD32;
  margin-top: 20px;
  text-align: left;
}

.success-note {
  text-align: center;
  color: #fff;
  margin: 15px 0;
  font-size: 0.9em;
  background-color: green;
  padding: 5px;
}

.result {
  margin-top: 40px;
  text-align: left;
}

.result p {
  font-size: 20px;
  margin: 8px 0;
}

.additional-info {
  margin-top: 30px;
}

.info-button {
  background-color: #1E90FF;
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  margin-left: 15px;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s, transform 0.3s;
}

.info-button:hover {
  background-color: #00BFFF;
  transform: scale(1.1);
}

.info-content {
  margin-top: 15px;
  background-color: rgba(255,255,255,0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.local-results ul {
  list-style: none;
  padding: 0;
}

.local-results li {
  background-color: rgba(255,255,255,0.9);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.autocomplete-results {
  border: 1px solid #ccc;
  background: #fff;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 90%;
  z-index: 1000;
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background-color: #f0f0f0;
}

.selected-address {
  margin-top: 8px;
  padding: 6px;
  background-color: #e7f3ff;
  border: 1px solid #b3d4fc;
}

.no-results {
  margin-top: 20px;
  padding: 10px;
  color: #444;
  background-color: #ffe6e6;
  border: 1px solid #ffcccc;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.compact-table th,
.compact-table td {
  border: 1px solid #1E90FF;
  padding: 6px 8px;
  text-align: left;
  font-size: 12px;
}

.compact-table th {
  background-color: rgba(30,144,255,0.1);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pagination a, .pagination span {
  color: #1E90FF;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid #ddd;
  margin: 0 4px;
  font-size: 12px;
}

.pagination a:hover {
  background-color: #ddd;
}

.pagination .active {
  background-color: #1E90FF;
  color: white;
  border: 1px solid #1E90FF;
}

footer {
  background: linear-gradient(135deg, rgba(0,0,0,0), rgba(0,0,0,0.6));
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  backdrop-filter: blur(10px);
  margin-top: auto;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    margin: 30px 20px;
    padding: 20px 15px;
  }
  .nav-logo {
    width: 120px;
  }
  button, .details-button, .admin-button, .logout-button {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  .info-button {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .compact-table th, .compact-table td {
    font-size: 11px;
    padding: 5px 6px;
  }
  .pagination a, .pagination span {
    font-size: 11px;
    padding: 5px 8px;
  }
}

@media (max-width: 576px) {
  .container {
    margin: 20px 10px;
    padding: 15px 10px;
  }
  h1, h2, h3 {
    font-size: 1.5rem;
  }
  .result p {
    font-size: 1rem;
  }
}
