body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .title {
    margin: 0;
    font-size: 24px;
}

.header .save-btn {
    background-color: white;
    color: black;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid black;
}


.sidebar {
    width: 250px;
    background: #fff;
    padding: 15px;
    border-right: 2px solid #ddd;
}

.sidebar h3 {
    text-align: center;
    margin-bottom: 10px;
}

.sidebar button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: none;
    background: #f9f2f2;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
}

.sidebar button:hover {
    background: #ddd;
}

.form-area {
    flex: 1;
    padding: 20px;
}

#form-container {
    background: white;
    padding: 20px;
    min-height: 400px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.element {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
}

.element label {
    font-weight: bold;
    margin-bottom: 15px;
}

.element input,
.element textarea,
.element select {
    width: calc(100% - 30px);
    padding: 8px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    border: 1px solid black;
}

.element textarea {
    resize: vertical;
    height: 120px;
    font-size: 14px;
    
}

.element .delete-btn {
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    transition: opacity 0.2s ease;
}

.element .delete-btn:hover {
    opacity: 0.7;
}


@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #ddd;
    }

    .form-area {
        padding: 10px;
    }

    #form-container {
        min-height: 300px;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .element textarea {
        height: 100px;
    }
}
