@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.5),
      /* Top gradient color with transparency */ rgba(0, 0, 0, 0.5)
        /* Bottom gradient color with transparency */
    ),
    url("./assets/bg.jpg"); /* Background image path */
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.formInput {
  height: 55px;
  border-radius: 0;
  font-weight: 600;
}
.formInput::placeholder {
  color: #999;
  font-weight: 400;
}
.form-label {
  color: #1a2554;
  font-weight: 500;
}
.btn {
  height: 55px;
  border-radius: 0;
  font-weight: 500;
  text-transform: uppercase;
}

.btn-pay {
  background-color: #342f73 !important;
  color: #ffc107;
}
.btn-pay:hover {
  color: #ffc107;
}
.text-pbn {
  color: #342f73;
}
/* LOGIN PAGE STYLES */
body.login-page {
  background: #1a2554;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  border: 4px solid #e5c97b;
  transition: width 0.2s, height 0.2s;
}
.login-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px 32px 32px 32px;
  max-width: 400px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.login-label {
  font-size: 1rem;
  color: #1a2554;
  margin-bottom: 10px;
  align-self: flex-start;
}
.login-input {
  width: 100%;
  padding: 18px 12px;
  font-size: 1.1rem;
  border: 1px solid #bfc5d2;
  border-radius: 3px;
  margin-bottom: 24px;
  box-sizing: border-box;
  background: #fff;
  color: #1a2554;
}
.login-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 18px 0;
  background: #1a2554;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.login-btn:hover {
  background: #22306b;
}
@media (max-width: 700px) {
  .login-container {
    max-width: 95vw;
    padding: 32px 4vw 24px 4vw;
  }
  .logo img {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 500px) {
  body.login-page {
    padding: 0 0;
  }
  .login-container {
    padding: 18px 2vw 18px 2vw;
    max-width: 99vw;
  }
  .logo img {
    width: 60px;
    height: 60px;
  }
  .login-label,
  .login-btn,
  .login-input {
    font-size: 0.98rem;
  }
}
@media (max-width: 350px) {
  .login-container {
    padding: 12px;
  }
  .logo img {
    width: 40px;
    height: 40px;
  }
}

/* DASHBOARD PAGE STYLES */
.dashboard-page {
  background-color: #1a2554;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 16px 40px;
  background: #fff;
  border-bottom: 2px solid #d3d7e3;
  flex-wrap: wrap;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-logo {
  width: 160px;
  /* height: 120px; */
  /* border-radius: 50%; */
  background: #fff;
  object-fit: contain;
  /* border: 3px solid #e5c97b; */
}
.header-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.header-stats {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2554;
}
.stat-label {
  font-size: 1rem;
  color: #6b6f7c;
}
.stat.total {
  position: relative;
}
.stat.total::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -20px;
  bottom: 0;
  width: 1px;
  background: #d3d7e3;
}
.header-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: baseline;
}
.refresh-btn {
  background: #1a2554;
  color: #fff;
  border: 2px solid #1a2554;
  border-radius: 3px;
  padding: 10px 32px;
  min-width: 130px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.refresh-btn:hover {
  background: #22306b;
}
.logout-btn {
  background: #fff;
  color: #d32f2f;
  border: 2px solid #d32f2f;
  border-radius: 3px;
  padding: 10px 32px;
  min-width: 130px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.logout-btn:hover {
  background: #d32f2f;
  color: #fff;
}
.content {
  margin: 32px auto 0 auto;
  width: 96vw;
}
.table-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  margin: 24px auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
thead tr {
  background: #bfc5d2;
}
th,
td {
  padding: 18px 12px;
  text-align: left;
  font-size: 1rem;
}
th {
  color: #1a2554;
  font-weight: 600;
}
td {
  border-bottom: 1px solid #e5e7ef;
  vertical-align: middle;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #e5c97b;
}
.name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 1400px) {
  .table-container {
    max-width: 99vw;
  }
}
@media (max-width: 1200px) {
  .header {
    align-items: flex-start;
    gap: 18px;
    padding: 18px 10px 10px 10px;
  }
  .header-stats {
    gap: 24px;
  }
  .table-container {
    margin: 18px 0 0 0;
    width: 100vw;
    border-radius: 0;
  }
  table {
    min-width: 700px;
  }
  .stat.total::before {
    left: -12px;
  }
}
@media (max-width: 900px) {
  .header-title {
    font-size: 1.1rem;
  }
  .stat-value {
    font-size: 1.3rem;
  }
  .header-stats {
    gap: 12px;
  }
  th,
  td {
    padding: 10px 6px;
    font-size: 0.95rem;
  }
  .avatar {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 600px) {
  .header {
    padding: 8px 2vw 8px 2vw;
  }
  .header-left {
    gap: 8px;
  }
  .header-title {
    font-size: 1rem;
  }
  .header-stats {
    gap: 8px;
  }
  .table-container {
    margin: 8px 0 0 0;
  }
  table {
    min-width: 500px;
  }
}
