/* history.css - KOD ASAL REKA BENTUK ANDA DIBETULKAN KEMAS */

.history-container {
  max-width: 900px;
  margin: 140px auto 60px auto; 
  padding: 0 20px;
  min-height: 60vh;
}

/* GLASS CONTAINER UTAMA */
.glass-main-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.history-title-section {
  text-align: center;
  margin-bottom: 35px;
}

.history-title-section h2 {
  font-size: 2.2rem;
  color: #1a4f76; /* Ditukar ke Biru Utama sepadan tajuk baharu */
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.history-subtitle {
  color: #64748b;
  font-size: 1.05rem;
}

.history-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* KAD DETAIL BOOKING */
.booking-history-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.booking-history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.booking-details h3 {
  color: #1e293b;
  font-size: 1.35rem;
  font-weight: 600;
}

.booking-meta-info {
  display: flex;
  flex-direction: column; /* Disusun menegak ke bawah supaya lebih teratur */
  gap: 6px;
  color: #475569;
  font-size: 0.92rem;
}

.booking-meta-info span strong {
  color: #1e293b;
}

.booking-status-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 170px;
}

/* BADGE STATUS: Dikecilkan saiznya untuk dipadankan di tepi teks urutan */
.status-badge {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: fit-content;
}

/* Status: Pending (Diproses) */
.status-badge.diproses {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

/* ANIMASI LOADING DOT (Kekal Berfungsi Lancar) */
.status-badge.diproses::before {
  content: "";
  width: 7px;
  height: 7px;
  background-color: #b45309;
  border-radius: 50%;
  display: inline-block;
  animation: pulseLoading 1.2s infinite ease-in-out;
}

/* Status: Disahkan (Selesai) */
.status-badge.disahkan {
  background: #f0fdf4;
  color: #10b981;
  border: 1px solid #bbf7d0;
}

@keyframes pulseLoading {
  0% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.7); opacity: 0.4; }
}

/* BUTANG AKSES: Diselaraskan semuanya ke reka bentuk gradient biru padat premium */
.btn-hubungi-admin {
  background: linear-gradient(180deg, #3275ca 0%, #1a4f76 100%) !important;
  color: #ffffff !important;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
  border: none;
  box-shadow: 0 4px 12px rgba(26, 79, 118, 0.2);
  cursor: pointer;
}

.btn-hubungi-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 79, 118, 0.35);
  opacity: 0.95;
}

.no-data-box {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

.no-data-box p {
  margin-bottom: 20px;
  font-style: italic;
}

.btn-kembali-utama {
  display: inline-block;
  background: #10b981;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-kembali-utama:hover {
  background: #059669;
}

@media (max-width: 768px) {
  .history-container { margin-top: 170px; }
  .glass-main-card { padding: 25px 15px; }
  .booking-history-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .booking-status-side { align-items: flex-start; width: 100%; }
}