import os
import re

# List of admin and other pages to update
pages = [
    'admin-drivers.html', 'admin-messages.html', 'admin-new-booking.html',
    'admin-pricing.html', 'admin-quotes.html', 'admin.html', 'admin-login.html',
    'acceptable-use.html', 'gdpr.html', 'promotional-terms.html',
    'sign-in.html', 'sign-up.html', 'success.html', 'test-menu.html',
    'terms_temp.html', 'terms_old_backup.html', 'reset-password.html'
]

for page in pages:
    file_path = page
    if not os.path.exists(file_path):
        print(f"⚠️  {page} - File not found")
        continue
    
    with open(file_path, 'r', encoding='utf-8') as f:
        content = f.read()
    
    # Update Mercedes image height from 40px to 50px and margin from 20px to 25px
    # Pattern: height: 40px; margin-left: 20px;
    updated = re.sub(
        r'(<img[^>]*src="/mercedes-logo-final\.png"[^>]*style="[^"]*?)height:\s*40px;\s*margin-left:\s*20px;',
        r'\1height: 50px; margin-left: 25px;',
        content
    )
    
    if updated != content:
        with open(file_path, 'w', encoding='utf-8') as f:
            f.write(updated)
        print(f"✅ Updated {page}")
    else:
        print(f"ℹ️  {page} - No changes needed")

print("\n✅ All admin and other pages updated with bigger Mercedes (50px)!")
