.admin-notification-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  vertical-align: middle;
}

.admin-notification-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe4ff;
  border-radius: 50%;
  background: #eef2ff;
  color: #355ce4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(53, 92, 228, 0.12);
}

.admin-notification-button:hover,
.admin-notification-button.is-open {
  background: #dbe4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 92, 228, 0.18);
}

.admin-notification-button.has-unread {
  animation: admin-bell-shake 0.8s ease;
}

.admin-notification-button svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.admin-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ce181e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  animation: admin-badge-pop 0.35s ease;
}

.admin-notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe1f1;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(28, 39, 76, 0.16);
  z-index: 100000;
  transform-origin: top right;
  animation: admin-panel-in 0.25s ease;
}

.admin-notification-panel.hidden {
  display: none;
}

.admin-notification-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f7;
}

.admin-notification-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1c274c;
}

.admin-notification-header-title svg {
  width: 18px;
  height: 18px;
  color: #355ce4;
}

.admin-notification-close-all {
  border: none;
  background: transparent;
  color: #355ce4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.admin-notification-close-all.is-disabled {
  color: #98a2b3;
  cursor: default;
}

.admin-notification-empty {
  padding: 28px 16px;
  text-align: center;
  color: #5d6682;
  font-size: 13px;
}

.admin-notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f3f8;
  animation: admin-item-in 0.3s ease;
}

.admin-notification-item.unread {
  background: #fff7f7;
}

.admin-notification-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdecec;
  color: #ce181e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-notification-icon svg {
  width: 18px;
  height: 18px;
}

.admin-notification-content {
  flex: 1;
  min-width: 0;
}

.admin-notification-message {
  font-size: 13px;
  line-height: 1.5;
  color: #1c274c;
  margin-bottom: 6px;
}

.admin-notification-time {
  font-size: 12px;
  color: #5d6682;
}

.admin-notification-close {
  border: 1px solid #d0d5dd;
  background: #f2f4f7;
  color: #344054;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.admin-notification-close span {
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  margin-top: -2px;
}

.admin-notification-close:hover {
  background: #e4e7ec;
  border-color: #98a2b3;
  color: #1c274c;
}

.admin-notification-close svg {
  width: 14px;
  height: 14px;
}

.admin-notification-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
  max-width: 380px;
  pointer-events: none;
}

.admin-notification-toast-item {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  color: #1c274c;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid #f5c2c0;
  border-left: 4px solid #ce181e;
  box-shadow: 0 12px 30px rgba(28, 39, 76, 0.16);
  animation: admin-toast-in 0.35s ease;
}

.admin-notification-toast-item.is-closing {
  animation: admin-toast-out 0.25s ease forwards;
}

.admin-notification-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdecec;
  color: #ce181e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-notification-toast-icon svg {
  width: 18px;
  height: 18px;
}

.admin-notification-toast-body {
  flex: 1;
  min-width: 0;
}

.admin-notification-toast-message {
  font-size: 13px;
  line-height: 1.5;
  color: #1c274c;
}

.admin-notification-toast-time {
  margin-top: 6px;
  font-size: 12px;
  color: #5d6682;
}

.admin-notification-toast-close {
  border: 1px solid #d0d5dd;
  background: #f2f4f7;
  color: #344054;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.admin-notification-toast-close span {
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  margin-top: -2px;
}

.admin-notification-toast-close:hover {
  background: #e4e7ec;
  border-color: #98a2b3;
  color: #1c274c;
}

.admin-notification-toast-close svg {
  width: 16px;
  height: 16px;
}

@keyframes admin-toast-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes admin-toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

@keyframes admin-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes admin-item-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes admin-badge-pop {
  0% {
    transform: scale(0.6);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes admin-bell-shake {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(6deg);
  }
}
