/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f4f6f9;
  color: #2c3e50;
  line-height: 1.6;
}

/* Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2c3e50;
  color: white;
  padding: 15px 30px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.topbar .logo {
  height: 60px;
  margin-right: 15px;
}

.topbar h1 {
  flex: 1;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}

.topbar .login-btn {
  background: #198754;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
}
.topbar .login-btn:hover {
  background: #145c32;
}

/* Layout utama */
.container {
  display: flex;
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 15px;
}

/* Form kiri */
.form-left {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.form-left form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-left label {
  font-weight: 600;
}

.form-left input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.btn-save {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}
.btn-save:hover {
  background: #0056b3;
}

/* Tabel kanan */
.table-right {
  flex: 2;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.table-right h2 {
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
}

.table-right table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-right th, .table-right td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.table-right th {
  background: #2c3e50;
  color: white;
}

/* Status */
.status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.status.allow {
  background: #198754;
  color: white;
}

.status.process {
  background: #dc3545;
  color: white;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }

  .form-left, .table-right {
    width: 100%;
  }
}

@media (max-width: 768px) {
    .container {
    flex-direction: column;
  }

  .form-left, .table-right {
    width: 100%;
  }
  
  /* ubah tabel jadi card */
  .table-right table,
  .table-right thead,
  .table-right tbody,
  .table-right th,
  .table-right td,
  .table-right tr {
    display: block;
    width: 100%;
  }

  .table-right thead {
    display: none;
  }

  .table-right tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    background: #fff;
  }

  .table-right td {
    border: none;
    text-align: left;
    padding: 8px 10px;
    position: relative;
  }

  .table-right td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
  }
}
