/* static/notifications.css
   Toast stack — resilient to global css layers (00/01/02...)
*/

.notify-stack{
  position: fixed;
  right: 18px;
  top: calc(var(--nav-h, 56px) + 12px); /* below fixed nav */
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px;

  width: 360px;
  max-width: calc(100vw - 32px);

  /* never steal clicks from the page except on the toast itself */
  pointer-events: none;
}

.notify{
  position: relative;

  border-radius: 12px;
  padding: 12px 12px 10px 12px;

  /* force legibility even if global theme is light */
  color: rgba(255,255,255,0.92);

  background: rgba(12, 22, 18, 0.92);
  border: 1px solid rgba(120, 255, 190, 0.18);

  /* blur only if supported */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  box-shadow: 0 16px 45px rgba(0,0,0,0.55);
  overflow: hidden;

  /* allow clicking the toast */
  pointer-events: auto;

  /* ensure this layer stays crisp */
  isolation: isolate;
}

.notify__row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding-right: 18px; /* room for the X */
}

.notify__icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size: 13px;
  margin-top: 1px;

  background: rgba(120, 255, 190, 0.12);
  border: 1px solid rgba(120, 255, 190, 0.18);

  color: rgba(255,255,255,0.92);
}

.notify__text{ flex: 1; min-width: 0; }

.notify__title{
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

.notify__body{
  font-size: 12px;
  opacity: 0.88;
  margin-top: 2px;
  line-height: 1.25;
  color: rgba(255,255,255,0.82);
}

/* Small X in top-right */
.notify__close{
  position: absolute;
  top: 8px;
  right: 8px;

  width: 18px;
  height: 18px;
  border-radius: 6px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);

  cursor: pointer;
  font-size: 16px;
  line-height: 16px;
  padding: 0;
}
.notify__close:hover{
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
}

/* Thin duration bar */
.notify__bar{
  height: 3px;
  border-radius: 99px;
  margin-top: 10px;

  background: rgba(255,255,255,0.14);
  overflow: hidden;
  position: relative;
}

/* Shrinks from full -> empty over --ttl */
.notify__bar::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 100%;
  background: rgba(120, 255, 190, 0.85);
  animation: notifybar var(--ttl, 5000ms) linear forwards;
}

@keyframes notifybar{
  from { width: 100%; }
  to   { width: 0%; }
}

/* Optional kind accents */
.notify--info{
  border-color: rgba(120, 255, 190, 0.18);
}

.notify--success{
  border-color: rgba(120, 255, 190, 0.18);
}

.notify--error{
  background: rgba(22, 12, 12, 0.92);
  border-color: rgba(255, 120, 120, 0.22);
}
.notify--error .notify__icon{
  background: rgba(255, 120, 120, 0.12);
  border-color: rgba(255, 120, 120, 0.22);
}
.notify--error .notify__bar::after{
  background: rgba(255, 120, 120, 0.85);
}
