/* ================= GLOBAL ================= */
body {
  background-color: #f4f6f9;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ================= MAIN CONTENT FIX ================= */
/* base.html usually gives sidebar width ~250px */
.main {
  margin-left: 260px;
  padding: 40px 30px;
}

/* ================= CARD / CONTAINER ================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  padding: 35px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* ================= HEADING ================= */
.container h2 {
  text-align: center;
  color: #0d6efd;
  font-size: 26px;
  margin-bottom: 30px;
}

/* ================= FILTER FORM ================= */
form {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

form label {
  font-size: 14px;
  font-weight: 500;
}

form select {
  width: 220px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 14px;
}

/* APPLY BUTTON (GREEN) */
form button {
  background-color: #28a745;
  color: #ffffff;
  border: none;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

form button:hover {
  background-color: #218838;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background-color: #0d6efd;
  color: #ffffff;
}

thead th {
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
}

tbody td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #e3e6ea;
}

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

tbody tr:hover {
  background-color: #eef4ff;
}

/* ================= ACTION LINKS ================= */
table a {
  text-decoration: none;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-block;
}

/* Download button */
table a[href*="download"] {
  background-color: #17a2b8;
}

table a[href*="download"]:hover {
  background-color: #138496;
}

/* View button */
table a[href*="view"] {
  background-color: #20c997;
}

table a[href*="view"]:hover {
  background-color: #17a589;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .main {
    margin-left: 0;
    padding: 20px;
  }

  form {
    flex-direction: column;
    align-items: stretch;
  }

  form select,
  form button {
    width: 100%;
  }
}