/* ===== Popup Overlay ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.4s ease forwards;
}

/* ===== Kotak Popup ===== */
.popup-box {
  background: linear-gradient(160deg, #f9f4ef 0%, #fffaf5 100%);
  color: #3e2723;
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  max-width: 450px;
  width: 95%;
  border: 1px solid #e0c8b0;
  transform: translateY(40px) scale(0.9);
  opacity: 0;
  animation: popupEnter 0.45s ease forwards;
}

/* ===== Animasi ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popupEnter {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Header Popup ===== */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #d7ccc8;
  padding-bottom: 8px;
}
.popup-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #4e342e;
  letter-spacing: 0.5px;
}

/* ===== Tombol Tutup ===== */
.popup-close-btn {
  background: linear-gradient(135deg, #6d4c41, #8d6e63);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}
.popup-close-btn:hover {
  background: linear-gradient(135deg, #5d4037, #795548);
  transform: rotate(8deg) scale(1.05);
}

/* ===== Tabel Popup ===== */
.popup-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.popup-table th, .popup-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0c8b0;
}
.popup-table th {
  text-align: left;
  font-weight: 600;
  color: #6d4c41;
  background: #fbe9e7;
}
.popup-table td {
  text-align: right;
  color: #3e2723;
  background: #fffdfa;
}
.popup-table tr:hover td {
  background: #fff3e0;
  transition: background 0.3s ease;
}

/* ===== Tombol Lihat Menu Grid ===== */
.menu-buttons .btn-view {
  background: linear-gradient(135deg, #43a047, #66bb6a); /* hijau cantik */
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.menu-buttons .btn-view:hover {
  background: linear-gradient(135deg, #388e3c, #4caf50);
  transform: scale(1.05);
}
