.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 0.5rem;
    width: 50%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    /* Header will maintain its height based on content */
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.modal-header-underlined {
    /* Header will maintain its height based on content */
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid var(--beige-300);
}

.modal-body {
    /* Allow the body to grow and scroll when needed */
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    overscroll-behavior: none;
}


.modal-title {
    margin: 0;
}

.modal-close-icon {
    cursor: pointer;
    height: 1.5rem;
    width: 1.5rem;
}

.modal-footer  {
    /* Footer will maintain its height based on content */
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 2rem 1rem;
    gap: 0.5rem;
}

.close {
    background-color: transparent;
    border: none;
    cursor: pointer;
}