/* ===== Global Styles ===== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.login-btn {
  background: none;
  border: 1px solid #333;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: 0.3s;
}
.login-btn:hover {
  background: #333;
  color: #fff;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #2c3e50;
}

/* ===== Start Button ===== */
.start-btn {
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}
.start-btn:hover {
  transform: scale(1.05);
  background: #218838;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===== History Section ===== */
.history-section {
  width: 100%;
  max-width: 900px;
  margin-top: 3rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.history-section h2 {
  margin-bottom: 1rem;
  color: #34495e;
}

/* Search Input */
#search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#search-input:focus {
  border-color: #28a745;
  box-shadow: 0 0 5px rgba(40,167,69,0.3);
  outline: none;
}

/* ===== Table ===== */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.history-table th,
.history-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.history-table th {
  background: #f8f8f8;
  color: #2c3e50;
  font-weight: 600;
}

.history-table tr:nth-child(even) {
  background: #fafafa;
}

.history-table tr:hover {
  background: #f1f5f9;
}

/* ===== Status Badges ===== */
.status {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 40px;
  min-width: 90px;
  color: #fff;
  text-align: center;
}

.menunggu { background: #ffc107; color: #000; }
.verifikasi { background: #9c27b0; }
.selesai { background: #28a745; }
.ditolak { background: #dc3545; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .title { font-size: 2rem; }
  .start-btn { width: 100%; }

  /* Table becomes card-like */
  .history-table,
  .history-table thead,
  .history-table tbody,
  .history-table th,
  .history-table td,
  .history-table tr {
    display: block;
    width: 100%;
  }

  .history-table thead {
    display: none;
  }

  .history-table tr {
    margin-bottom: 1rem;
    background: #fefefe;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .history-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border: none;
  }

  .history-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }
}

@media (max-width: 480px) {
  .title { font-size: 1.75rem; }
  #search-input { font-size: 0.9rem; }
}
