/* Custom Modal styles */
    .custom-modal {
      display: none;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      opacity: 0;
      transition: opacity 0.5s ease;
      justify-content: center;
      align-items: center;
    }

    .custom-modal-content {
      background-color: white;
      width: 80%;
      max-height: 80%;
      display: flex;
      flex-direction: column;
      border-radius: 10px;
      overflow: hidden;
    }

    .custom-modal-header,
    .custom-modal-footer {
      background-color: #f1f1f1;
      padding: 10px;
      text-align: center;
      font-weight: bold;
      position: relative;
    }

    .custom-modal-header h2 {
      margin: 0;
    }

    .custom-modal-body {
      padding: 20px;
      overflow-y: auto;
      flex-grow: 1;
    }

    /* Close button inside the header */
    .custom-modal-header .custom-modal-close-btn {
      color: #aaa;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      position: absolute;
      top: 10px;
      right: 10px;
    }

    .custom-modal-header .custom-modal-close-btn:hover, .custom-modal-header .custom-modal-close-btn:focus {
      color: black;
      text-decoration: none;
    }

    /* Fullscreen style */
    .custom-modal-fullscreen .custom-modal-content {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 20px;
      border-radius: 0;
      max-height: none;
      overflow: auto;
    }

    /* Vibration effect */
.custom-modal-content.custom-modal-vibrate {
  animation: custom-modal-vibrate 0.3s ease-out;
}

@keyframes custom-modal-vibrate {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(5px); }
}