.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Overlay background color */
  }
  
  .modal.active {
    display: block;
  }
  
  .modal .modal-content {
    background: linear-gradient(to right, #071e31, #071e31) padding-box, 
                linear-gradient(to right, rgba(255, 255, 255, 0.46), rgba(34, 164, 241, 0.46)) border-box;
    border: 1px solid transparent;
    margin: 15% auto;
    padding: 50px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .modal .modal-content.active {
    transform: scale(1);
    opacity: 1;
  }
  
  .modal .modal-content h2 {
    margin: 0 0 10px;
  }
  
  .modal .modal-content p {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 400;
  }
  
  .modal .modal-content .modal-button {
    padding: 5px 10px;
    margin-top: 1rem !important;
    border: none;
    background-color: #ff3e4a; /* Button background color */
    color: white; /* Button text color */
    cursor: pointer;
    border-radius: 5px;
    width: fit-content;
    margin: auto;
    font-weight: 700;
  }
  
  .modal .modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 33px;
    cursor: pointer;
    font-weight: 200;
  }
  
  
  /* Custom title colors for different modal types */
  .title-success {
    color: #1fbf1f; /* Success color */
  }
  
  .title-error {
    color: red; /* Error color */
  }
  
  .title-info {
    color: #F47923; /* Info color */
  }
  
  .title-warning {
    color: orange; /* Warning color */
  }
  
  .libmodal.active {
    display: flex;
  }
  .libmodal {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7); /* Overlay background color */
  }