/*editor.css*/

#editor {

    display: flex;

    flex-direction: column;

    gap: 20px;

}

/* Cards */

#editor .card {

    display: flex;

    flex-direction: column;

    gap: 12px;

}

/* Textareas */

#editor textarea {

    min-height: 120px;

}

/* Color Picker */

#color {

    width: 100%;

    height: 48px;

    padding: 4px;

    cursor: pointer;

}

#fields-container {

    display: flex;

    flex-direction: column;

    gap: 15px;

}

.field {

    background: var(--background-tertiary);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 15px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    animation: fadeIn .2s ease;

}

/* Inline checkbox */

.field-inline {

    display: flex;

    align-items: center;

    gap: 10px;

}

.field-inline input[type="checkbox"] {

    width: 18px;

    height: 18px;

}

#buttons-container {

    display: flex;

    flex-direction: column;

    gap: 15px;

}

.component {

    background: var(--background-tertiary);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 15px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    animation: fadeIn .2s ease;

}

.editor-actions {

    display: flex;

    gap: 10px;

    margin-top: 10px;

}

.editor-actions button {

    flex: 1;

}

.remove-button {

    background: var(--danger);

}

.remove-button:hover {

    filter: brightness(.9);

}

#generate {

    width: 100%;

    font-size: 1rem;

    padding: 16px;

    font-weight: bold;

}

.input-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.row {

    display: flex;

    gap: 10px;

}

.row>* {

    flex: 1;

}

.help {

    color: var(--text-muted);

    font-size: .82rem;

    line-height: 1.4;

}

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(10px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}