/* Fullscreen modal panel */
/* Fullscreen modal panel with purple-black gradient */
.custom-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6a0dad, #000000); /* deep purple to black */
  z-index: 9999;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  border-radius: 0; /* full screen */
  padding: 10px;
  display: none; /* hidden by default */
  color: #fff; /* ensure text is readable */
}

/* Header with close button */
.custom-panel-header {
  display: flex;
  justify-content: flex-end; /* align close button to right */
  align-items: center;
  position: sticky; /* stays on top while scrolling */
  top: 0;
  background: #fff;
  padding: 10px 0;
  z-index: 10000;
  border-bottom: 1px solid #ddd;
}

.custom-panel-close {
  cursor: pointer;
  font-size: 60px; /* bigger close button */
  font-weight: bold;
  color: #333;
  padding: 5px 10px;
  transition: color 0.2s;
}

.custom-panel-close:hover {
  color: #ff0000; /* hover effect */
}

/* Overlay */
.custom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

/* Open animation */
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-out animation */
@keyframes modalFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}

/* Classes to trigger animations */
.custom-panel.show {
  animation: modalFadeIn 0.9s ease forwards;
}

.custom-panel.hide {
  animation: modalFadeOut 0.9s ease forwards;
}


