/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #fefcf5, #f4efe6);
  margin: 0;
  padding: 0;
}

header {
  background: linear-gradient(135deg, #a17c6b, #d3bfa6);
  color: #fff;
  padding: 30px 10%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: relative;
  overflow: hidden;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1s ease-out;
}

/* Main container */
main {
  padding: 30px 20px;
  max-width: 1000px;
  margin: 30px auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Filter Dropdown */
.filter-container {
  margin-bottom: 25px;
  text-align: right;
}

select {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  background: #d3bfa6;
  color: #5b4636;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

select:hover {
  transform: scale(1.05);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff; /* White table rows */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

th,
td {
  padding: 18px;
  text-align: left;
}

th {
  background: #a17c6b;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}

tr:nth-child(even) {
  background-color: #fdf9f4;
}

tr:nth-child(odd) {
  background-color: #f7f1e8;
}

tr {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s forwards;
}

tr:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  background-color: #e8dfd3; /* Light natural hover */
}

a {
  color: #5b4636;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

a:hover {
  color: #8c6b4f;
  text-decoration: underline;
}

/* Responsive Table */
@media (max-width: 768px) {
  main {
    padding: 20px 10px;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  th {
    display: none;
  }
  tr {
    margin-bottom: 18px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 12px;
  }
  td {
    padding-left: 50%;
    position: relative;
    background-color: #ffffff;
    margin-bottom: 8px;
    border-radius: 8px;
  }
  td:before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: #5b4636;
  }
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delay */
tbody tr:nth-child(1) {
  animation-delay: 0.1s;
}
tbody tr:nth-child(2) {
  animation-delay: 0.2s;
}
tbody tr:nth-child(3) {
  animation-delay: 0.3s;
}
tbody tr:nth-child(4) {
  animation-delay: 0.4s;
}
tbody tr:nth-child(5) {
  animation-delay: 0.5s;
}
tbody tr:nth-child(6) {
  animation-delay: 0.6s;
}
tbody tr:nth-child(7) {
  animation-delay: 0.7s;
}
tbody tr:nth-child(8) {
  animation-delay: 0.8s;
}
tbody tr:nth-child(9) {
  animation-delay: 0.9s;
}
tbody tr:nth-child(10) {
  animation-delay: 1s;
}
tbody tr:nth-child(11) {
  animation-delay: 1.1s;
}
tbody tr:nth-child(12) {
  animation-delay: 1.2s;
}
tbody tr:nth-child(13) {
  animation-delay: 1.3s;
}
tbody tr:nth-child(14) {
  animation-delay: 1.4s;
}
tbody tr:nth-child(15) {
  animation-delay: 1.5s;
}
tbody tr:nth-child(16) {
  animation-delay: 1.6s;
}
tbody tr:nth-child(17) {
  animation-delay: 1.7s;
}
tbody tr:nth-child(18) {
  animation-delay: 1.8s;
}
tbody tr:nth-child(19) {
  animation-delay: 1.9s;
}
tbody tr:nth-child(20) {
  animation-delay: 2s;
}
