/* ---------------------------------------------------------------------
 * ShefaNotify - app-wide notification badges (macOS / iOS style)
 * Clean frosted cards — no colored side border.
 * ------------------------------------------------------------------- */

#shefa-notify-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 340px;
  max-width: calc(100vw - 2rem);
  pointer-events: none;
}

.shefa-notify {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transform: translateY(-12px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
  overflow: hidden;
}

.shefa-notify.shefa-notify--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.shefa-notify.shefa-notify--leaving {
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
}

.shefa-notify__icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-top: 1px;
  width: 1.35rem;
  text-align: center;
}

.shefa-notify__body {
  flex: 1 1 auto;
  min-width: 0;
}

.shefa-notify__title {
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 0.12rem;
  letter-spacing: -0.01em;
}

.shefa-notify__message {
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 0;
  color: #4b5563;
  word-wrap: break-word;
}

.shefa-notify__close {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  color: #6b7280;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.shefa-notify__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
}

.shefa-notify__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: currentColor;
  opacity: 0.25;
  transform-origin: left center;
}

.shefa-notify--success .shefa-notify__icon { color: #2e7d32; }
.shefa-notify--error .shefa-notify__icon   { color: #d32f2f; }
.shefa-notify--warning .shefa-notify__icon { color: #ed6c02; }
.shefa-notify--info .shefa-notify__icon    { color: #0277bd; }

html[data-bs-theme="dark"] .shefa-notify {
  background: rgba(38, 38, 40, 0.9);
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="dark"] .shefa-notify__message {
  color: #d1d5db;
}

html[data-bs-theme="dark"] .shefa-notify__close {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

html[data-bs-theme="dark"] .shefa-notify__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
}

@media (max-width: 575.98px) {
  #shefa-notify-container {
    top: 0.65rem;
    right: 0.65rem;
    left: 0.65rem;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shefa-notify {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .shefa-notify.shefa-notify--visible,
  .shefa-notify.shefa-notify--leaving { transform: none; }
  .shefa-notify__progress { display: none; }
}
