﻿.html-editor-property-dd {
    min-height: 36px;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
}

    .html-editor-property-dd .e-ddl-icon {
        background-color: white !important;
    }

    .html-editor-property-dd input {
        height: 34px !important;
        border-radius: 0px !important;
    }

    .html-editor-property-dd.e-disabled {
        background-color: white !important;
        border-color: #d9d9d9 !important;
    }
.color-dd-item {
    display: flex;
    justify-content: flex-start;
    gap: 0px;
    height: 34px;
    line-height: 34px;
}

.color-dd-icon {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    height: 24px !important;
    width: 24px !important;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 5px;
    margin-right: 5px;
}

.color-dd-text {
    text-align: start;
}
.html-editor-property-item-content-disabled .color-dd-icon {
    background-color: #d9d9d9 !important;
}


.html-editor-edit-file-upload-container{
    padding: 10px !important;
}
/* ===== Canvas Visual Enhancements (flat edges, blue line) ===== */
:root {
    --dnd-line-thickness: 3px;
    --dnd-line-color: #9d3838; /* neue Linienfarbe */
    --dnd-line-glow: 0 0 0 2px rgba(41, 121, 255, .25);
    --container-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

/* 1) Klarere Insert-Linie */
.dropable {
    border-top: 4px solid #57b228 !important;
}

/* zusätzliche Variante falls direkt .dnd-insert-line genutzt wird */
.dnd-insert-line::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: var(--dnd-line-thickness);
    top: -2px;
    background: var(--dnd-line-color);
}

/* 2) Platzhalter beim Ziehen */
.dnd-placeholder {
    height: 14px;
    border: 2px dashed var(--dnd-line-color);
    background: #fff;
    margin: 8px 0;
}

/* 3) Ghost (kein Radius mehr) */
.dnd-ghost {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-9999px, -9999px);
    z-index: 99999;
    background: #fff;
    border: 1px solid #dfe3f6;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 14px;
    color: #2f3542;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: .95;
}

.dnd-ghost-icon {
    width: 14px;
    height: 14px;
    background: var(--dnd-line-color);
}

.dnd-ghost-title {
    font-weight: 600;
    white-space: nowrap;
}
.html-editor-content-container .html-editor-content-drop-spacer {
    border: 1px dashed #808080;
    padding: 4px;
    margin: 4px;
    height: 36px;
}
.html-editor-content-drop-spacer-content {
    background-color: #e8e8e8;
    height: 100%;
    text-align: center;
    color: #808080;
}

.html-editor-content-drop-spacer.dropable {
    border-top: 0px !important;
    border-top: 2px solid #57b228 !important;
    border-color: #57b228 !important;
}
/* 4) Container-Spalten optisch flach */
.html-editor-content-column {
    padding: 4px !important;
    background: #fff;
    border: 2px solid #d9d9d9;
}
    .html-editor-content-column:hover {
        border-color: var(--dnd-line-color);
        background: #fafbff;
    } 
.dropableContainer {
    outline: 2px dashed var(--dnd-line-color);
    outline-offset: 2px;
    background: rgba(41, 121, 255, .08);
}
    /* 5) Items */
    .html-editor-content-item {
        transition: border-color .12s ease, background-color .12s ease;
        background: #fff;
        margin: 1px;
    } 
    .html-editor-content-item:hover {
        border-color: #cfd8ff;
        background: #e9ecf5;
        transition: border-color .12s, background-color .12s;
    } 
.drop-placeholder {
    outline: 1px dashed #2979ff;
    background: rgba(41,121,255,0.05);
    min-height: 60px;
    margin: 8px 0;
    box-sizing: border-box;
    border-radius: 4px;
    pointer-events: none; /* nicht anklickbar */
}
.prop-control-area {
    resize: none !important;
    height: 100%;
}

.prop-popup-container input {
    height: 100%;
}
.prop-popup-container .richtext-container {
    height: 100%;
}
    .prop-popup-container .richtext-container .editor {
        height: calc(100% - 41px);
    }
.prop-popup-container .prop-border{
    height: 100%;
}
div:empty:before {
    content: attr(data-text);
    color: var(--color-muted);
}
h1:empty:before,
h2:empty:before,
h3:empty:before,
h4:empty:before,
h5:empty:before,
h6:empty:before{
    content: attr(data-text);
    color: var(--color-muted);
}
.prop-section textarea {
    resize: none;
    height: 260px;
}
.html-editor-content-item-selected:not(:has(.html-editor-content-column)) {
    outline: 2px solid red !important;
}
    .html-editor-content-item-selected .html-editor-content-column {
        outline: 2px solid red !important;
    }
.html-editor-preview-container:has(i) {
    background-color: #e8e8e8;
    text-align: center !important;
}
.html-editor-preview-container i {
    margin-left: auto;
    margin-right: auto;
    color: #808080;
}