/* ============================================================
   SISTEMA DE NOTIFICAÇÕES AMISTOSAS
   Arquivo: css/config_notificacoes.css
   Descrição: Estilos para notificações toast/modal modernas
   ============================================================ */

/* Container de notificações */
.notificacao-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
}

/* Card de notificação */
.notificacao {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: all;
  animation: slideInRight 0.3s ease-out;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}

/* Animações */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.notificacao.saindo {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Ícone da notificação */
.notificacao-icone {
  font-size: 24px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Conteúdo */
.notificacao-conteudo {
  flex: 1;
  padding-top: 2px;
}

.notificacao-titulo {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.notificacao-mensagem {
  font-size: 14px;
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* Botão de ação (opcional) */
.notificacao-acao {
  margin-top: 10px;
}

.notificacao-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.notificacao-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Botão fechar */
.notificacao-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notificacao-fechar:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

/* Barra de progresso */
.notificacao-progresso {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  transform-origin: left;
}

/* Tipos de notificação */

/* Sucesso */
.notificacao.sucesso {
  border-left-color: #10b981;
}

.notificacao.sucesso .notificacao-icone {
  background: #d1fae5;
  color: #059669;
}

.notificacao.sucesso .notificacao-progresso {
  background: #10b981;
}

/* Erro */
.notificacao.erro {
  border-left-color: #ef4444;
}

.notificacao.erro .notificacao-icone {
  background: #fee2e2;
  color: #dc2626;
}

.notificacao.erro .notificacao-progresso {
  background: #ef4444;
}

/* Aviso */
.notificacao.aviso {
  border-left-color: #f59e0b;
}

.notificacao.aviso .notificacao-icone {
  background: #fef3c7;
  color: #d97706;
}

.notificacao.aviso .notificacao-progresso {
  background: #f59e0b;
}

/* Info */
.notificacao.info {
  border-left-color: #3b82f6;
}

.notificacao.info .notificacao-icone {
  background: #dbeafe;
  color: #2563eb;
}

.notificacao.info .notificacao-progresso {
  background: #3b82f6;
}

/* Responsivo */
@media (max-width: 768px) {
  .notificacao-container {
    top: 10px;
    right: 10px;
    left: auto;
    max-width: calc(100% - 20px);
  }

  .notificacao {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }

  @keyframes slideInRight {
    from {
      transform: translateY(-100px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes slideOutRight {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(-100px);
      opacity: 0;
    }
  }
}
