/* Tombol icon notif */
.notif-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  line-height: 1;
}

/* Icon lucide hasil render */
#notifBtn svg {
  width: 30px !important;
  height: 30px !important;
  color: #fff;
}

/* Badge jumlah notif */
.notif-count {
  position: absolute;
  top: -8px;     /* naik ke atas */
  right: 0px;    /* pas di pojok kanan */
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Dot merah di tombol */
.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.notif-dropdown {
  position: fixed;                  /* tempel ke viewport */
  top: 50%;                         /* vertikal tengah */
  left: 50%;                        /* horizontal tengah */
  transform: translate(-50%, -50%); /* geser supaya benar-benar center */
  width: 90%;                       /* hampir penuh layar HP */
  max-width: 400px;                 /* batas maksimal di layar besar */
  max-height: 80vh;                 /* tinggi maksimal */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 9999;                    /* pastikan di atas elemen lain */
  overflow: hidden;
}


/* Heading */
.notif-dropdown h3 {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin: 12px 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  text-align: left;
  letter-spacing: 0.5px;
}

/* Isi notifikasi dengan scroll */
.notif-content {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Scrollbar */
.notif-content::-webkit-scrollbar { width: 6px; }
.notif-content::-webkit-scrollbar-thumb {
  background-color: #06b6d4;
  border-radius: 12px;
}
.notif-content { scrollbar-width: thin; scrollbar-color: #06b6d4 transparent; }

/* Tombol close */
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}
.close-btn:hover { color: #ef4444; }

/* Card notifikasi */
.notif-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.notif-card:hover { transform: translateY(-2px); }
.notif-card.belum { background-color: #E6F5F2; border-left: 4px solid #366CFF; }
.notif-card.sudah { background-color: #F5E9E6; border-left: 4px solid #7f8c8d; color: #555; }

.notif-title { font-weight: bold; font-size: 14px; margin-bottom: 4px; color: #111827; }
.notif-body { font-size: 13px; color: #374151; margin-bottom: 6px; }
.notif-date { font-size: 11px; color: #6b7280; display: block; text-align: right; }

/* Badge jumlah notifikasi */
.notif-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Link */
.notif-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #06b6d4;
  text-decoration: none;
  margin-top: 6px;
}
.notif-link:hover { color: #0e7490; text-decoration: underline; }

/* Status */
.notif-status {
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  margin: 8px 0;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
.notif-status.belum { background: rgba(156,163,175,0.3); }
.notif-status.sudah { background: rgba(156,163,175,0.3); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.pagination button {
  padding: 6px 12px;
  background-color: #2d6cdf;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s ease;
}
.pagination button:hover:not(:disabled) { background-color: #1a4fa3; }
.pagination button:disabled { background-color: #ccc; cursor: not-allowed; }
.pagination span { font-size: 13px; color: #333; }

/* Heading dengan icon */
.notif-heading {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
}
.notif-heading .notif-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.hidden {
  display: none !important;
}
