$cssPath = "site\assets\style.css"
$css = Get-Content $cssPath -Raw

# 1. Change the bottom bar background to theme color
$css = $css -replace 'background: #ffffff !important;\s*(/\*.*?mobile.*?\*/|display: flex !important;)', "background: var(--violet-700) !important;`n      `$1"

# 2. Change the default link color from --ink to slightly transparent white
$css = $css -replace 'color: var\(--ink\) !important;', "color: rgba(255,255,255,0.6) !important;"

# 3. Fix the active state for the links
# Change active text color to solid white
$css = $css -replace 'color: var\(--violet-700\) !important;\s*position: relative;', "color: #ffffff !important;`n      position: relative;"

# Change active icon color to solid white
$css = $css -replace 'background-color: var\(--violet-700\) !important;\s*transform: scale\(1\.15\);', "background-color: #ffffff !important;`n      transform: scale(1.15);"

# Change active dot color to solid white
$css = $css -replace 'background: var\(--violet-600\);\s*animation: dotPop', "background: #ffffff;`n      animation: dotPop"

Set-Content -Path $cssPath -Value $css -Encoding UTF8
Write-Host "Changed mobile bottom bar to theme color with white buttons."
