/* =====================================================
   🌈 POP-UP STIJL – Deel je Prikbord
   ===================================================== */

.popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  animation: fadeIn 0.3s ease forwards;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 25px 30px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
  max-width: 360px;
  width: 90%;
  animation: slideUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.popup.showing .popup-content {
  opacity: 1;
  transform: translateY(0);
}

.popup-content p {
  margin: 0 0 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
}

.popup-content button {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  transition: all 0.25s ease;
}

.popup-content button:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: scale(1.05);
}

/* ✅ Animaties */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 💬 Kleuraccenten voor status */
.popup-success #popupText {
  color: #2e7d32;
}

.popup-error #popupText {
  color: #c62828;
}

/* Responsief */
@media (max-width: 480px) {
  .popup-content {
    padding: 20px;
    font-size: 0.95rem;
  }
  .popup-content button {
    width: 100%;
  }
}