function parseCssString(cssString) {
    if (typeof cssString !== 'string') {
        return {};
    }

    const styles = {};
    const declarations = cssString.split(';').filter(Boolean);

    declarations.forEach((declaration) => {
        const [property, value] = declaration.split(':').map(part => part.trim());
        if (property && value) {
            // Convert kebab-case to camelCase for consistency
            const camelCaseProperty = property.replace(/-([a-z])/g, g => g[1].toUpperCase());
            styles[camelCaseProperty] = value;
        }
    });

    return styles;
}
Parses a CSS string into an object of style properties
@param {string} cssString - The CSS string to parse
@returns {Object} Object containing style properties