/* ================= RESET ================= */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: linear-gradient(135deg, #eef7ff, #f9fdff);
  color: #333;
}

/* ================= PAGE WRAPPER ================= */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= NAVBAR ================= */
.navbar {
  background: linear-gradient(90deg, #0d6efd, #0aa2ff);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar h1 {
  font-size: 20px;
  color: #fff;
}

.login-btn {
  background: #ffffff;
  color: #0d6efd;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s;
}

.login-btn:hover {
  background: #e7f1ff;
}

/* ================= TABLE ================= */
.table-wrapper {
  flex: 1;
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

caption {
  caption-side: top;
  text-align: left;
  padding: 14px;
  font-weight: 600;
  color: #0d6efd;
}

th {
  background: #0d6efd;
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
}

td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid #eef3ff;
}

tr:hover td {
  background: #f6faff;
}

/* ================= BUTTON ================= */
.view-btn {
  background: linear-gradient(90deg, #0d6efd, #0aa2ff);
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}

.view-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0d6efd;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
}

.site-footer .footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  transition: 0.25s;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
  table, thead, tbody, tr, td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    background: #fff;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 8px 0;
  }

  td {
    display: grid;
    grid-template-columns: 140px auto;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px dashed #e5efff;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }

  td[data-label="Action"] {
    text-align: right;
    grid-template-columns: auto;
    padding-top: 14px;
  }

  .view-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
}
