/* ---------------------------------------------------------------------
 * ShefaNotify - app-wide slide-in notification badges (top-right)
 * Responsive on all breakpoints. Auto-dismiss + manual close.
 * ------------------------------------------------------------------- */

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

.shefa-notify {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border-left: 5px solid #5b8c51;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  overflow: hidden;
}

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

.shefa-notify.shefa-notify--leaving {
  transform: translateX(120%);
  opacity: 0;
}

.shefa-notify__icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 1px;
}

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

.shefa-notify__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.1rem;
}

.shefa-notify__message {
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
  word-wrap: break-word;
}

.shefa-notify__close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: #9ca3af;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.shefa-notify__close:hover {
  color: #4b5563;
}

/* progress bar showing time-to-dismiss */
.shefa-notify__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left center;
}

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

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

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