.editor-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    padding: 10px;

    .item {
        display: flex;
        // align-items: center;
        margin-bottom: 15px;
        min-width: 32px;
        position: relative;

        >div:first-child {
            width: 80px;
            height: 32px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
        }

        input {
            background: #363636;
            z-index: 1;
            height: 32px;
            color: rgba(255, 255, 255, 0.7) !important;

            &.board {
                border-radius: 2px 0 0 2px;
            }
        }

        .error {
            color: rgb(255, 80, 80);
            font-size: 12px;
            position: absolute;
            bottom: -15px;
            left: 130px;
        }

        .file-input {
            position: relative;
            width: 300px;
            height: 150px;
            background: #363636;
            border-radius: 5px;
            border: 1px dashed #555;
            transition: all 0.3s ease;

            &:hover {
                border-color: #777;
                background: #404040;
            }

            &.has-image {
                height: 100px;
                margin-top: 10px;
            }

            .upload-text {
                pointer-events: none;
                text-align: center;
                color: rgba(255, 255, 255, 0.7);
                
                .upload-hint {
                    font-size: 12px;
                    color: rgba(255, 255, 255, 0.5);
                    margin-top: 5px;
                }
            }

            input {
                width: 100%;
                height: 100%;
                opacity: 0;
                position: absolute;
                top: 0;
                left: 0;
                cursor: pointer;
            }
        }

        .image-upload-container {
            width: 300px;
        }

        .image-preview {
            position: relative;
            width: 100%;
            max-height: 200px;
            border-radius: 5px;
            overflow: hidden;
            background: #222;
            
            .preview-image {
                width: 100%;
                height: auto;
                max-height: 200px;
                object-fit: cover;
                display: block;
            }
            
            .image-actions {
                position: absolute;
                top: 8px;
                right: 8px;
                
                .remove-btn {
                    width: 24px;
                    height: 24px;
                    border-radius: 50%;
                    background: rgba(0, 0, 0, 0.7);
                    color: white;
                    border: none;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 16px;
                    line-height: 1;
                    transition: background-color 0.2s;
                    
                    &:hover {
                        background: rgba(255, 0, 0, 0.7);
                    }
                }
            }
        }
    }
}

.bottom {
    margin-top: 15px;
    text-align: right;

    button {
        margin-left: 15px;
    }
}