/* Sistema de Notificações Moderno - Green Line */

/* Container principal das notificações */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

/* Notificação base */
.notification {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 16px;
  padding: 20px;
  border-left: 4px solid;
  position: relative;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  max-height: 200px;
  overflow: hidden;
}

/* Animação de entrada */
.notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Animação de saída */
.notification.hide {
  transform: translateX(100%);
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
}

/* Tipos de notificação */
.notification.success {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.notification.error {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.notification.warning {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

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

/* Header da notificação */
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.notification-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.notification-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.notification.success .notification-icon {
  background: #28a745;
}

.notification.error .notification-icon {
  background: #dc3545;
}

.notification.warning .notification-icon {
  background: #ffc107;
}

.notification.info .notification-icon {
  background: #17a2b8;
}

/* Botão de fechar */
.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #495057;
}

/* Conteúdo da notificação */
.notification-content {
  color: #495057;
  font-size: 14px;
  line-height: 1.5;
}

.notification-content ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.notification-content li {
  margin-bottom: 4px;
}

/* Barra de progresso */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transition: transform linear;
}

.notification.success .notification-progress-bar {
  background: #28a745;
}

.notification.error .notification-progress-bar {
  background: #dc3545;
}

.notification.warning .notification-progress-bar {
  background: #ffc107;
}

.notification.info .notification-progress-bar {
  background: #17a2b8;
}

/* Notificação com ações */
.notification-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.notification-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-btn.primary {
  background: #007bff;
  color: white;
}

.notification-btn.primary:hover {
  background: #0056b3;
}

.notification-btn.secondary {
  background: #6c757d;
  color: white;
}

.notification-btn.secondary:hover {
  background: #545b62;
}

/* Responsivo */
@media (max-width: 768px) {
  .notifications-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .notification-title {
    font-size: 14px;
  }
  
  .notification-content {
    font-size: 13px;
  }
}

/* Animações especiais */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.notification.shake {
  animation: shake 0.5s ease-in-out;
}

/* Notificação de validação de formulário */
.notification.form-validation {
  border-left-width: 6px;
  box-shadow: 0 12px 40px rgba(220, 53, 69, 0.15);
}

.notification.form-validation .notification-content {
  font-weight: 500;
}

.notification.form-validation .notification-content strong {
  color: #dc3545;
  display: block;
  margin-bottom: 8px;
}

/* Estados especiais */
.notification.loading {
  border-left-color: #6c757d;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.notification.loading .notification-icon {
  background: #6c757d;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Notificação compacta */
.notification.compact {
  padding: 12px 16px;
}

.notification.compact .notification-header {
  margin-bottom: 0;
}

.notification.compact .notification-title {
  font-size: 14px;
}

.notification.compact .notification-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  font-size: 12px;
}

/* Efeito hover */
.notification:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notification:hover .notification-progress-bar {
  animation-play-state: paused;
}