





/* Базовое состояние тела ноды */
.node-body {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Скрываем инпут */
.node-file-input {
    display: none;
}

/* Элементы по умолчанию скрыты */
.image-content,
.upload-progress-container {
    display: none;
    width: 100%;
    height: 100%;
}

/* Состояние: Картинка загружена */
.node-body.has-image .image-content {
    display: block;
}
.node-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Состояние: Идет загрузка */
.node-body.is-uploading .upload-progress-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Прогресс-бар */
.pg-bar {
    width: 80%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}
.pg-fill {
    width: 0%;
    height: 100%;
    background: #4caf50;
    transition: width 0.2s;
}
.upload-status-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}


.node-file-input { display: none; }
.image-content, .upload-progress-container { display: none; width: 100%; height: 100%; }
.node-body.has-image .image-content { display: block; }
.node-body.is-uploading .upload-progress-container { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.node-img-element { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }


