/* ============================================
   SISTEMA DE NOTIFICAÇÕES MODERNAS
   ============================================ */

#notifications-container {
  position: relative;
  z-index: 1000;
  min-height: 0;
}

/* Base da notificação */
.notification-item {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: start;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
  animation: slideInDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animações */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

.notification-item.hiding {
  animation: slideOutUp 0.3s ease-out forwards;
}

/* Estilos por tipo */
.notification-item.success {
  border-left-color: #10b981;
  background: linear-gradient(to right, #ecfdf5 0%, white 100%);
}

.notification-item.danger {
  border-left-color: #ef4444;
  background: linear-gradient(to right, #fef2f2 0%, white 100%);
}

.notification-item.warning {
  border-left-color: #f59e0b;
  background: linear-gradient(to right, #fffbeb 0%, white 100%);
}

.notification-item.info {
  border-left-color: #3b82f6;
  background: linear-gradient(to right, #eff6ff 0%, white 100%);
}

.notification-item.secondary {
  border-left-color: #6b7280;
  background: linear-gradient(to right, #f9fafb 0%, white 100%);
}

/* Ícone */
.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.notification-item.success .notification-icon {
  color: #10b981;
}

.notification-item.danger .notification-icon {
  color: #ef4444;
}

.notification-item.warning .notification-icon {
  color: #f59e0b;
}

.notification-item.info .notification-icon {
  color: #3b82f6;
}

.notification-item.secondary .notification-icon {
  color: #6b7280;
}

/* Conteúdo */
.notification-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  font-weight: 500;
}

/* Botão de fechar */
.notification-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 18px;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #4b5563;
}

/* Barra de progresso */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  transition: width linear;
}

.notification-item.success .notification-progress {
  color: #10b981;
}

.notification-item.danger .notification-progress {
  color: #ef4444;
}

.notification-item.warning .notification-progress {
  color: #f59e0b;
}

.notification-item.info .notification-progress {
  color: #3b82f6;
}

.notification-item.secondary .notification-progress {
  color: #6b7280;
}

/* Responsivo */
@media (max-width: 576px) {
  .notification-item {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .notification-content {
    font-size: 13px;
  }

  .notification-icon {
    font-size: 18px;
  }
}
