@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: #d3d5d3;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.container {
  max-width: 1400px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2,
h3 {
  text-align: center;
  color: #b30000;
}
.form-group {
  margin-bottom: 15px;
}
label {
  font-weight: bold;
  display: block;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  font-family: 'Poppins', sans-serif; /* Ditambahkan */
  font-weight: 100;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #b30000;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  margin: 5px 0;
  transition: background 0.2s;
}
button:hover {
  background-color: #800000;
}
.hidden {
  display: none !important;
}
.dashboard-menu {
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap; 
  justify-content: space-between; 
  gap: 15px; 
  margin: 40px 0;
}
.card-btn {
  background: #fff;
  border: 2px solid #b30000;
  color: #b30000;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 1.2rem;
  font-weight: lighter;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  flex-basis: 48%;
  box-sizing: border-box; 
}

.card-btn:hover {
  background: #b30000;
  color: #fff;
  transform: translateY(-3px) scale(1.03);
}
.logout-btn {
  float: left;
  background: #d3d5d3;
  color: #b30000;
  font-weight: lighter;
  margin-top: -20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #f2f2f2;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: #b30000;
  color: white;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: white;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: #ccc;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #218838;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Status styling */
.status-show {
  background-color: #d4edda;
  color: #155724;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.status-no-show {
  background-color: #f8d7da;
  color: #721c24;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.status-reschedule {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.status- {
  background-color: #f8f9fa;
  color: #6c757d;
  padding: 2px 6px;
  border-radius: 3px;
  font-style: italic;
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }
  .dashboard-menu {
    flex-direction: column;
    gap: 15px;
  }
  .card-btn {
    width: 100%;
    padding: 20px 0;
  }
  .modal-content {
    width: 95%;
    margin: 10px;
  }
}

#rekapTotalTableContainer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#rekapTotalTableContainer th,
#rekapTotalTableContainer td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

#rekapTotalTableContainer th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #333;
}

.status-show {
  color: white;
  background-color: green;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.status-no-show {
  color: white;
  background-color: red;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.status-default {
  color: black;
  background-color: #ccc;
  padding: 2px 6px;
  border-radius: 4px;
}

.action-btn {
  padding: 8px 8px;
  width: 115px; 
  margin: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.kedatangan-btn {
  background-color: #28a745;
  color: white;
  border: none;
}