/* Popup Modal Styles */
.popup-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 99998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.popup-modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup-modal-overlay.active .popup-modal {
  transform: scale(1);
  opacity: 1;
}

.popup-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #333;
  transition: all 0.3s ease;
  z-index: 10;
}

.popup-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.popup-modal-image {
  width: 100%;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  max-height: 300px;
}

.popup-modal-content {
  padding: 30px;
}

.popup-modal-content h2 {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.popup-modal-content p,
.popup-modal-content div {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.popup-modal-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.popup-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.popup-modal-footer {
  padding: 15px 15px 15px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-modal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.popup-modal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .popup-modal {
    max-width: 95%;
    width: 95%;
  }

  .popup-modal-content {
    padding: 20px;
  }

  .popup-modal-content h2 {
    font-size: 20px;
  }

  .popup-modal-content p,
  .popup-modal-content div {
    font-size: 14px;
  }

  .popup-modal-footer {
    padding: 0 20px 20px 20px;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .popup-modal-button {
    width: 100%;
  }
}

/* Animation for fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scrollbar styling for modal content */
.popup-modal::-webkit-scrollbar {
  width: 8px;
}

.popup-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.popup-modal::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.popup-modal::-webkit-scrollbar-thumb:hover {
  background: #555;
}
