/* ======== RESET ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(180deg, #0f2027, #203a43, #2c5364);
  color: #e9f5ec;
  min-height: 100vh;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ======== CONTAINER ======== */
.container {
  width: 100%;
  max-width: 950px;
  margin: auto;
}

/* ======== HEADER ======== */
.header {
  text-align: center;
  margin-bottom: 16px;
}

.header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: #00e676;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
  font-weight: 600;
}

.header p {
  color: #cfd8dc;
  font-size: 0.9rem;
  font-weight: 400;
}

/* ======== STATS ======== */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.stat-card {
  flex: 1 1 120px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 6px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.08);
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

.stat-card h3 {
  font-size: 0.8rem;
  color: #b2dfdb;
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-card .number {
  font-size: 1.3rem;
  font-weight: 600;
  color: #00e676;
}

/* ======== FILTERS ======== */
.filters {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}

.filters label,
.filters span {
  font-weight: 600;
  color: #00e676;
  font-size: 0.8rem;
}

.filters input,
.filters select {
  padding: 8px;
  background: #0f2027;
  border: 1px solid #00e676;
  border-radius: 8px;
  color: white;
  font-size: 0.8rem;
}

.filters button {
  padding: 8px 14px;
  background: #00e676;
  color: #0f2027;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.8rem;
}

.filters button:hover {
  background: #69f0ae;
  transform: scale(1.03);
}

/* ======== TABLE ======== */
.table-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.1);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 550px;
}

thead {
  background: #00e676;
  color: #0f2027;
}

th,
td {
  padding: 10px 12px;
  font-size: 0.8rem;
  text-align: left;
  font-weight: 400;
}

tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:hover {
  background: rgba(0, 230, 118, 0.08);
}

.status-badge {
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-diterima {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid #00e676;
}

.status-ditolak {
  background: rgba(255, 82, 82, 0.15);
  color: #ff5252;
  border: 1px solid #ff5252;
}

/* ======== REFRESH BUTTON ======== */
.refresh-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 50px;
  height: 50px;
  background: #00e676;
  color: #0f2027;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  transition: 0.3s;
}

.refresh-btn:hover {
  transform: scale(1.1);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  body {
    padding: 8px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .filters label,
  .filters span {
    font-size: 0.75rem;
    text-align: center;
  }

  .filters input,
  .filters select,
  .filters button {
    width: 100%;
  }

  .stats {
    flex-wrap: wrap;
    gap: 6px;
  }

  .stat-card {
    flex: 1 1 calc(33.3% - 6px);
    padding: 8px 6px;
  }

  th,
  td {
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .refresh-btn {
    bottom: 12px;
    right: 12px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}
