/* notif.css */

/* Tombol utama */
.notif-btn {
  padding: 8px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  color: #cbd5e1;
  position: relative;
  transition: all 0.3s ease;
}
.notif-btn:hover {
  background: rgba(6, 182, 212, 0.2);
}

/* Dot merah di tombol */
.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.notif-dropdown {
  position: absolute;
  right: 0;
  margin-top: 8px;
  width: 400px;
  background: rgba(255, 255, 255, 0.25); /* lebih transparan */
  backdrop-filter: blur(12px) saturate(180%); /* blur + saturasi */
  -webkit-backdrop-filter: blur(12px) saturate(180%); /* Safari */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* garis tipis transparan */
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); /* bayangan halus */
  z-index: 50;
  padding: 0;
  overflow: hidden;
}


.notif-dropdown h3 {
  font-size: 16px;
  font-weight: bold;
  color: #fff;          /* warna teks lebih tegas */
  margin: 12px 16px;       /* jarak dari tepi */
  padding-bottom: 8px;     /* jarak bawah */
  border-bottom: 1px solid rgba(0,0,0,0.1); /* garis tipis pemisah */
  text-align: left;        /* rata kiri */
  letter-spacing: 0.5px;   /* spasi huruf sedikit */
}


/* Isi notifikasi dengan scroll */
.notif-content {
  padding: 16px;
  max-height: 73vh;   /* tinggi maksimal 60% layar */
  overflow-y: auto;   /* scroll vertikal */
  display: flex;
  flex-direction: column;
  gap: 12px;          /* jarak antar card */
}

/* Custom scrollbar Chrome/Edge/Safari */
.notif-content::-webkit-scrollbar {
  width: 6px;
}
.notif-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 12px;
}
.notif-content::-webkit-scrollbar-thumb {
  background-color: #06b6d4;
  border-radius: 12px;
}

/* Firefox scrollbar */
.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 { border-left: 4px solid #06b6d4; }
.notif-card.sudah { border-left: 4px solid #9ca3af; }

.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; }

.notif-status {
  font-weight: bold;
  font-size: 13px;
  color: #fff;                 /* teks putih */
  margin: 8px 0;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.notif-status.belum {
  background: rgba(156,163,175,0.3); /* abu transparan */
}

.notif-status.sudah {
  background: rgba(156,163,175,0.3); /* abu transparan */
}


/* gaya umum untuk pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pagination button {
  padding: 6px 12px;
  background-color: #2d6cdf; /* biru */
  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; /* biru lebih gelap */
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination span {
  font-size: 13px;
  color: #333;
}

/* box belum dibaca */
.notif-card.belum {
  background-color: #E6F5F2;   /* putih */
  border-left: 4px solid #366CFF; /* misalnya oranye */
}

/* box sudah dibaca */
.notif-card.sudah {
  background-color: #F5E9E6; /* abu-abu muda */
  border-left: 4px solid #7f8c8d; /* abu-abu tua */
  color: #555; /* teks agak redup */
}

.notif-heading {
  display: flex;
  align-items: center;   /* sejajarkan vertikal */
  font-size: 16px;
  font-weight: bold;
}

.notif-heading .notif-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;     /* jarak antara icon dan teks */
}
