
.ef-form-builder-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

#form-name{
height: 40px;
font-size: 15px;
padding-left: 10px;
}

.form-name{
    padding-right: 20px;
}

.ef-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#form-fields-container{
    padding-right: 20px;
}

/* Form Inputs */
.ef-input,
.ef-field-input,
.ef-field-select,
.ef-field-options-input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.ef-field-input,
.ef-field-options-input {
    width: calc(100% - 16px);
}

.ef-label {
    font-size: 20px;
    color: #555;
}

/* Table Layout */
.ef-fields-table {
    width: 100%;
    border-collapse: collapse;
}

.ef-fields-table th,
.ef-fields-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.ef-fields-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.ef-form-field td {
    vertical-align: middle;
}

/* Buttons */
.ef-submit-btn,
.ef-remove-field {
    padding: 8px 15px;
    border: none;
    background-color: #007cba;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.ef-add-field{
    border: none;
    background-color: #007cba;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 20px;
}

.ef-add-field{
    align-self: flex-end;
}

.ef-submit-btn{
    align-self: flex-start;
}

.ef-add-field:hover,
.ef-submit-btn:hover,
.ef-remove-field:hover {
    background-color: #007cba;
}

/* Remove Button */
.ef-remove-field {
    background-color: #e63946;
}

.ef-remove-field:hover {
    background-color: #d32f2f;
}
.ef-field-label {
    display: flex;
    align-items: center;
    margin-right: 10px; /* Space between drag handle and label */
}

/* Styling for dragging state */
.ef-form-field.dragging {
    opacity: 0.5;
}

/* Style for drag handle */
.ef-form-field .drag-handle {
    cursor: move;
}

#FormModal{
    background-color: white;
}

.ef-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.ef-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.ef-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-content {
    background: white;
    padding: 20px;
    width: 60%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 8px;
}
.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}
.submission-item:nth-child(even) {
    background: #f9f9f9;
}
.submission-item:nth-child(odd) {
    background: #ffffff;
}
.submission-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    position: relative;
}
.submission-item p {
    margin: 5px 0;
}
.delete-submission {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.ef-form-row {
    display: flex;
}
