    /* Styles for the custom confirm and alert dialog */
    #custom-alert, #custom-confirm {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #fff;
      padding: 20px;
      border-radius: 5px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      text-align: center;
    }

    #overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
    }

    button {
      margin: 5px;
      padding: 10px 20px;
      border: none;
      border-radius: 3px;
      cursor: pointer;
    }

    #alert-ok {
      background-color: #4CAF50;
      color: white;
    }

    #confirm-yes {
      background-color: #4CAF50;
      color: white;
    }

    #confirm-no {
      background-color: #f44336;
      color: white;
    }