/* ============================================
   NOTIFICAÇÕES TOAST - ESTILOS SIMPLIFICADOS
   ============================================ */

/* Container de notificações (fixo no canto superior direito) */
.toast-notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

/* Cada notificação individual */
.toast-notification {
  position: relative;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-width: 320px;
  max-width: 400px;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Notificação visível */
.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Cabeçalho da notificação */
.toast-header {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
  position: relative;
}

/* Ícones */
.toast-icon {
  font-size: 22px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Conteúdo da mensagem */
.toast-content {
  flex: 1;
  padding-right: 8px;
}

.toast-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.toast-message {
  font-size: 14px;
  line-height: 1.4;
  color: #555;
  word-break: break-word;
}

/* Botão de fechar */
.toast-close-btn {
  background: transparent;
  border: none;
  color: #888;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: auto;
}

.toast-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  transform: rotate(90deg);
}

.toast-close-btn:active {
  transform: rotate(90deg) scale(0.9);
}

/* ============================================
   TIPOS DE NOTIFICAÇÃO - CORES E ÍCONES
   ============================================ */

/* SUCESSO */
.toast-notification.success {
  border-left: 4px solid #10b981;
}

.toast-notification.success .toast-icon {
  color: #10b981;
}

/* ERRO */
.toast-notification.error {
  border-left: 4px solid #ef4444;
}

.toast-notification.error .toast-icon {
  color: #ef4444;
}

/* AVISO/ALERTA */
.toast-notification.warning {
  border-left: 4px solid #f59e0b;
}

.toast-notification.warning .toast-icon {
  color: #f59e0b;
}

/* INFORMAÇÃO */
.toast-notification.info {
  border-left: 4px solid #3b82f6;
}

.toast-notification.info .toast-icon {
  color: #3b82f6;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

/* Animação de entrada */
@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animação de saída */
@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast-notification.slide-out {
  animation: toastSlideOut 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
  .toast-notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: 100%;
  }

  .toast-notification {
    min-width: unset;
    max-width: 100%;
  }

  .toast-header {
    padding: 14px;
  }

  .toast-title {
    font-size: 14px;
  }

  .toast-message {
    font-size: 13px;
  }
}

/* ============================================
   EFEITOS ESPECIAIS
   ============================================ */

/* Efeito de brilho sutil */
.toast-notification::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.5;
}

/* Efeito hover sutil */
.toast-notification:hover {
  /* TODO */
}

/* Para notificações em sequência */
.toast-notification-container .toast-notification:nth-child(1) {
  z-index: 5;
}

.toast-notification-container .toast-notification:nth-child(2) {
  z-index: 4;
}

.toast-notification-container .toast-notification:nth-child(3) {
  z-index: 3;
}
