.resourceDetail[data-type="html"] {
    background-color: transparent;
    color: var(--primary-fg-color);
}

.resourceDetail[data-type="html"] .resourceContent {
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

.resourcePreviewDialog .resourceDetail[data-type="html"] {
    color: var(--primary-bg-color);
}

.overlayElement .resourceDetail[data-type="html"] .resourceContent {
    padding: 0px;
    color: #000;
}

.resourceDetail[data-type="html"] ol, .resourceDetail[data-type="html"] ul {
    margin: 0;
    padding-left: 20px;
}

.resourceThumb[data-type="html"] .resourceTextPreview {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
    color: var(--primary-fg-color) !important;
    line-height: 1.2em !important;
    opacity: .6;
    overflow: hidden;
}

.resourceThumb[data-type="html"] .resourceTextPreview * {
    font-size: 100% !important;
    color: var(--primary-fg-color) !important;
    line-height: 1.2em !important;
}

.resourceThumb[data-type="html"] .resourceTextPreview:after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: 0px;
    height: 40%;
    background-image: linear-gradient(to top, var(--primary-bg-color) 0%, var(--primary-bg-color) 30%, transparent 100%);
    width: 100%;
}

.resourceThumb[data-type="html"] .resourceOverlay {
    background: transparent;
}

.resourceThumb[data-type="html"] .resourceTitle {
    display: none;
}

.contentViewContainer[data-size="small"] .resourceThumb[data-type="html"] .resourceTextPreview {
    display: none;
}

/* Edit HTML Overlay Properties */

.editPropertiesContainer .propertiesTypeIcon[data-type="html"] [class^="icon-"]::before, .editPropertiesContainer .propertiesTypeIcon[data-type="html"] [class*=" icon-"]::before {
    content: "\f0f6";
}

/* HTML-only editor: no tabs needed, full height */
.editPropertiesContainer .htmlOnlyEditorContainer {
    height: 100%;
}

.editPropertiesContainer .htmlOnlyEditorContainer .textEditorTab {
    pointer-events: none;
}
