﻿/* Global notifications + submit states */
.app-notify-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 380px);
  pointer-events: none;
}

.app-notify-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.15);
  animation: appNotifyIn .18s ease-out;
}

.app-notify-icon {
  width: 1.1rem;
  text-align: center;
  line-height: 1.1rem;
  margin-top: 0.1rem;
}

.app-notify-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

.app-notify-close {
  border: 0;
  background: transparent;
  color: #475569;
  padding: 0 0.1rem;
  line-height: 1;
}

.app-notify-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}

.app-notify-error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #7f1d1d;
}

.app-notify-warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #78350f;
}

.app-notify-info {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.app-submit-spinner {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: appBtnSpin .65s linear infinite;
}

@keyframes appBtnSpin {
  to { transform: rotate(360deg); }
}

@keyframes appNotifyIn {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Barra de progresso de navegacao */
.app-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.app-nav-progress.is-active {
  opacity: 1;
}

.app-nav-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, rgb(59 130 246), rgb(37 99 235));
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.55);
  transition: width .22s ease;
}

@media (prefers-reduced-motion: reduce) {
  .app-nav-progress-fill {
    transition: none;
  }
}
