/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e6ebf9 0%, #f4f8fb 100%);
  color: #0b1a3d; /* Dark Navy Blue */
  margin: 10px auto;
  padding: 10px;
  line-height: 1.6;
}

/* Headings */
h1, h2 {
  background: #001f4d; /* Navy Blue */
  color: #ffffff;
  padding: 14px 24px;
  margin: 0 0 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 31, 77, 0.3);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Navigation */
nav {
  background-color: #002855; /* Navy */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  gap: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 40 90 / 0.25);
  margin-bottom: 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

nav a {
  color: #e1e8ff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

nav a:hover,
nav a:focus-visible {
  background-color: #001f4d;
  color: #ffffff;
  outline-offset: 3px;
  outline: 3px solid #ffcc00;
}

/* Form Styles */
form {
  background: #f9fbffcc; /* Slightly transparent very light blue */
  padding: 25px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 50, 0.07);
  max-width: 850px;
  margin: 0 auto 40px;
  transition: box-shadow 0.3s ease;
}

form:hover,
form:focus-within {
  box-shadow: 0 12px 28px rgba(0, 0, 50, 0.12);
}

form select,
form input,
form button {
  padding: 14px 16px;
  font-size: 16px;
  border: 1.8px solid #aac4ff; /* Light Navy */
  border-radius: 8px;
  box-shadow: inset 0 2px 6px #d9e4ff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 180px;
}

form select:focus,
form input:focus {
  border-color: #001f4d; /* Navy Blue */
  box-shadow: 0 0 8px #001f4daa;
  outline: none;
}

form button {
  background-color: #001f4d; /* Navy Blue */
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 31, 77, 0.35);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  min-width: 140px;
}

form button:hover,
form button:focus {
  background-color: #000c29; /* Darker Navy */
  box-shadow: 0 8px 20px rgba(0, 12, 41, 0.7);
  outline: none;
}

/* Table Styles */
table {
  width: 95%;
  margin: 25px auto 50px;
  border-collapse: separate;
  border-spacing: 0 10px;
  background-color: transparent;
}

table th,
table td {
  padding: 14px 20px;
  text-align: left;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 31, 77, 0.1);
  border: none;
}

table th {
  background-color: #001f4d; /* Navy Blue */
  color: white;
  font-weight: 600;
  letter-spacing: 0.03em;
}

tr:hover td {
  background-color: #d3e0ff; /* Light Navy Hover */
  box-shadow: 0 5px 15px rgba(0, 31, 77, 0.25);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Footer */
footer {
  background: #000c29; /* Dark Navy */
  color: #cdd6f4; /* Soft Light Blue */
  text-align: center;
  padding: 18px 20px;
  margin-top: 50px;
  font-size: 0.95em;
  border-radius: 0 0 15px 15px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 20, 0.15);
}

/* Responsive Design */
@media (max-width: 600px) {
  form {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  form select,
  form input,
  form button {
    min-width: auto;
    width: 100%;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 18px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 3px 12px rgba(0, 31, 77, 0.1);
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border: none;
    box-shadow: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #001f4d; /* Navy Blue */
    flex: 1;
  }

  td:last-child {
    flex: 1.5;
  }
}
