/* =====================================================
   ALERTS & NOTIFICATIONS - Custom Bootstrap-like
===================================================== */

/* Alertas personalizados */
.alert {
  position: relative;
  padding: 12px 20px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  animation: slideIn 0.3s ease-out;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15);
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

/* Animação suave */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container de notificações fixo */
#notificacoes-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

/* Notificações toast */
.notificacao {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #007bff;
  transform: translateX(400px);
  transition: transform 0.3s ease-out;
  position: relative;
  min-width: 300px;
}

.notificacao-success {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.notificacao-error {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.notificacao-info {
  border-left-color: #17a2b8;
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.notificacao-warning {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
}

.notificacao-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.notificacao-close:hover {
  opacity: 1;
}

/* Responsividade */
@media (max-width: 576px) {
  #notificacoes-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .notificacao {
    min-width: auto;
    width: 100%;
  }
  
  .alert {
    margin: 10px;
    font-size: 13px;
  }
}