body{
  height: 100%;
  margin: 0;
}

.notification-container {
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 15px 15px 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);

  /* Biến container thành layout cột: header + list (cuộn) + nút load-more */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh); /* chừa header + một ít khoảng dưới trong modal */
}

/* --- App dropdown (Tất cả ứng dụng) --- */
.app-dropdown-toggle {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f9fafb;
  font-size: 13px;
}

.app-dropdown-toggle:hover,
.app-dropdown.show .app-dropdown-toggle {
  background-color: #eef2ff;
  border-color: #6366f1;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

/* Trạng thái filter đang là trang hiện tại: chỉ hiển thị như label, không hover/click */
.app-dropdown-toggle[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
  background-color: #f9fafb;
  border-color: #e5e7eb;
  box-shadow: none;
}

.app-dropdown-toggle[aria-disabled="true"]:hover {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  box-shadow: none;
}

.app-dropdown-icon {
  font-size: 14px;
}

.app-dropdown-menu {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  padding: 6px 0;
  font-size: 13px;
}

.app-dropdown-menu .dropdown-item {
  padding: 6px 14px;
}

.app-dropdown-menu .dropdown-item:hover {
  background-color: #eef2ff;
  color: #111827;
}

/* --- Notification item --- */
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e0f2fe; /* Unread: xanh nhạt hơn, nổi hơn */
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 2px; /* Giảm khoảng trắng giữa các thông báo */
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-item:active {
  transform: scale(0.98);
  animation: clickPulse 0.4s ease-out;
}

.notification-item.is-read {
  background: #f9fafb; /* Đọc rồi: nền xám rất nhạt */
}

@keyframes clickPulse {
  0% {
    transform: scale(0.98);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.notification-item .avatar {
  width: 34px;   /* tăng ~20-25% từ 28px */
  height: 34px;
  border-radius: 50%;
  margin-right: 10px;
}

.notification-item .module-icon {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  flex-shrink: 0;
}

.notification-item .content {
  flex-grow: 1;
}

.notification-item p {
  margin: 0;
  font-size: 14px;
}

.notification-item small {
  color: #777;
}

.time-ago {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}


.notification-container {
  height: 100%;
  background: #fff;
  border-radius: 8px;
  max-width: 900px;
  margin: auto;
}
.notification-item:hover {
  background-color: #dbeafe !important;
}
.date-header {
  position: relative;
  display: flex;
  align-items: center;
  margin: 8px 0 4px; /* Giảm khoảng cách trên/dưới giữa các group ngày */
  font-size: 13px;
  color: #6b7280;
}

.date-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.18), transparent);
  z-index: 0;
}

.date-header .date-label,
.date-header .date-ago {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 0 6px;
}

.date-header .date-label {
  font-weight: 600;
  color: #374151;
}

.date-header .date-ago {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
}

.nav-tabs {
  margin-bottom: 0 !important;
  border-bottom: 1px solid #dee2e6;
  padding: 0;
}

.nav-tabs .nav-link {
  padding: 0.5rem 0.75rem !important;
  font-size: 14px;
  color: #6c757d;
}

.notifications-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Wrapper nút Xem thêm luôn nằm sát dưới container, không bị trôi quá xa */
#load-more-wrapper {
  flex-shrink: 0;
  margin-top: 8px;
}