/* ===================
   SISTEMA DE POP-UPS
   =================== */
.custom-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupFadeIn 0.3s ease;
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(8px); /* Aplica o blur */
  background-color: rgba(0, 0, 0, 0.2); /* Escurece levemente */
  z-index: -1; /* Fica atrás do conteúdo do popup */
}

.popup-content {
  position: relative;
  background: rgba(20, 20, 20, 0.973);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: popupSlideIn 0.3s ease;
  color: #ccc;
}

.popup-header {
  padding: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  gap: 12px;
}

.popup-header i {
  font-size: 24px;
}

.popup-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.popup-body {
  padding: 20px;
}

.popup-body p {
  margin: 0;
  color: #c2c2c2;
  line-height: 1.5;
}

.popup-footer {
  padding-top: 10px;
  padding: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.popup-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.popup-btn-primary {
  background: #007bff;
  color: white;
}

.popup-btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.popup-btn-secondary {
  background: #6c757d;
  color: white;
}

.popup-btn-secondary:hover {
  background: #545b62;
  transform: translateY(-1px);
}

/* Cores dos pop-ups por tipo */
.custom-popup.success .popup-header i {
  color: #28a745;
}

.custom-popup.error .popup-header i {
  color: #dc3545;
}

.custom-popup.warning .popup-header i {
  color: #ffc107;
}

.custom-popup.info .popup-header i {
  color: #17a2b8;
}

/* Animações */
@keyframes popupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupSlideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
