body {
    font-family: Arial, sans-serif;
    background-color: #f0ebf8;
    margin: 20px;
}

.container {
    display: flex;
    gap: 20px;
}

.form-elements {
    width: 250px;
    padding: 10px;
    border: 1px solid #000;
    background: #fff;
}

.drop-area {
    flex: 1;
    min-height: 400px; /* Initial minimum height */
    max-height: 80vh; /* Allows the form to expand up to 80% of the viewport height */
    padding: 20px;
    border: 1px solid #000;
    background: #fff;
    border-radius: 10px;
    overflow-y: auto; /* Enables vertical scrolling when content overflows */
    resize: vertical; /* Allows manual resizing */
}


.element {
    margin: 5px;
    padding: 8px;
    background: #fff;
    border: 1px solid #000;
    cursor: grab;
    display: flex;
    flex-direction: column;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border: 1px solid #000;
    width: 50%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 10px;
}

.form-view {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

h3 {
    background: #673ab7;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.form-control {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
