.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px; /* Ensures spacing on small screens */
  }

  .modal-card {
    background-color: #FAFAFA;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    font-family: sans-serif;
  }

  .modal-header {
    background-color: #F0F0F0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
  }

  .modal-title {
    margin: 0;
    font-size: 16px;
    color: #0A0A0A;
  }

  .modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #444;
    cursor: pointer;
  }

  .modal-body {
    padding: 20px;
    text-align: left;
  }

  .modal-message {
    font-size: 14px;
    color: #0A0A0A;
    margin: 0;
    word-break: break-word;
  }

  .modal-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #FAFAFA;
    border-top: 1px solid #E0E0E0;
    flex-wrap: wrap;
  }

  .modal-button {
    background-color: #000000;
    color: #FFFFFF;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .modal-button:hover {
    background-color: #333333;
  }

  .modal-button-light {
    background-color: #FFFFFF;
    color: #0A0A0A;
    border: 1px solid #E0E0E0;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .modal-button-light:hover {
    background-color: #F5F5F5;
  }

  /* 📱 Responsive adjustments for small screens */
  @media (max-width: 480px) {
    .modal-header,
    .modal-body,
    .modal-footer {
      padding: 12px 16px;
    }

    .modal-title {
      font-size: 15px;
    }

    .modal-message {
      font-size: 13px;
    }

    .modal-button,
    .modal-button-light {
      width: 100%;
      justify-content: center;
    }

    .modal-footer {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
    }
  }

