.swal2-container.swal2-bottom-end {
  padding: 1rem;
}

.notification-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.notification-toggle:hover,
.notification-toggle:focus-visible {
  background: #f1f5f9;
}

.notification-badge {
  position: absolute !important;
  top: 1px;
  right: 0;
  min-width: 18px;
  padding: 0.25em 0.45em;
  font-size: 0.65rem;
}

.notification-menu {
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(440px, calc(100vh - 90px));
  overflow: hidden;
}

.notification-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #e5e7eb;
}

.notification-menu-header strong {
  color: #172033;
  font-size: 0.9rem;
}

.notification-menu-header .btn {
  color: #2563eb !important;
  font-size: 0.78rem;
}

.notification-list {
  max-height: min(360px, calc(100vh - 170px));
  overflow-y: auto;
}

.notification-item {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  color: #334155;
  text-align: left;
  white-space: normal;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.unread {
  background: #eff6ff;
}

.notification-item-details {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notification-item-time {
  display: block;
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.72rem;
}

.notification-empty {
  padding: 1.25rem 0.8rem;
  color: #64748b;
  font-size: 0.82rem;
  text-align: center;
}

.notification-error {
  padding: 0.6rem 0.8rem;
  color: #b91c1c;
  font-size: 0.78rem;
}

.swal2-popup.swal2-toast.app-toast {
  width: min(24rem, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.swal2-popup.swal2-toast.app-toast .swal2-title {
  color: #172033;
  font-size: 0.95rem;
  font-weight: 600;
}

.swal2-popup.swal2-toast.app-toast .swal2-html-container {
  color: #64748b;
  font-size: 0.84rem;
}

.swal2-popup.swal2-toast.app-toast .swal2-timer-progress-bar {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

@media (max-width: 575.98px) {
  .swal2-container.swal2-bottom-end {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.75rem;
  }

  .swal2-popup.swal2-toast.app-toast {
    width: 100%;
  }
}
