#!/usr/bin/env python3 import re def main(): src = 'apps/dashboard/tourism.html' with open(src, 'r', encoding='utf-8') as f: html = f.read() # 1. Add HUD CSS hud_css = """ /* Sovereign In-App Navigation HUD */ .sovereign-nav-hud { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); z-index: 70; background: rgba(6, 29, 66, 0.96); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 2px solid #06b6d4; border-radius: 18px; padding: 14px 20px; color: #fff; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45); width: 480px; max-width: calc(100vw - 32px); animation: fadeInDown 0.3s ease; } @keyframes fadeInDown { from { opacity: 0; transform: translate(-50%, -15px); } to { opacity: 1; transform: translate(-50%, 0); } } .nav-hud-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .nav-hud-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.88rem; color: #38bdf8; } .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; display: inline-block; } .nav-hud-close { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.5); color: #fca5a5; padding: 4px 10px; border-radius: 8px; cursor: pointer; font-size: 0.74rem; font-weight: 700; } .nav-hud-close:hover { background: rgba(239, 68, 68, 0.4); } .nav-dest-info { font-size: 0.84rem; color: #f1f5f9; margin-bottom: 8px; } .dest-label { color: var(--gold); font-weight: 700; margin-left: 4px; } .nav-stats { display: flex; gap: 8px; margin-bottom: 10px; } .stat-pill { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); padding: 5px 12px; border-radius: 8px; display: flex; gap: 4px; align-items: baseline; } .stat-val { font-weight: 800; font-size: 0.95rem; color: #facc15; } .stat-lbl { font-size: 0.7rem; color: #94a3b8; } .nav-step { font-size: 0.78rem; background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.3); color: #a5f3fc; padding: 7px 12px; border-radius: 8px; } """ if '.sovereign-nav-hud' not in html: html = html.replace('', hud_css + '\n ', 1) # 2. Add HUD HTML hud_html = """
""" if 'id="sovereignNavHud"' not in html: html = html.replace('