import re

# Read PRO CSS
with open('/Applications/XAMPP/xamppfiles/htdocs/landing-folder/rms/wp-content/plugins/aio-plugin/css/admin-modern.css', 'r') as f:
    css_content = f.read()

# Remove background: #f8fafc; from .astgdrmsys-premium-wrap
def replace_background(match):
    inner_css = match.group(1)
    inner_css = re.sub(r'background\s*:\s*#f8fafc\s*;?', '', inner_css)
    return f".astgdrmsys-premium-wrap {{{inner_css}}}"

css_content = re.sub(r'\.astgdrmsys-premium-wrap\s*\{([^}]+)\}', replace_background, css_content)

# Write to FREE CSS
with open('/Applications/XAMPP/xamppfiles/htdocs/landing-folder/rmsfree/wp-content/plugins/aio-plugin-free-version-latest/css/admin-modern.css', 'w') as f:
    f.write(css_content)

print("CSS updated successfully")
