.gap-text-editor {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.element-controls {
    margin-bottom: 1rem;
}

.elements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.element-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
}

.element-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.element-type-badge {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.element-textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

.gap-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gap-main-input {
    font-weight: bold;
}

.alt-texts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.alt-texts input {
    font-size: 0.9rem;
}

.multiselect {
    width: 100%;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    font-weight: bold;
}