.constructorUniversalBlock {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #afb2b7;
    border-radius: 12px;
    padding: 32px 40px;
    transition: border-color 0.3s ease;
}

.constructorUniversalBlock:hover {
    border-color: #91CF4F;
}

.constructorUniversalBlock:last-child {
    margin-bottom: 0;
}

.constructorUniversalBlockContent {
    width: 100%;
}

.constructorUniversalBlockActions {
    position: absolute;
    right: -48px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
    padding: 0 8px;
}

.constructorUniversalBlockActions{
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    gap: 10px;
}

.constructorUniversalBlockMovUp,
.constructorUniversalBlockMovDown,
.constructorUniversalBlockDelete{
    width: 32px;
    height: 32px;
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    opacity: .6;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.constructorUniversalBlockDelete {
    background: url('@assets/icons/icon-trash.svg') no-repeat center center;
}

.constructorUniversalBlockMovUp{
    background: url('@assets/icons/icon-top-arrow.svg') no-repeat center center;
}

.constructorUniversalBlockMovDown{
    background: url('@assets/icons/icon-bottom-arrow.svg') no-repeat center center;
}

.constructorUniversalBlockDelete:hover,
.constructorUniversalBlockMovUp:hover,
.constructorUniversalBlockMovDown:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
}


/* Стили для состояния перетаскивания */
.constructorUniversalBlock.dragging {
    opacity: 0.5;
    z-index: 2;
}

/* Стили для места, куда можно перетащить блок */
.constructorUniversalBlock.dragOver {
    transform: translateY(100%);
}

.textPreview {
    cursor: pointer;
}

.textPreview:hover {
    border-color: #91CF4F;
}

.textPreview :global(h1) {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
}

.textPreview :global(h2) {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
}

.textPreview :global(h3) {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
}

.textPreview :global(h4) {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
}

.textPreview :global(h5) {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
}

.textPreview :global(h6) {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
}

.textPreview :global(p) {
    margin: 0 0 16px;
    line-height: 1.5;
}

.textPreview :global(p:last-child) {
    margin-bottom: 0;
}

.textPreview :global(ul),
.textPreview :global(ol) {
    margin: 0 0 16px;
    padding-left: 24px;
}

.textPreview :global(li) {
    margin-bottom: 8px;
}

.textPreview :global(li:last-child) {
    margin-bottom: 0;
}

.textPreview :global(a) {
    color: #91CF4F !important;
    text-decoration: none;

    text-decoration: underline;
}

.textPreview :global(a:hover) {
    color: #91CF4F !important;
    text-decoration: none;
}

.textPreview :global(ul) {
    list-style-type: disc;
}

.textPreview :global(ol) {
    list-style-type: decimal;
}

.textPreview :global(table) {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.textPreview :global(table td),
.textPreview :global(table th) {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
}

.textPreview :global(table th) {
    background-color: #f8fafc;
    font-weight: 600;
    text-align: left;
}

.textPreview :global(table tr:nth-child(even)) {
    background-color: #f8fafc;
}

.textPreview :global(table tr:hover) {
    background-color: #f1f5f9;
}



.editorSaveButton {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
} 