diff --git a/Dockerfile b/Dockerfile index 8368248..0a85388 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,8 @@ COPY images/ /app/images/ COPY images/ /var/www/html/images/ COPY lang/ /app/lang/ COPY lang/ /var/www/html/lang/ +COPY themes/ /app/themes/ +COPY themes/ /var/www/html/themes/ # L'API n'est plus joignable que via Apache : le HTML appelle /api sur le même port (1001) RUN sed -i 's#const API_URL=[^;]*;#const API_URL="";#' /app/index.html /var/www/html/index.html /app/setup.html /var/www/html/setup.html 2>/dev/null || true COPY apache-ap.conf /etc/apache2/sites-available/000-default.conf diff --git a/ap.py b/ap.py index f0f30de..7f7046f 100644 --- a/ap.py +++ b/ap.py @@ -8026,6 +8026,21 @@ class Handler(BaseHTTPRequestHandler): except OSError: pass self.send_error(404, 'Fichier de langue introuvable') return + if self.path.startswith('/themes/'): + clean_name = os.path.basename(urllib.parse.urlparse(self.path).path) + theme_path = os.path.join(os.path.dirname(__file__), 'themes', clean_name) + if os.path.isfile(theme_path) and clean_name.endswith('.css'): + try: + body = open(theme_path, 'rb').read() + self.send_response(200) + self.send_header('Content-Type', 'text/css; charset=utf-8') + self.send_header('Content-Length', str(len(body))) + self.end_headers() + self.wfile.write(body) + return + except OSError: pass + self.send_error(404, 'Fichier de thème introuvable') + return if self.path == '/favicon.png' or self.path.startswith('/images/'): clean_name = 'favicon.png' if self.path == '/favicon.png' else os.path.basename(urllib.parse.urlparse(self.path).path) img_path = os.path.join(os.path.dirname(__file__), 'images', clean_name) diff --git a/apache-ap.conf b/apache-ap.conf index aec6f3b..dd68c98 100644 --- a/apache-ap.conf +++ b/apache-ap.conf @@ -20,6 +20,7 @@ ServerName localhost # Rediriger les ressources statiques relatives dans /setup/ et le favicon racine RewriteRule ^setup/lang/(.*)$ lang/$1 [L] + RewriteRule ^setup/themes/(.*)$ themes/$1 [L] RewriteRule ^setup/images/(.*)$ images/$1 [L] RewriteRule ^(?:setup/)?favicon\.png$ images/favicon.png [L] diff --git a/index.html b/index.html index b4a1d8b..8351629 100644 --- a/index.html +++ b/index.html @@ -63,111 +63,6 @@ })(); + + + + + +
diff --git a/setup.html b/setup.html index 964c632..f57eae7 100644 --- a/setup.html +++ b/setup.html @@ -81,90 +81,6 @@ })(); + + + + + + diff --git a/themes/dark.css b/themes/dark.css new file mode 100644 index 0000000..e5df2a8 --- /dev/null +++ b/themes/dark.css @@ -0,0 +1,17 @@ +/* ============================================================ + Thème Sombre (Par défaut) + ============================================================ */ +:root, +html[data-theme="dark"] { + --bg: #071326; + --panel: #0d1d36; + --panel2: #132746; + --line: #223c68; + --text: #eef4ff; + --muted: #9aa8c5; + --blue: #5ca7ff; + --blue-text: #071326; + --red: #ff6b6b; + --green: #32d583; + --yellow: #f6ad55; +} diff --git a/themes/futuristic.css b/themes/futuristic.css new file mode 100644 index 0000000..75948cd --- /dev/null +++ b/themes/futuristic.css @@ -0,0 +1,408 @@ +/* ============================================================ + Thème Futuriste (Cyberpunk & Sci-Fi HUD Edition) - Variables + ============================================================ */ +html[data-theme="futuristic"] { + --bg: #050814; + --panel: #0b1124; + --panel2: #101935; + --line: rgba(0, 240, 255, 0.2); + --text: #e6f6ff; + --muted: #7890b8; + --blue: #00f0ff; + --blue-text: #050814; + --red: #ff2a6d; + --green: #05ffa1; + --yellow: #fbbf24; +} + +/* ============================================================ + Thème Futuriste (Cyberpunk & Sci-Fi HUD Edition) + ============================================================ */ +html[data-theme="futuristic"] body { + background: #050814 radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 55%), + linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px), + linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, #050814 1px) fixed !important; + background-size: 100% 100%, 36px 36px, 36px 36px !important; + font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif !important; + color: #e6f6ff !important; +} + +html[data-theme="futuristic"] header { + background: linear-gradient(180deg, rgba(16, 25, 53, 0.95) 0%, rgba(11, 17, 36, 0.98) 100%) !important; + border: 1px solid rgba(0, 240, 255, 0.35) !important; + border-bottom: 2px solid #00f0ff !important; + border-radius: 8px !important; + box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.05) !important; + backdrop-filter: blur(8px) !important; +} + +html[data-theme="futuristic"] header h1 { + color: #00f0ff !important; + text-shadow: 0 0 12px rgba(0, 240, 255, 0.7) !important; + letter-spacing: 0.5px !important; + font-weight: 700 !important; +} + +html[data-theme="futuristic"] header .sub { + color: #7890b8 !important; + letter-spacing: 0.3px !important; +} + +html[data-theme="futuristic"] nav { + border-bottom: 1px solid rgba(0, 240, 255, 0.25) !important; + padding-bottom: 14px !important; +} + +html[data-theme="futuristic"] nav button, +html[data-theme="futuristic"] nav button.secondary { + background: rgba(11, 17, 36, 0.75) !important; + border: 1px solid rgba(0, 240, 255, 0.25) !important; + color: #7890b8 !important; + border-radius: 4px !important; + box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.03) !important; + transition: all .2s ease !important; +} + +html[data-theme="futuristic"] nav button:hover:not(.active), +html[data-theme="futuristic"] nav button.secondary:hover:not(.active) { + border-color: #00f0ff !important; + color: #00f0ff !important; + box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important; +} + +html[data-theme="futuristic"] nav button.active { + background: rgba(5, 255, 161, 0.15) !important; + border: 1px solid #05ffa1 !important; + color: #05ffa1 !important; + font-weight: 700 !important; + text-shadow: 0 0 8px rgba(5, 255, 161, 0.6) !important; + box-shadow: 0 0 16px rgba(5, 255, 161, 0.35), inset 0 0 8px rgba(5, 255, 161, 0.15) !important; +} + +html[data-theme="futuristic"] .card { + background: rgba(11, 17, 36, 0.88) !important; + border: 1px solid rgba(0, 240, 255, 0.25) !important; + border-radius: 8px !important; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.08), inset 0 0 12px rgba(0, 240, 255, 0.03) !important; + backdrop-filter: blur(6px) !important; +} + +html[data-theme="futuristic"] .card:hover { + border-color: rgba(0, 240, 255, 0.45) !important; + box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.05) !important; +} + +html[data-theme="futuristic"] h2, +html[data-theme="futuristic"] h3, +html[data-theme="futuristic"] .card-title { + color: #00f0ff !important; + text-shadow: 0 0 8px rgba(0, 240, 255, 0.4) !important; + letter-spacing: 0.5px !important; +} + +html[data-theme="futuristic"] .label { + color: #7890b8 !important; + text-transform: uppercase !important; + letter-spacing: 0.8px !important; + font-size: 11px !important; + font-weight: 700 !important; +} + +html[data-theme="futuristic"] button, +html[data-theme="futuristic"] .header-actions button { + background: rgba(0, 240, 255, 0.1) !important; + border: 1px solid rgba(0, 240, 255, 0.45) !important; + color: #00f0ff !important; + border-radius: 6px !important; + font-weight: 600 !important; + letter-spacing: 0.4px !important; + box-shadow: 0 0 10px rgba(0, 240, 255, 0.15) !important; + transition: all .2s ease !important; +} + +html[data-theme="futuristic"] button:hover:not(:disabled), +html[data-theme="futuristic"] .header-actions button:hover:not(:disabled) { + background: rgba(0, 240, 255, 0.25) !important; + border-color: #00f0ff !important; + color: #ffffff !important; + box-shadow: 0 0 18px rgba(0, 240, 255, 0.5) !important; +} + +html[data-theme="futuristic"] #authSubmit, +html[data-theme="futuristic"] #saveCustomization, +html[data-theme="futuristic"] .btn-primary { + background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(5, 255, 161, 0.35) 100%) !important; + border: 1px solid #05ffa1 !important; + color: #05ffa1 !important; + font-weight: 700 !important; + text-shadow: 0 0 8px rgba(5, 255, 161, 0.6) !important; + box-shadow: 0 0 18px rgba(5, 255, 161, 0.3) !important; +} + +html[data-theme="futuristic"] #authSubmit:hover, +html[data-theme="futuristic"] #saveCustomization:hover, +html[data-theme="futuristic"] .btn-primary:hover { + background: linear-gradient(135deg, rgba(0, 240, 255, 0.5) 0%, rgba(5, 255, 161, 0.55) 100%) !important; + color: #ffffff !important; + box-shadow: 0 0 24px rgba(5, 255, 161, 0.6) !important; +} + +html[data-theme="futuristic"] #btnStop, +html[data-theme="futuristic"] button.danger, +html[data-theme="futuristic"] .btn-danger { + background: rgba(255, 42, 109, 0.15) !important; + border: 1px solid #ff2a6d !important; + color: #ff2a6d !important; + text-shadow: 0 0 8px rgba(255, 42, 109, 0.6) !important; + box-shadow: 0 0 14px rgba(255, 42, 109, 0.25) !important; +} + +html[data-theme="futuristic"] #btnStop:hover, +html[data-theme="futuristic"] button.danger:hover, +html[data-theme="futuristic"] .btn-danger:hover { + background: rgba(255, 42, 109, 0.35) !important; + color: #ffffff !important; + box-shadow: 0 0 22px rgba(255, 42, 109, 0.6) !important; +} + +html[data-theme="futuristic"] input[type="text"], +html[data-theme="futuristic"] input[type="password"], +html[data-theme="futuristic"] input[type="number"], +html[data-theme="futuristic"] select, +html[data-theme="futuristic"] textarea { + background: #080d1f !important; + border: 1px solid rgba(0, 240, 255, 0.3) !important; + color: #00f0ff !important; + border-radius: 4px !important; + box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6) !important; + transition: all .2s ease !important; +} + +html[data-theme="futuristic"] input:focus, +html[data-theme="futuristic"] select:focus, +html[data-theme="futuristic"] textarea:focus { + outline: none !important; + border-color: #00f0ff !important; + box-shadow: 0 0 12px rgba(0, 240, 255, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.6) !important; +} + +html[data-theme="futuristic"] table { + background: rgba(11, 17, 36, 0.9) !important; + border: 1px solid rgba(0, 240, 255, 0.2) !important; +} + +html[data-theme="futuristic"] th { + background: rgba(16, 25, 53, 0.95) !important; + color: #00f0ff !important; + border-bottom: 2px solid rgba(0, 240, 255, 0.35) !important; + text-transform: uppercase !important; + letter-spacing: 0.8px !important; + font-size: 11px !important; +} + +html[data-theme="futuristic"] td { + border-bottom: 1px solid rgba(0, 240, 255, 0.12) !important; + color: #e6f6ff !important; +} + +html[data-theme="futuristic"] tr:hover td { + background: rgba(0, 240, 255, 0.08) !important; +} + +html[data-theme="futuristic"] .modal-overlay { + background: rgba(4, 7, 16, 0.75) !important; + backdrop-filter: blur(6px) !important; +} + +html[data-theme="futuristic"] .modal-card { + background: #0b1124 !important; + border: 1px solid #00f0ff !important; + box-shadow: 0 0 35px rgba(0, 240, 255, 0.35), inset 0 0 15px rgba(0, 240, 255, 0.08) !important; + border-radius: 8px !important; +} + +html[data-theme="futuristic"] #authView .card, +html[data-theme="futuristic"] #setupView .card { + background: rgba(11, 17, 36, 0.95) !important; + border: 1px solid #00f0ff !important; + box-shadow: 0 0 35px rgba(0, 240, 255, 0.35), inset 0 0 20px rgba(0, 240, 255, 0.08) !important; + border-radius: 8px !important; +} + +html[data-theme="futuristic"] #authView h1 { + color: #00f0ff !important; + text-shadow: 0 0 15px rgba(0, 240, 255, 0.8) !important; + letter-spacing: 1.5px !important; +} + +html[data-theme="futuristic"] #authView .muted { + color: #7890b8 !important; + letter-spacing: 0.5px !important; +} + +html[data-theme="futuristic"] #authView .label { + color: #00f0ff !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; + font-size: 11px !important; + font-weight: 700 !important; +} + +html[data-theme="futuristic"] #authView input[type="text"], +html[data-theme="futuristic"] #authView input[type="password"], +html[data-theme="futuristic"] #authThemeSelect { + background: rgba(7, 12, 28, 0.85) !important; + border: 1px solid rgba(0, 240, 255, 0.35) !important; + color: #e6f6ff !important; + border-radius: 6px !important; + box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1) !important; +} + +html[data-theme="futuristic"] #authView input[type="text"]:focus, +html[data-theme="futuristic"] #authView input[type="password"]:focus, +html[data-theme="futuristic"] #authThemeSelect:focus { + border-color: #00f0ff !important; + box-shadow: 0 0 15px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.2) !important; +} + +html[data-theme="futuristic"] #toggleAuthPassword { + background: rgba(0, 240, 255, 0.1) !important; + border: 1px solid rgba(0, 240, 255, 0.45) !important; + color: #00f0ff !important; + border-radius: 6px !important; + box-shadow: 0 0 10px rgba(0, 240, 255, 0.15) !important; +} + +html[data-theme="futuristic"] #authSubmit { + background: linear-gradient(135deg, #00f0ff 0%, #7928ca 100%) !important; + border: 1px solid #00f0ff !important; + color: #ffffff !important; + border-radius: 8px !important; + font-weight: 700 !important; + text-shadow: 0 0 8px rgba(0, 0, 0, 0.8) !important; + box-shadow: 0 0 20px rgba(0, 240, 255, 0.5) !important; + letter-spacing: 1px !important; +} + +html[data-theme="futuristic"] #authSubmit:hover { + box-shadow: 0 0 30px rgba(0, 240, 255, 0.8), 0 0 15px rgba(121, 40, 202, 0.6) !important; + transform: translateY(-1px); +} + +html[data-theme="futuristic"] #authPasskeyDivider span { + color: #00f0ff !important; + text-shadow: 0 0 6px rgba(0, 240, 255, 0.5) !important; + letter-spacing: 1px !important; +} + +html[data-theme="futuristic"] #authPasskeyDivider div { + background: rgba(0, 240, 255, 0.35) !important; +} + +html[data-theme="futuristic"] #btnAuthPasskey { + background: rgba(255, 0, 127, 0.1) !important; + border: 1px solid #ff007f !important; + color: #ff007f !important; + border-radius: 8px !important; + text-shadow: 0 0 8px rgba(255, 0, 127, 0.6) !important; + box-shadow: 0 0 15px rgba(255, 0, 127, 0.25) !important; + letter-spacing: 0.5px !important; + font-weight: 700 !important; +} + +html[data-theme="futuristic"] #btnAuthPasskey:hover { + background: rgba(255, 0, 127, 0.22) !important; + box-shadow: 0 0 25px rgba(255, 0, 127, 0.55) !important; + transform: translateY(-1px); +} + +html[data-theme="futuristic"] #authPasskeyInfo { + color: #7890b8 !important; + letter-spacing: 0.4px !important; +} + +html[data-theme="futuristic"] .settings-nav-btn { + background: rgba(11, 17, 36, 0.75) !important; + border: 1px solid rgba(0, 240, 255, 0.25) !important; + color: #7890b8 !important; +} + +html[data-theme="futuristic"] .settings-nav-btn.active { + background: rgba(0, 240, 255, 0.2) !important; + border-color: #00f0ff !important; + color: #00f0ff !important; + text-shadow: 0 0 8px rgba(0, 240, 255, 0.6) !important; + box-shadow: 0 0 15px rgba(0, 240, 255, 0.3) !important; +} + +html[data-theme="futuristic"] .notice { + background: rgba(0, 240, 255, 0.07) !important; + border: 1px solid rgba(0, 240, 255, 0.35) !important; + color: #e6f6ff !important; + border-radius: 6px !important; +} + +html[data-theme="futuristic"] .pill, +html[data-theme="futuristic"] .badge { + border: 1px solid rgba(0, 240, 255, 0.3) !important; + background: rgba(0, 240, 255, 0.08) !important; + color: #00f0ff !important; + letter-spacing: 0.3px !important; +} + +html[data-theme="futuristic"] #updated, +html[data-theme="futuristic"] #topoUpdated, +html[data-theme="futuristic"] #statsChartUpdated, +html[data-theme="futuristic"] #statsTrafficUpdated, +html[data-theme="futuristic"] #statsHistoryUpdated, +html[data-theme="futuristic"] #captureUpdated, +html[data-theme="futuristic"] #logsUpdated, +html[data-theme="futuristic"] #blockedUpdated, +html[data-theme="futuristic"] .pill-updated, +html[data-theme="futuristic"] .pill-green { + background: rgba(5, 255, 161, 0.12) !important; + color: #05ffa1 !important; + border: 1px solid #05ffa1 !important; + box-shadow: 0 0 8px rgba(5, 255, 161, 0.25) !important; +} + +html[data-theme="futuristic"] .lang-card { + background: rgba(11, 17, 36, 0.8) !important; + border: 1px solid rgba(0, 240, 255, 0.25) !important; + color: #e6f6ff !important; +} + +html[data-theme="futuristic"] .lang-card.active { + border-color: #00f0ff !important; + background: rgba(0, 240, 255, 0.15) !important; + box-shadow: 0 0 15px rgba(0, 240, 255, 0.35) !important; +} + +html[data-theme="futuristic"] .topo-map-card, +html[data-theme="futuristic"] .topo-client-body { + background: rgba(11, 17, 36, 0.95) !important; + border-color: rgba(0, 240, 255, 0.3) !important; + color: #e6f6ff !important; +} + +html[data-theme="futuristic"] ::-webkit-scrollbar { + width: 10px; + height: 10px; +} + +html[data-theme="futuristic"] ::-webkit-scrollbar-track { + background: #050814; + border: 1px solid rgba(0, 240, 255, 0.15); +} + +html[data-theme="futuristic"] ::-webkit-scrollbar-thumb { + background: rgba(0, 240, 255, 0.3); + border: 1px solid #00f0ff; + border-radius: 4px; + box-shadow: 0 0 8px rgba(0, 240, 255, 0.4); +} + +html[data-theme="futuristic"] ::-webkit-scrollbar-thumb:hover { + background: rgba(0, 240, 255, 0.6); + box-shadow: 0 0 14px rgba(0, 240, 255, 0.7); +} diff --git a/themes/hacker.css b/themes/hacker.css new file mode 100644 index 0000000..dd129b6 --- /dev/null +++ b/themes/hacker.css @@ -0,0 +1,425 @@ +/* ============================================================ + Thème Hacker (Terminal Matrix & Kali Console) - Variables + ============================================================ */ +html[data-theme="hacker"] { + --bg: #000000; + --panel: #050d05; + --panel2: #091709; + --line: rgba(0, 255, 65, 0.35); + --text: #00ff41; + --muted: #00aa2b; + --blue: #00ff41; + --blue-text: #000000; + --red: #ff1133; + --green: #00ff41; + --yellow: #ffcc00; +} + +/* ============================================================ + Thème Hacker (Terminal Matrix & Kali Console) + ============================================================ */ +html[data-theme="hacker"] body { + background: #000000 linear-gradient(rgba(0, 255, 65, 0.03) 50%, rgba(0, 0, 0, 0.25) 50%) fixed !important; + background-size: 100% 4px !important; + font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', Consolas, monospace !important; + color: #00ff41 !important; + text-shadow: 0 0 2px rgba(0, 255, 65, 0.4) !important; +} + +html[data-theme="hacker"] header { + background: #020802 !important; + border: 1px solid #00ff41 !important; + border-radius: 0 !important; + box-shadow: 0 0 15px rgba(0, 255, 65, 0.3), inset 0 0 10px rgba(0, 255, 65, 0.1) !important; +} + +html[data-theme="hacker"] header h1 { + color: #00ff41 !important; + text-shadow: 0 0 10px rgba(0, 255, 65, 0.8) !important; + font-weight: 700 !important; + letter-spacing: 1px !important; +} + +html[data-theme="hacker"] header h1::before { + content: "root@ap:~# "; + color: #00aa2b; + font-size: 16px; + margin-right: 6px; +} + +html[data-theme="hacker"] header .sub { + color: #00aa2b !important; +} + +html[data-theme="hacker"] nav { + border-bottom: 1px solid #00ff41 !important; + padding-bottom: 12px !important; +} + +html[data-theme="hacker"] nav button, +html[data-theme="hacker"] nav button.secondary { + background: #020802 !important; + border: 1px solid rgba(0, 255, 65, 0.4) !important; + color: #00aa2b !important; + border-radius: 0 !important; + font-family: inherit !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; + font-size: 12px !important; +} + +html[data-theme="hacker"] nav button:hover:not(.active), +html[data-theme="hacker"] nav button.secondary:hover:not(.active) { + background: rgba(0, 255, 65, 0.15) !important; + border-color: #00ff41 !important; + color: #00ff41 !important; + box-shadow: 0 0 10px rgba(0, 255, 65, 0.4) !important; +} + +html[data-theme="hacker"] nav button.active { + background: #00ff41 !important; + color: #000000 !important; + border: 1px solid #00ff41 !important; + border-radius: 0 !important; + font-weight: 700 !important; + box-shadow: 0 0 15px rgba(0, 255, 65, 0.6) !important; + text-shadow: none !important; +} + +html[data-theme="hacker"] .card { + background: #030a03 !important; + border: 1px solid #00ff41 !important; + border-radius: 0 !important; + box-shadow: 0 0 12px rgba(0, 255, 65, 0.2), inset 0 0 8px rgba(0, 255, 65, 0.05) !important; + color: #00ff41 !important; +} + +html[data-theme="hacker"] h2, +html[data-theme="hacker"] h3, +html[data-theme="hacker"] .card-title { + color: #00ff41 !important; + text-shadow: 0 0 8px rgba(0, 255, 65, 0.6) !important; + font-family: inherit !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; +} + +html[data-theme="hacker"] h2::before, +html[data-theme="hacker"] h3::before, +html[data-theme="hacker"] .card-title::before { + content: "> "; + color: #00ff41; +} + +html[data-theme="hacker"] .label { + color: #00aa2b !important; + font-family: inherit !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; +} + +html[data-theme="hacker"] button, +html[data-theme="hacker"] .header-actions button { + background: #020802 !important; + border: 1px solid #00ff41 !important; + color: #00ff41 !important; + border-radius: 0 !important; + font-family: inherit !important; + font-weight: 700 !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; + box-shadow: 0 0 8px rgba(0, 255, 65, 0.2) !important; + transition: all .15s ease !important; +} + +html[data-theme="hacker"] button:hover:not(:disabled), +html[data-theme="hacker"] .header-actions button:hover:not(:disabled) { + background: #00ff41 !important; + color: #000000 !important; + box-shadow: 0 0 18px rgba(0, 255, 65, 0.7) !important; + text-shadow: none !important; +} + +html[data-theme="hacker"] #authSubmit, +html[data-theme="hacker"] #saveCustomization, +html[data-theme="hacker"] .btn-primary { + background: #00ff41 !important; + border: 1px solid #00ff41 !important; + color: #000000 !important; + font-weight: 700 !important; + box-shadow: 0 0 16px rgba(0, 255, 65, 0.6) !important; + text-shadow: none !important; +} + +html[data-theme="hacker"] #authSubmit:hover, +html[data-theme="hacker"] #saveCustomization:hover, +html[data-theme="hacker"] .btn-primary:hover { + background: #33ff66 !important; + box-shadow: 0 0 24px rgba(0, 255, 65, 0.9) !important; +} + +html[data-theme="hacker"] #btnStop, +html[data-theme="hacker"] button.danger, +html[data-theme="hacker"] .btn-danger { + background: #1a0000 !important; + border: 1px solid #ff1133 !important; + color: #ff1133 !important; + text-shadow: 0 0 6px rgba(255, 17, 51, 0.6) !important; + box-shadow: 0 0 10px rgba(255, 17, 51, 0.3) !important; +} + +html[data-theme="hacker"] #btnStop:hover, +html[data-theme="hacker"] button.danger:hover, +html[data-theme="hacker"] .btn-danger:hover { + background: #ff1133 !important; + color: #000000 !important; + box-shadow: 0 0 20px rgba(255, 17, 51, 0.8) !important; + text-shadow: none !important; +} + +html[data-theme="hacker"] input[type="text"], +html[data-theme="hacker"] input[type="password"], +html[data-theme="hacker"] input[type="number"], +html[data-theme="hacker"] select, +html[data-theme="hacker"] textarea { + background: #020602 !important; + border: 1px solid #00aa2b !important; + color: #00ff41 !important; + border-radius: 0 !important; + font-family: inherit !important; +} + +html[data-theme="hacker"] input:focus, +html[data-theme="hacker"] select:focus, +html[data-theme="hacker"] textarea:focus { + outline: none !important; + border-color: #00ff41 !important; + box-shadow: 0 0 10px rgba(0, 255, 65, 0.5) !important; +} + +html[data-theme="hacker"] table { + background: #020602 !important; + border: 1px solid #00ff41 !important; + font-family: inherit !important; +} + +html[data-theme="hacker"] th { + background: #051405 !important; + color: #00ff41 !important; + border-bottom: 2px solid #00ff41 !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; +} + +html[data-theme="hacker"] td { + border-bottom: 1px solid rgba(0, 255, 65, 0.2) !important; + color: #00ff41 !important; +} + +html[data-theme="hacker"] tr:hover td { + background: rgba(0, 255, 65, 0.12) !important; +} + +html[data-theme="hacker"] .modal-overlay { + background: rgba(0, 0, 0, 0.85) !important; +} + +html[data-theme="hacker"] .modal-card { + background: #030803 !important; + border: 2px solid #00ff41 !important; + border-radius: 0 !important; + box-shadow: 0 0 30px rgba(0, 255, 65, 0.4) !important; +} + +html[data-theme="hacker"] #authView .card, +html[data-theme="hacker"] #setupView .card { + background: #030803 !important; + border: 2px solid #00ff41 !important; + border-radius: 0 !important; + box-shadow: 0 0 25px rgba(0, 255, 65, 0.35) !important; + font-family: 'Fira Code', 'Courier New', monospace !important; +} + +html[data-theme="hacker"] #authView h1 { + color: #00ff41 !important; + font-family: inherit !important; + text-shadow: 0 0 8px rgba(0, 255, 65, 0.7) !important; + letter-spacing: 1px !important; +} + +html[data-theme="hacker"] #authView h1::before { + content: "root@auth:~# "; + color: #00aa2b; + font-size: 0.8em; +} + +html[data-theme="hacker"] #authView .muted { + color: #00aa2b !important; + font-family: inherit !important; +} + +html[data-theme="hacker"] #authView .label { + color: #00ff41 !important; + font-family: inherit !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; + font-size: 11px !important; +} + +html[data-theme="hacker"] #authView input[type="text"], +html[data-theme="hacker"] #authView input[type="password"], +html[data-theme="hacker"] #authThemeSelect { + background: #010401 !important; + border: 1px solid #00aa2b !important; + color: #00ff41 !important; + border-radius: 0 !important; + font-family: inherit !important; + box-shadow: inset 0 0 8px rgba(0, 255, 65, 0.15) !important; +} + +html[data-theme="hacker"] #authView input[type="text"]:focus, +html[data-theme="hacker"] #authView input[type="password"]:focus, +html[data-theme="hacker"] #authThemeSelect:focus { + border-color: #00ff41 !important; + box-shadow: 0 0 10px rgba(0, 255, 65, 0.4), inset 0 0 8px rgba(0, 255, 65, 0.25) !important; +} + +html[data-theme="hacker"] #toggleAuthPassword { + background: #020802 !important; + border: 1px solid #00aa2b !important; + color: #00ff41 !important; + border-radius: 0 !important; +} + +html[data-theme="hacker"] #authSubmit { + background: #00ff41 !important; + border: 1px solid #00ff41 !important; + color: #000000 !important; + border-radius: 0 !important; + font-family: inherit !important; + font-weight: 700 !important; + text-transform: uppercase !important; + letter-spacing: 1px !important; + box-shadow: 0 0 15px rgba(0, 255, 65, 0.5) !important; +} + +html[data-theme="hacker"] #authSubmit:hover { + background: #33ff66 !important; + box-shadow: 0 0 25px rgba(0, 255, 65, 0.8) !important; +} + +html[data-theme="hacker"] #authPasskeyDivider span { + color: #00aa2b !important; + font-family: inherit !important; + letter-spacing: 1px !important; +} + +html[data-theme="hacker"] #authPasskeyDivider div { + background: #00aa2b !important; +} + +html[data-theme="hacker"] #btnAuthPasskey { + background: #020602 !important; + border: 1px solid #00aa2b !important; + color: #00ff41 !important; + border-radius: 0 !important; + font-family: inherit !important; + font-weight: 700 !important; + box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) !important; +} + +html[data-theme="hacker"] #btnAuthPasskey:hover { + background: rgba(0, 255, 65, 0.15) !important; + border-color: #00ff41 !important; + box-shadow: 0 0 20px rgba(0, 255, 65, 0.5) !important; +} + +html[data-theme="hacker"] #authPasskeyInfo { + color: #00aa2b !important; + font-family: inherit !important; +} + +html[data-theme="hacker"] .settings-nav-btn { + background: #020602 !important; + border: 1px solid #00aa2b !important; + color: #00aa2b !important; + border-radius: 0 !important; + font-family: inherit !important; +} + +html[data-theme="hacker"] .settings-nav-btn.active { + background: #00ff41 !important; + border-color: #00ff41 !important; + color: #000000 !important; + text-shadow: none !important; +} + +html[data-theme="hacker"] .notice { + background: rgba(0, 255, 65, 0.08) !important; + border: 1px solid #00ff41 !important; + color: #00ff41 !important; + border-radius: 0 !important; +} + +html[data-theme="hacker"] .pill, +html[data-theme="hacker"] .badge { + border: 1px solid #00ff41 !important; + border-radius: 0 !important; + background: rgba(0, 255, 65, 0.1) !important; + color: #00ff41 !important; + font-family: inherit !important; +} + +html[data-theme="hacker"] #updated, +html[data-theme="hacker"] #topoUpdated, +html[data-theme="hacker"] #statsChartUpdated, +html[data-theme="hacker"] #statsTrafficUpdated, +html[data-theme="hacker"] #statsHistoryUpdated, +html[data-theme="hacker"] #captureUpdated, +html[data-theme="hacker"] #logsUpdated, +html[data-theme="hacker"] #blockedUpdated, +html[data-theme="hacker"] .pill-updated, +html[data-theme="hacker"] .pill-green { + background: #00ff41 !important; + color: #000000 !important; + border: 1px solid #00ff41 !important; + border-radius: 0 !important; + text-shadow: none !important; + box-shadow: 0 0 10px rgba(0, 255, 65, 0.4) !important; +} + +html[data-theme="hacker"] .lang-card { + background: #020602 !important; + border: 1px solid #00aa2b !important; + border-radius: 0 !important; + color: #00ff41 !important; +} + +html[data-theme="hacker"] .lang-card.active { + border-color: #00ff41 !important; + background: rgba(0, 255, 65, 0.2) !important; + box-shadow: 0 0 15px rgba(0, 255, 65, 0.4) !important; +} + +html[data-theme="hacker"] .topo-map-card, +html[data-theme="hacker"] .topo-client-body { + background: #020602 !important; + border-color: #00ff41 !important; + border-radius: 0 !important; + color: #00ff41 !important; +} + +html[data-theme="hacker"] ::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +html[data-theme="hacker"] ::-webkit-scrollbar-track { + background: #000000; + border: 1px solid #00aa2b; +} + +html[data-theme="hacker"] ::-webkit-scrollbar-thumb { + background: #00ff41; + box-shadow: 0 0 8px rgba(0, 255, 65, 0.6); +} diff --git a/themes/light.css b/themes/light.css new file mode 100644 index 0000000..976b73b --- /dev/null +++ b/themes/light.css @@ -0,0 +1,263 @@ +/* ============================================================ + Thème Clair + ============================================================ */ +html[data-theme="light"] { + --bg: #f2f5fa; + --panel: #ffffff; + --panel2: #e9eef7; + --line: #d2dcec; + --text: #15203a; + --muted: #5b6b8c; + --blue: #1e6ef0; + --blue-text: #ffffff; + --red: #e53935; + --green: #13a06a; + --yellow: #dd6b20; +} + +html[data-theme="light"] nav button, +html[data-theme="light"] nav button.secondary { + background: var(--panel2) !important; + border: 1px solid var(--line) !important; + color: var(--muted) !important +} + +html[data-theme="light"] nav button.active { + background: var(--green) !important; + color: #ffffff !important; + border-color: var(--green) !important; + box-shadow: 0 2px 8px rgba(19, 160, 106, .3) +} + +/* Boutons et éléments actifs avec fond bleu en thème clair */ +html[data-theme="light"] button:not(.secondary):not(.danger):not(.settings-nav-btn):not(.stats-range-btn):not(.filter-chip):not(.clear-filter-btn):not([class*="badge"]):not([class*="pill"]):not(.device-pill), +html[data-theme="light"] button.primary, +html[data-theme="light"] .btn-primary, +html[data-theme="light"] #apControl, +html[data-theme="light"] #refresh, +html[data-theme="light"] #startCaptureBtn, +html[data-theme="light"] .stats-range-btn.active, +html[data-theme="light"] .filter-chip.active, +html[data-theme="light"] .settings-nav-btn.active, +html[data-theme="light"] button[style*="var(--blue)"], +html[data-theme="light"] button[style*="background: var(--blue)"], +html[data-theme="light"] button[style*="background:var(--blue)"], +html[data-theme="light"] .secondary[style*="var(--blue)"], +html[data-theme="light"] .secondary[style*="background: var(--blue)"], +html[data-theme="light"] .secondary[style*="background:var(--blue)"], +html[data-theme="light"] .pagination-btns button[style*="var(--blue)"], +html[data-theme="light"] .pagination-btns button[style*="background:var(--blue)"], +html[data-theme="light"] .pagination-btns button.active, +html[data-theme="light"] .pagination button[style*="var(--blue)"], +html[data-theme="light"] .pagination button[style*="background:var(--blue)"], +html[data-theme="light"] .pagination button.active { + color: #ffffff !important; +} + +/* Onglets de sous-navigation inactifs en thème clair (ex: Network Topology) */ +html[data-theme="light"] .settings-nav-btn:not(.active) { + background: var(--panel2) !important; + color: var(--muted) !important; + border: 1px solid var(--line) !important; +} +html[data-theme="light"] .settings-nav-btn:hover:not(.active) { + background: var(--panel) !important; + color: var(--text) !important; + border-color: var(--blue) !important; +} + +/* Périodes de stats inactives en thème clair (Weekly, Monthly, Yearly) */ +html[data-theme="light"] .stats-range-btn:not(.active) { + background: transparent !important; + color: var(--muted) !important; +} +html[data-theme="light"] .stats-range-btn:hover:not(.active) { + color: var(--text) !important; +} + +/* Puces de filtrage Wireshark inactives en thème clair */ +html[data-theme="light"] .filter-chip:not(.active) { + background: var(--panel2) !important; + color: var(--muted) !important; + border: 1px solid var(--line) !important; +} +html[data-theme="light"] .filter-chip:hover:not(.active) { + color: var(--text) !important; + border-color: var(--blue) !important; +} + +html[data-theme="light"] #authView .card { + background: #ffffff !important; + border: 1px solid #d2dcec !important; + box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important; +} + +html[data-theme="light"] #authView h1 { + color: #15203a !important; +} + +html[data-theme="light"] #authView .muted { + color: #5b6b8c !important; +} + +html[data-theme="light"] #authSubmit { + background: #1e6ef0 !important; + color: #ffffff !important; + border: none !important; + box-shadow: 0 2px 8px rgba(30, 110, 240, 0.25) !important; +} + +html[data-theme="light"] #authSubmit:hover { + background: #1558c4 !important; +} + +html[data-theme="light"] #btnAuthPasskey { + background: rgba(30, 110, 240, 0.08) !important; + border: 1px solid rgba(30, 110, 240, 0.35) !important; + color: #1e6ef0 !important; +} + +html[data-theme="light"] #btnAuthPasskey:hover { + background: rgba(30, 110, 240, 0.16) !important; + border-color: rgba(30, 110, 240, 0.6) !important; +} + +html[data-theme="light"] #authPasskeyDivider span { + color: #5b6b8c !important; +} + +html[data-theme="light"] #authPasskeyDivider div { + background: #d2dcec !important; +} + +html[data-theme="light"] .settings-nav-btn.active { + background: var(--blue) !important; + color: #ffffff !important; + border-color: var(--blue) !important +} + +html[data-theme="light"] .avatar { + background: #cfe0fb; + color: #15203a +} + +html[data-theme="light"] #updated, +html[data-theme="light"] #topoUpdated, +html[data-theme="light"] #statsChartUpdated, +html[data-theme="light"] #statsTrafficUpdated, +html[data-theme="light"] #statsHistoryUpdated, +html[data-theme="light"] #captureUpdated, +html[data-theme="light"] #logsUpdated, +html[data-theme="light"] #blockedUpdated, +html[data-theme="light"] .pill-updated, +html[data-theme="light"] .pill-green { + background: #d9f5e8 !important; + color: #13a06a !important; + border: 1px solid #a3e6c5 !important +} + +html[data-theme="light"] .badge { + background: #d9f5e8; + color: #13a06a; + border: 1px solid #a3e6c5; +} + +html[data-theme="light"] .pill-blue, +html[data-theme="light"] #networkModeBadge.pill-blue { + background: #e1edfe !important; + color: #1558c4 !important; + border: 1px solid #b8d5fb !important; +} + +html[data-theme="light"] #networkModeBadge.pill-green { + background: #d9f5e8 !important; + color: #13a06a !important; + border: 1px solid #a3e6c5 !important; +} + +html[data-theme="light"] .proto-dns { + background: #e0f2fe; + color: #0284c7; + border-color: #bae6fd +} + +html[data-theme="light"] .proto-icmp { + background: #fce7f3; + color: #db2777; + border-color: #fbcfe8 +} + +html[data-theme="light"] .proto-tcp { + background: #f1f5f9; + color: #475569; + border-color: #cbd5e1 +} + +html[data-theme="light"] .proto-udp { + background: #f3e8ff; + color: #7e22ce; + border-color: #e9d5ff +} + +html[data-theme="light"] .proto-arp { + background: #fef9c3; + color: #a16207; + border-color: #fde047 +} + +html[data-theme="light"] .proto-dhcp { + background: #ffedd5; + color: #c2410c; + border-color: #fed7aa +} + +html[data-theme="light"] .proto-tls { + background: #dcfce7; + color: #15803d; + border-color: #bbf7d0 +} + +html[data-theme="light"] .proto-http { + background: #d1fae5; + color: #047857; + border-color: #a7f3d0 +} + +html[data-theme="light"] .ip-country-badge.badge-lan { + background: #e0f2fe; + border-color: #bae6fd; + color: #0284c7 +} + +html[data-theme="light"] .ip-country-badge.badge-country { + background: #dcfce7; + border-color: #bbf7d0; + color: #15803d +} + +html[data-theme="light"] .ip-country-badge.badge-ext { + background: #fef9c3; + border-color: #fde047; + color: #a16207 +} + +html[data-theme="light"] .badge-vpn-wg { + background: #fee2e2; + border-color: #fca5a5; + color: #991b1b +} + +html[data-theme="light"] .badge-vpn-ovpn { + background: #ffedd5; + border-color: #fed7aa; + color: #c2410c +} + +html[data-theme="light"] .topo-map-card { + background: linear-gradient(180deg, #ffffff, #f2f6fc); + box-shadow: inset 0 0 40px rgba(0, 0, 0, .03) +} + +html[data-theme="light"] .topo-client-body { + border-color: rgba(0, 0, 0, .06) +} diff --git a/themes/macos.css b/themes/macos.css new file mode 100644 index 0000000..e39a98d --- /dev/null +++ b/themes/macos.css @@ -0,0 +1,936 @@ +/* ============================================================ + Thème macOS (Apple Aqua & Glassmorphism) - Variables + ============================================================ */ +html[data-theme="macos"] { + --bg: #f5f5f7; + --panel: #ffffff; + --panel2: #f0f2f5; + --line: #e1e4e8; + --text: #1d1d1f; + --muted: #86868b; + --blue: #0071e3; + --blue-text: #ffffff; + --red: #ff3b30; + --green: #34c759; + --yellow: #ff9500; +} + +@media (prefers-color-scheme: dark) { + html[data-theme="macos"] { + --bg: #1c1c1e; + --panel: #28282a; + --panel2: #323236; + --line: rgba(255, 255, 255, 0.12); + --text: #f5f5f7; + --muted: #98989d; + --blue: #0a84ff; + --blue-text: #ffffff; + --red: #ff453a; + --green: #32d74b; + --yellow: #ff9f0a; + } +} + +html[data-theme="macos"][data-macos-mode="dark"] { + --bg: #1c1c1e; + --panel: #28282a; + --panel2: #323236; + --line: rgba(255, 255, 255, 0.12); + --text: #f5f5f7; + --muted: #98989d; + --blue: #0a84ff; + --blue-text: #ffffff; + --red: #ff453a; + --green: #32d74b; + --yellow: #ff9f0a; +} + +/* ============================================================ + Thème macOS (Apple Aqua & Glassmorphism) + ============================================================ */ +html[data-theme="macos"] body { + background: #f5f5f7 linear-gradient(180deg, #e4ecf7 0%, #f5f5f7 400px) fixed no-repeat !important; + font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif !important; + color: #1d1d1f !important; + -webkit-font-smoothing: antialiased !important; +} + +html[data-theme="macos"] header { + background: rgba(255, 255, 255, 0.8) !important; + backdrop-filter: saturate(180%) blur(20px) !important; + -webkit-backdrop-filter: saturate(180%) blur(20px) !important; + border: 1px solid rgba(0, 0, 0, 0.08) !important; + border-radius: 12px !important; + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important; + padding: 14px 20px !important; +} + +html[data-theme="macos"] header h1 { + color: #1d1d1f !important; + font-weight: 700 !important; + letter-spacing: -0.5px !important; +} + +html[data-theme="macos"] header .sub { + color: #86868b !important; + font-weight: 400 !important; +} + +html[data-theme="macos"] nav { + background: rgba(235, 235, 240, 0.7) !important; + backdrop-filter: blur(12px) !important; + padding: 6px !important; + border-radius: 10px !important; + border: 1px solid rgba(0, 0, 0, 0.06) !important; + gap: 4px !important; +} + +html[data-theme="macos"] nav button, +html[data-theme="macos"] nav button.secondary { + background: transparent !important; + border: 0 !important; + color: #515154 !important; + border-radius: 7px !important; + font-weight: 500 !important; + font-size: 13px !important; + box-shadow: none !important; + transition: all .15s ease !important; +} + +html[data-theme="macos"] nav button:hover:not(.active), +html[data-theme="macos"] nav button.secondary:hover:not(.active) { + background: rgba(0, 0, 0, 0.05) !important; + color: #1d1d1f !important; +} + +html[data-theme="macos"] nav button.active { + background: #ffffff !important; + color: #1d1d1f !important; + font-weight: 600 !important; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.15) !important; +} + +html[data-theme="macos"] .card { + background: #ffffff !important; + border: 1px solid rgba(0, 0, 0, 0.07) !important; + border-radius: 14px !important; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important; + color: #1d1d1f !important; +} + +html[data-theme="macos"] h2, +html[data-theme="macos"] h3, +html[data-theme="macos"] .card-title { + color: #1d1d1f !important; + letter-spacing: -0.3px !important; +} + +html[data-theme="macos"] .label { + color: #86868b !important; + font-weight: 500 !important; + font-size: 12px !important; +} + +html[data-theme="macos"] button, +html[data-theme="macos"] .header-actions button { + background: #f2f2f7 !important; + border: 1px solid rgba(0, 0, 0, 0.08) !important; + color: #1d1d1f !important; + border-radius: 8px !important; + font-weight: 500 !important; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important; + transition: all .15s ease !important; +} + +html[data-theme="macos"] button:hover:not(:disabled), +html[data-theme="macos"] .header-actions button:hover:not(:disabled) { + background: #e5e5ea !important; + color: #000000 !important; +} + +html[data-theme="macos"] #authSubmit, +html[data-theme="macos"] #saveCustomization, +html[data-theme="macos"] .btn-primary { + background: #0071e3 !important; + border: 1px solid #0062c4 !important; + color: #ffffff !important; + font-weight: 600 !important; + box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3) !important; +} + +html[data-theme="macos"] #authSubmit:hover, +html[data-theme="macos"] #saveCustomization:hover, +html[data-theme="macos"] .btn-primary:hover { + background: #0077ed !important; + box-shadow: 0 4px 10px rgba(0, 113, 227, 0.4) !important; +} + +html[data-theme="macos"] #btnStop, +html[data-theme="macos"] button.danger, +html[data-theme="macos"] .btn-danger { + background: #ff3b30 !important; + border: 1px solid #e0281d !important; + color: #ffffff !important; + box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3) !important; +} + +html[data-theme="macos"] input[type="text"], +html[data-theme="macos"] input[type="password"], +html[data-theme="macos"] input[type="number"], +html[data-theme="macos"] select, +html[data-theme="macos"] textarea { + background: #ffffff !important; + border: 1px solid #d1d1d6 !important; + color: #1d1d1f !important; + border-radius: 8px !important; + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important; + transition: border-color .15s ease, box-shadow .15s ease !important; +} + +html[data-theme="macos"] input:focus, +html[data-theme="macos"] select:focus, +html[data-theme="macos"] textarea:focus { + outline: none !important; + border-color: #0071e3 !important; + box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25) !important; +} + +html[data-theme="macos"] table { + background: #ffffff !important; + border: 1px solid #e5e5ea !important; + border-radius: 10px !important; + overflow: hidden !important; +} + +html[data-theme="macos"] th { + background: #fbfbfd !important; + color: #86868b !important; + font-weight: 600 !important; + border-bottom: 1px solid #e5e5ea !important; +} + +html[data-theme="macos"] td { + border-bottom: 1px solid #f2f2f7 !important; + color: #1d1d1f !important; +} + +html[data-theme="macos"] tr:hover td { + background: #f5f8ff !important; +} + +html[data-theme="macos"] .modal-overlay { + background: rgba(0, 0, 0, 0.3) !important; + backdrop-filter: blur(16px) !important; + -webkit-backdrop-filter: blur(16px) !important; +} + +html[data-theme="macos"] .modal-card { + background: #ffffff !important; + border: 1px solid rgba(0, 0, 0, 0.1) !important; + border-radius: 16px !important; + box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important; +} + +html[data-theme="macos"] #authView .card, +html[data-theme="macos"] #setupView .card { + background: rgba(255, 255, 255, 0.85) !important; + backdrop-filter: blur(25px) !important; + -webkit-backdrop-filter: blur(25px) !important; + border: 1px solid rgba(0, 0, 0, 0.08) !important; + border-radius: 18px !important; + box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important; +} + +html[data-theme="macos"] #authView h1 { + color: #1d1d1f !important; + font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif !important; + font-weight: 700 !important; + letter-spacing: -0.5px !important; +} + +html[data-theme="macos"] #authView .muted { + color: #86868b !important; +} + +html[data-theme="macos"] #authView .label { + color: #6e6e73 !important; + font-weight: 500 !important; +} + +html[data-theme="macos"] #authView input[type="text"], +html[data-theme="macos"] #authView input[type="password"], +html[data-theme="macos"] #authThemeSelect { + background: #ffffff !important; + border: 1px solid rgba(0, 0, 0, 0.15) !important; + border-radius: 8px !important; + color: #1d1d1f !important; +} + +html[data-theme="macos"] #toggleAuthPassword { + background: #f2f2f7 !important; + border: 1px solid rgba(0, 0, 0, 0.1) !important; + color: #1d1d1f !important; + border-radius: 8px !important; +} + +html[data-theme="macos"] #authSubmit { + background: #0071e3 !important; + color: #ffffff !important; + border: none !important; + border-radius: 10px !important; + font-weight: 500 !important; + box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35) !important; +} + +html[data-theme="macos"] #authSubmit:hover { + background: #0077ed !important; +} + +html[data-theme="macos"] #authPasskeyDivider span { + color: #86868b !important; + font-size: 11px !important; + font-weight: 600 !important; +} + +html[data-theme="macos"] #authPasskeyDivider div { + background: rgba(0, 0, 0, 0.1) !important; +} + +html[data-theme="macos"] #btnAuthPasskey { + background: rgba(0, 0, 0, 0.04) !important; + border: 1px solid rgba(0, 0, 0, 0.1) !important; + border-radius: 10px !important; + color: #0071e3 !important; + font-weight: 500 !important; +} + +html[data-theme="macos"] #btnAuthPasskey:hover { + background: rgba(0, 113, 227, 0.1) !important; + border-color: #0071e3 !important; +} + +html[data-theme="macos"] #authPasskeyInfo { + color: #86868b !important; +} + +html[data-theme="macos"] .settings-nav-btn { + background: #f2f2f7 !important; + border: 1px solid rgba(0, 0, 0, 0.06) !important; + color: #1d1d1f !important; + border-radius: 8px !important; +} + +html[data-theme="macos"] .settings-nav-btn.active { + background: #0071e3 !important; + border-color: #0071e3 !important; + color: #ffffff !important; +} + +html[data-theme="macos"] .notice { + background: #f0f7ff !important; + border: 1px solid #cce3ff !important; + color: #004085 !important; + border-radius: 10px !important; +} + +html[data-theme="macos"] .pill, +html[data-theme="macos"] .badge { + border-radius: 20px !important; + font-weight: 500 !important; +} + +html[data-theme="macos"] #updated, +html[data-theme="macos"] #topoUpdated, +html[data-theme="macos"] #statsChartUpdated, +html[data-theme="macos"] #statsTrafficUpdated, +html[data-theme="macos"] #statsHistoryUpdated, +html[data-theme="macos"] #captureUpdated, +html[data-theme="macos"] #logsUpdated, +html[data-theme="macos"] #blockedUpdated, +html[data-theme="macos"] .pill-updated, +html[data-theme="macos"] .pill-green { + background: #e8f8ed !important; + color: #248a3d !important; + border: 1px solid #c2eccd !important; +} + +html[data-theme="macos"] .lang-card { + background: #ffffff !important; + border: 1px solid #e5e5ea !important; + border-radius: 12px !important; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important; +} + +html[data-theme="macos"] .lang-card.active { + border: 2px solid #0071e3 !important; + box-shadow: 0 4px 14px rgba(0, 113, 227, 0.2) !important; +} + +html[data-theme="macos"] ::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +html[data-theme="macos"] ::-webkit-scrollbar-track { + background: transparent; +} + +html[data-theme="macos"] ::-webkit-scrollbar-thumb { + background: rgba(0, 0, 0, 0.2); + border-radius: 10px; +} + +html[data-theme="macos"] ::-webkit-scrollbar-thumb:hover { + background: rgba(0, 0, 0, 0.35); +} + + +/* macOS Mode Sombre (Automatique selon le système) */ +@media (prefers-color-scheme: dark) { + html[data-theme="macos"] body { + background: #1c1c1e linear-gradient(180deg, #252830 0%, #1c1c1e 400px) fixed no-repeat !important; + color: #f5f5f7 !important; + } + + html[data-theme="macos"] header { + background: rgba(36, 36, 38, 0.85) !important; + border: 1px solid rgba(255, 255, 255, 0.12) !important; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important; + } + + html[data-theme="macos"] header h1 { + color: #f5f5f7 !important; + } + + html[data-theme="macos"] header .sub { + color: #98989d !important; + } + + html[data-theme="macos"] nav { + background: rgba(44, 44, 46, 0.75) !important; + border-color: rgba(255, 255, 255, 0.1) !important; + } + + html[data-theme="macos"] nav button, + html[data-theme="macos"] nav button.secondary { + color: #98989d !important; + } + + html[data-theme="macos"] nav button:hover:not(.active), + html[data-theme="macos"] nav button.secondary:hover:not(.active) { + background: rgba(255, 255, 255, 0.08) !important; + color: #ffffff !important; + } + + html[data-theme="macos"] nav button.active { + background: #636366 !important; + color: #ffffff !important; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important; + } + + html[data-theme="macos"] .card { + background: #28282a !important; + border-color: rgba(255, 255, 255, 0.1) !important; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2) !important; + color: #f5f5f7 !important; + } + + html[data-theme="macos"] h2, + html[data-theme="macos"] h3, + html[data-theme="macos"] .card-title { + color: #f5f5f7 !important; + } + + html[data-theme="macos"] .label { + color: #98989d !important; + } + + html[data-theme="macos"] button, + html[data-theme="macos"] .header-actions button { + background: #323236 !important; + border-color: rgba(255, 255, 255, 0.12) !important; + color: #f5f5f7 !important; + } + + html[data-theme="macos"] button:hover:not(:disabled), + html[data-theme="macos"] .header-actions button:hover:not(:disabled) { + background: #3e3e42 !important; + color: #ffffff !important; + } + + html[data-theme="macos"] #authSubmit, + html[data-theme="macos"] #saveCustomization, + html[data-theme="macos"] .btn-primary { + background: #0a84ff !important; + border-color: #0077ed !important; + color: #ffffff !important; + box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4) !important; + } + + html[data-theme="macos"] #authSubmit:hover, + html[data-theme="macos"] #saveCustomization:hover, + html[data-theme="macos"] .btn-primary:hover { + background: #208fff !important; + } + + html[data-theme="macos"] #btnStop, + html[data-theme="macos"] button.danger, + html[data-theme="macos"] .btn-danger { + background: #ff453a !important; + border-color: #e03228 !important; + color: #ffffff !important; + } + + html[data-theme="macos"] input[type="text"], + html[data-theme="macos"] input[type="password"], + html[data-theme="macos"] input[type="number"], + html[data-theme="macos"] select, + html[data-theme="macos"] textarea { + background: #1c1c1e !important; + border-color: #38383a !important; + color: #ffffff !important; + } + + html[data-theme="macos"] input:focus, + html[data-theme="macos"] select:focus, + html[data-theme="macos"] textarea:focus { + border-color: #0a84ff !important; + box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3) !important; + } + + html[data-theme="macos"] table { + background: #252528 !important; + border-color: #38383a !important; + } + + html[data-theme="macos"] th { + background: #2c2c2e !important; + color: #98989d !important; + border-bottom-color: #38383a !important; + } + + html[data-theme="macos"] td { + border-bottom-color: #323236 !important; + color: #f5f5f7 !important; + } + + html[data-theme="macos"] tr:hover td { + background: rgba(10, 132, 255, 0.15) !important; + } + + html[data-theme="macos"] .modal-overlay { + background: rgba(0, 0, 0, 0.6) !important; + } + + html[data-theme="macos"] .modal-card { + background: #2c2c2e !important; + border-color: rgba(255, 255, 255, 0.12) !important; + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important; + } + + html[data-theme="macos"] #authView .card, + html[data-theme="macos"] #setupView .card { + background: rgba(40, 40, 42, 0.88) !important; + backdrop-filter: blur(25px) !important; + -webkit-backdrop-filter: blur(25px) !important; + border: 1px solid rgba(255, 255, 255, 0.12) !important; + border-radius: 18px !important; + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important; + } + + html[data-theme="macos"] #authView h1 { + color: #f5f5f7 !important; + } + + html[data-theme="macos"] #authView .muted { + color: #98989d !important; + } + + html[data-theme="macos"] #authView .label { + color: #98989d !important; + } + + html[data-theme="macos"] #authView input[type="text"], + html[data-theme="macos"] #authView input[type="password"] { + background: #1c1c1e !important; + border: 1px solid rgba(255, 255, 255, 0.15) !important; + border-radius: 8px !important; + color: #f5f5f7 !important; + } + + html[data-theme="macos"] #toggleAuthPassword { + background: #323236 !important; + border: 1px solid rgba(255, 255, 255, 0.12) !important; + color: #f5f5f7 !important; + border-radius: 8px !important; + } + + html[data-theme="macos"] #authSubmit { + background: #0a84ff !important; + color: #ffffff !important; + border: none !important; + border-radius: 10px !important; + box-shadow: 0 2px 10px rgba(10, 132, 255, 0.4) !important; + } + + html[data-theme="macos"] #authSubmit:hover { + background: #1a8eff !important; + } + + html[data-theme="macos"] #authPasskeyDivider span { + color: #98989d !important; + } + + html[data-theme="macos"] #authPasskeyDivider div { + background: rgba(255, 255, 255, 0.12) !important; + } + + html[data-theme="macos"] #btnAuthPasskey { + background: rgba(255, 255, 255, 0.08) !important; + border: 1px solid rgba(255, 255, 255, 0.15) !important; + border-radius: 10px !important; + color: #0a84ff !important; + } + + html[data-theme="macos"] #btnAuthPasskey:hover { + background: rgba(10, 132, 255, 0.2) !important; + border-color: #0a84ff !important; + } + + html[data-theme="macos"] #authPasskeyInfo { + color: #98989d !important; + } + + html[data-theme="macos"] .settings-nav-btn { + background: #323236 !important; + border-color: rgba(255, 255, 255, 0.1) !important; + color: #f5f5f7 !important; + } + + html[data-theme="macos"] .settings-nav-btn.active { + background: #0a84ff !important; + border-color: #0a84ff !important; + color: #ffffff !important; + } + + html[data-theme="macos"] .notice { + background: rgba(10, 132, 255, 0.12) !important; + border-color: rgba(10, 132, 255, 0.3) !important; + color: #70b4ff !important; + } + + html[data-theme="macos"] #updated, + html[data-theme="macos"] #topoUpdated, + html[data-theme="macos"] #statsChartUpdated, + html[data-theme="macos"] #statsTrafficUpdated, + html[data-theme="macos"] #statsHistoryUpdated, + html[data-theme="macos"] #captureUpdated, + html[data-theme="macos"] #logsUpdated, + html[data-theme="macos"] #blockedUpdated, + html[data-theme="macos"] .pill-updated, + html[data-theme="macos"] .pill-green { + background: rgba(50, 215, 75, 0.15) !important; + color: #32d74b !important; + border-color: rgba(50, 215, 75, 0.35) !important; + } + + html[data-theme="macos"] .lang-card { + background: #28282a !important; + border-color: #38383a !important; + color: #f5f5f7 !important; + } + + html[data-theme="macos"] .lang-card.active { + border-color: #0a84ff !important; + box-shadow: 0 4px 14px rgba(10, 132, 255, 0.3) !important; + } + + html[data-theme="macos"] .topo-map-card, + html[data-theme="macos"] .topo-client-body { + background: #28282a !important; + color: #f5f5f7 !important; + border-color: #38383a !important; + } + + html[data-theme="macos"] ::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.25); + } + + html[data-theme="macos"] ::-webkit-scrollbar-thumb:hover { + background: rgba(255, 255, 255, 0.4); + } +} + +html[data-theme="macos"][data-macos-mode="dark"] body { + background: #1c1c1e linear-gradient(180deg, #252830 0%, #1c1c1e 400px) fixed no-repeat !important; + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] header { + background: rgba(36, 36, 38, 0.85) !important; + border: 1px solid rgba(255, 255, 255, 0.12) !important; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] header h1 { + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] header .sub { + color: #98989d !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] nav { + background: rgba(44, 44, 46, 0.75) !important; + border-color: rgba(255, 255, 255, 0.1) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] nav button, +html[data-theme="macos"][data-macos-mode="dark"] nav button.secondary { + color: #98989d !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] nav button:hover:not(.active), +html[data-theme="macos"][data-macos-mode="dark"] nav button.secondary:hover:not(.active) { + background: rgba(255, 255, 255, 0.08) !important; + color: #ffffff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] nav button.active { + background: #636366 !important; + color: #ffffff !important; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .card { + background: #28282a !important; + border-color: rgba(255, 255, 255, 0.1) !important; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2) !important; + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] h2, +html[data-theme="macos"][data-macos-mode="dark"] h3, +html[data-theme="macos"][data-macos-mode="dark"] .card-title { + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .label { + color: #98989d !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] button, +html[data-theme="macos"][data-macos-mode="dark"] .header-actions button { + background: #323236 !important; + border-color: rgba(255, 255, 255, 0.12) !important; + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] button:hover:not(:disabled), +html[data-theme="macos"][data-macos-mode="dark"] .header-actions button:hover:not(:disabled) { + background: #3e3e42 !important; + color: #ffffff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authSubmit, +html[data-theme="macos"][data-macos-mode="dark"] #saveCustomization, +html[data-theme="macos"][data-macos-mode="dark"] .btn-primary { + background: #0a84ff !important; + border-color: #0077ed !important; + color: #ffffff !important; + box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authSubmit:hover, +html[data-theme="macos"][data-macos-mode="dark"] #saveCustomization:hover, +html[data-theme="macos"][data-macos-mode="dark"] .btn-primary:hover { + background: #208fff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #btnStop, +html[data-theme="macos"][data-macos-mode="dark"] button.danger, +html[data-theme="macos"][data-macos-mode="dark"] .btn-danger { + background: #ff453a !important; + border-color: #e03228 !important; + color: #ffffff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] input[type="text"], +html[data-theme="macos"][data-macos-mode="dark"] input[type="password"], +html[data-theme="macos"][data-macos-mode="dark"] input[type="number"], +html[data-theme="macos"][data-macos-mode="dark"] select, +html[data-theme="macos"][data-macos-mode="dark"] textarea { + background: #1c1c1e !important; + border-color: #38383a !important; + color: #ffffff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] input:focus, +html[data-theme="macos"][data-macos-mode="dark"] select:focus, +html[data-theme="macos"][data-macos-mode="dark"] textarea:focus { + border-color: #0a84ff !important; + box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] table { + background: #252528 !important; + border-color: #38383a !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] th { + background: #2c2c2e !important; + color: #98989d !important; + border-bottom-color: #38383a !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] td { + border-bottom-color: #323236 !important; + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] tr:hover td { + background: rgba(10, 132, 255, 0.15) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .modal-overlay { + background: rgba(0, 0, 0, 0.6) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .modal-card { + background: #2c2c2e !important; + border-color: rgba(255, 255, 255, 0.12) !important; + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authView .card, +html[data-theme="macos"][data-macos-mode="dark"] #setupView .card { + background: rgba(40, 40, 42, 0.88) !important; + backdrop-filter: blur(25px) !important; + -webkit-backdrop-filter: blur(25px) !important; + border: 1px solid rgba(255, 255, 255, 0.12) !important; + border-radius: 18px !important; + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authView h1 { + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authView .muted { + color: #98989d !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authView .label { + color: #98989d !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authView input[type="text"], +html[data-theme="macos"][data-macos-mode="dark"] #authView input[type="password"], +html[data-theme="macos"][data-macos-mode="dark"] #authThemeSelect { + background: #1c1c1e !important; + border: 1px solid rgba(255, 255, 255, 0.15) !important; + border-radius: 8px !important; + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #toggleAuthPassword { + background: #323236 !important; + border: 1px solid rgba(255, 255, 255, 0.12) !important; + color: #f5f5f7 !important; + border-radius: 8px !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authSubmit { + background: #0a84ff !important; + color: #ffffff !important; + border: none !important; + border-radius: 10px !important; + box-shadow: 0 2px 10px rgba(10, 132, 255, 0.4) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authSubmit:hover { + background: #1a8eff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authPasskeyDivider span { + color: #98989d !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authPasskeyDivider div { + background: rgba(255, 255, 255, 0.12) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #btnAuthPasskey { + background: rgba(255, 255, 255, 0.08) !important; + border: 1px solid rgba(255, 255, 255, 0.15) !important; + border-radius: 10px !important; + color: #0a84ff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #btnAuthPasskey:hover { + background: rgba(10, 132, 255, 0.2) !important; + border-color: #0a84ff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #authPasskeyInfo { + color: #98989d !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .settings-nav-btn { + background: #323236 !important; + border-color: rgba(255, 255, 255, 0.1) !important; + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .settings-nav-btn.active { + background: #0a84ff !important; + border-color: #0a84ff !important; + color: #ffffff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .notice { + background: rgba(10, 132, 255, 0.12) !important; + border-color: rgba(10, 132, 255, 0.3) !important; + color: #70b4ff !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] #updated, +html[data-theme="macos"][data-macos-mode="dark"] #topoUpdated, +html[data-theme="macos"][data-macos-mode="dark"] #statsChartUpdated, +html[data-theme="macos"][data-macos-mode="dark"] #statsTrafficUpdated, +html[data-theme="macos"][data-macos-mode="dark"] #statsHistoryUpdated, +html[data-theme="macos"][data-macos-mode="dark"] #captureUpdated, +html[data-theme="macos"][data-macos-mode="dark"] #logsUpdated, +html[data-theme="macos"][data-macos-mode="dark"] #blockedUpdated, +html[data-theme="macos"][data-macos-mode="dark"] .pill-updated, +html[data-theme="macos"][data-macos-mode="dark"] .pill-green { + background: rgba(50, 215, 75, 0.15) !important; + color: #32d74b !important; + border-color: rgba(50, 215, 75, 0.35) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .lang-card { + background: #28282a !important; + border-color: #38383a !important; + color: #f5f5f7 !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .lang-card.active { + border-color: #0a84ff !important; + box-shadow: 0 4px 14px rgba(10, 132, 255, 0.3) !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] .topo-map-card, +html[data-theme="macos"][data-macos-mode="dark"] .topo-client-body { + background: #28282a !important; + color: #f5f5f7 !important; + border-color: #38383a !important; +} + +html[data-theme="macos"][data-macos-mode="dark"] ::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.25); +} + +html[data-theme="macos"][data-macos-mode="dark"] ::-webkit-scrollbar-thumb:hover { + background: rgba(255, 255, 255, 0.4); +} diff --git a/themes/winxp.css b/themes/winxp.css new file mode 100644 index 0000000..207a0d8 --- /dev/null +++ b/themes/winxp.css @@ -0,0 +1,396 @@ +/* ============================================================ + Thème Windows XP (Luna Edition) - Variables + ============================================================ */ +html[data-theme="winxp"] { + --bg: #225ad9; + --panel: #ece9d8; + --panel2: #ffffff; + --line: #7f9db9; + --text: #000000; + --muted: #49546a; + --blue: #0055ea; + --blue-text: #ffffff; + --red: #cc1111; + --green: #2e8b22; + --yellow: #f57c00; +} + +/* ============================================================ + Thème Windows XP (Luna Edition) + ============================================================ */ +html[data-theme="winxp"] body { + background: #1c52b5 linear-gradient(180deg, #1855a8 0%, #2f75d6 28%, #5da2e7 52%, #8ec0ee 64%, #4ea824 64.2%, #388a1b 76%, #286612 100%) fixed no-repeat !important; + background-size: cover !important; + font-family: 'Tahoma', 'Segoe UI', system-ui, sans-serif !important; + color: #000000 !important; +} + +html[data-theme="winxp"] header { + background: linear-gradient(180deg, #0058e6 0%, #3b88fc 12%, #2c6cf5 40%, #004fe4 88%, #0036a4 100%) !important; + padding: 12px 18px !important; + border-radius: 8px 8px 0 0 !important; + border: 1px solid #002277 !important; + border-bottom: 2px solid #002277 !important; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important; + color: #ffffff !important; +} + +html[data-theme="winxp"] header h1 { + color: #ffffff !important; + font-weight: 700 !important; + text-shadow: 1px 1px 2px #001f5c !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; +} + +html[data-theme="winxp"] header .sub { + color: #d6e5ff !important; + text-shadow: 1px 1px 1px #001f5c !important; +} + +html[data-theme="winxp"] nav { + background: linear-gradient(180deg, #245edb 0%, #3a79f6 10%, #1e52c8 90%, #0d3aa9 100%) !important; + padding: 8px 12px !important; + border-radius: 0 0 6px 6px !important; + border: 1px solid #002277 !important; + border-top: 0 !important; + box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35) !important; +} + +html[data-theme="winxp"] nav button, +html[data-theme="winxp"] nav button.secondary { + background: linear-gradient(180deg, #ffffff 0%, #ecebe5 15%, #d8d6c7 85%, #b4b2a3 100%) !important; + color: #000000 !important; + border: 1px solid #003c74 !important; + border-radius: 3px !important; + font-weight: 600 !important; + box-shadow: inset 0 1px 0 #ffffff !important; +} + +html[data-theme="winxp"] nav button.active { + background: linear-gradient(180deg, #3c9c37 0%, #46bd41 12%, #389e34 75%, #257820 100%) !important; + color: #ffffff !important; + border: 1px solid #1a5715 !important; + border-radius: 4px !important; + text-shadow: 1px 1px 2px #0f3d0c !important; + box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 2px 6px rgba(0, 0, 0, 0.3) !important; +} + +html[data-theme="winxp"] .card { + background: #ece9d8 !important; + border: 1px solid #0055ea !important; + border-radius: 6px !important; + box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.35), inset 1px 1px 0 #ffffff !important; + color: #000000 !important; +} + +html[data-theme="winxp"] h2, +html[data-theme="winxp"] h3, +html[data-theme="winxp"] .card-title, +html[data-theme="winxp"] .label { + color: #003399 !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; + font-weight: 700 !important; +} + +html[data-theme="winxp"] button, +html[data-theme="winxp"] .header-actions button { + background: linear-gradient(180deg, #ffffff 0%, #ecebe5 15%, #d8d6c7 85%, #b4b2a3 100%) !important; + color: #000000 !important; + border: 1px solid #003c74 !important; + border-radius: 4px !important; + box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #d8d6c7, 0 1px 2px rgba(0, 0, 0, 0.15) !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; + font-weight: 600 !important; + transition: none !important; +} + +html[data-theme="winxp"] button:hover:not(:disabled), +html[data-theme="winxp"] .header-actions button:hover:not(:disabled) { + background: linear-gradient(180deg, #fff7d8 0%, #fedc84 50%, #fec85a 51%, #ffbe43 100%) !important; + border-color: #e59700 !important; + box-shadow: inset 0 1px 0 #fffdf0, 0 1px 3px rgba(229, 151, 0, 0.35) !important; + color: #000000 !important; +} + +html[data-theme="winxp"] button:active:not(:disabled), +html[data-theme="winxp"] .header-actions button:active:not(:disabled) { + background: linear-gradient(180deg, #d3d1c1 0%, #e2dfcf 40%, #eae8dc 100%) !important; + box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important; +} + +html[data-theme="winxp"] button.secondary { + background: linear-gradient(180deg, #ffffff 0%, #ecebe5 15%, #d8d6c7 85%, #b4b2a3 100%) !important; + color: #000000 !important; + border: 1px solid #7f9db9 !important; +} + +html[data-theme="winxp"] #authSubmit, +html[data-theme="winxp"] #saveCustomization, +html[data-theme="winxp"] .btn-primary { + background: linear-gradient(180deg, #3c9c37 0%, #46bd41 14%, #389e34 70%, #257820 100%) !important; + border: 1px solid #1a5715 !important; + color: #ffffff !important; + font-weight: 700 !important; + text-shadow: 1px 1px 2px #0f3d0c !important; + box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 2px 4px rgba(0, 0, 0, 0.3) !important; +} + +html[data-theme="winxp"] #authSubmit:hover, +html[data-theme="winxp"] #saveCustomization:hover, +html[data-theme="winxp"] .btn-primary:hover { + background: linear-gradient(180deg, #4ec248 0%, #59db53 14%, #44b63f 70%, #2c9126 100%) !important; + border-color: #1e6417 !important; + color: #ffffff !important; +} + +html[data-theme="winxp"] #btnStop, +html[data-theme="winxp"] button.danger, +html[data-theme="winxp"] .btn-danger { + background: linear-gradient(180deg, #f48074 0%, #e04434 15%, #c82818 70%, #9a180a 100%) !important; + border: 1px solid #7a1005 !important; + color: #ffffff !important; + text-shadow: 1px 1px 1px #5a0a04 !important; +} + +html[data-theme="winxp"] input[type="text"], +html[data-theme="winxp"] input[type="password"], +html[data-theme="winxp"] input[type="number"], +html[data-theme="winxp"] select, +html[data-theme="winxp"] textarea { + background: #ffffff !important; + border: 1px solid #7f9db9 !important; + color: #000000 !important; + border-radius: 2px !important; + box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15) !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; +} + +html[data-theme="winxp"] input:focus, +html[data-theme="winxp"] select:focus, +html[data-theme="winxp"] textarea:focus { + outline: none !important; + border-color: #0055ea !important; + box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2), 0 0 3px rgba(0, 85, 234, 0.5) !important; +} + +html[data-theme="winxp"] table { + background: #ffffff !important; + border: 1px solid #7f9db9 !important; + color: #000000 !important; +} + +html[data-theme="winxp"] th { + background: linear-gradient(180deg, #ffffff 0%, #ebe9d8 100%) !important; + color: #000000 !important; + border-right: 1px solid #d4d0c8 !important; + border-bottom: 2px solid #7f9db9 !important; + font-weight: 700 !important; +} + +html[data-theme="winxp"] td { + border-bottom: 1px solid #e0dfd6 !important; + color: #000000 !important; +} + +html[data-theme="winxp"] tr:hover td { + background: #316ac5 !important; + color: #ffffff !important; +} + +html[data-theme="winxp"] tr:hover td a, +html[data-theme="winxp"] tr:hover td span:not([class*="badge"]):not([class*="pill"]):not([class*="proto"]) { + color: #ffffff !important; +} + +html[data-theme="winxp"] .modal-overlay { + background: rgba(0, 30, 80, 0.45) !important; + backdrop-filter: blur(2px) !important; +} + +html[data-theme="winxp"] .modal-card { + background: #ece9d8 !important; + border: 3px solid #0055ea !important; + border-radius: 8px 8px 3px 3px !important; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 1px 1px 0 #ffffff !important; + color: #000000 !important; +} + +html[data-theme="winxp"] #authView .card, +html[data-theme="winxp"] #setupView .card { + background: #ece9d8 !important; + border: 3px solid #0055ea !important; + border-radius: 8px !important; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important; + color: #000000 !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; +} + +html[data-theme="winxp"] #authView h1, +html[data-theme="winxp"] #authView h2, +html[data-theme="winxp"] #authView .sub { + color: #003399 !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; + font-weight: 700 !important; + text-shadow: none !important; +} + +html[data-theme="winxp"] #authView .muted, +html[data-theme="winxp"] #authView label, +html[data-theme="winxp"] #authView .label { + color: #333333 !important; + font-family: 'Tahoma', sans-serif !important; +} + +html[data-theme="winxp"] #authView input[type="text"], +html[data-theme="winxp"] #authView input[type="password"], +html[data-theme="winxp"] #authThemeSelect { + background: #ffffff !important; + border: 1px solid #7f9db9 !important; + border-radius: 3px !important; + color: #000000 !important; + font-family: 'Tahoma', sans-serif !important; + box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15) !important; +} + +html[data-theme="winxp"] #toggleAuthPassword { + background: linear-gradient(180deg, #ffffff 0%, #ecebe5 15%, #d8d6c7 85%, #b4b2a3 100%) !important; + border: 1px solid #003c74 !important; + border-radius: 3px !important; + color: #000000 !important; + box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #d8d6c7, 0 1px 2px rgba(0, 0, 0, 0.15) !important; +} + +html[data-theme="winxp"] #toggleAuthPassword:hover { + background: linear-gradient(180deg, #fff2be 0%, #ffdf79 12%, #ffcf45 75%, #f6b509 100%) !important; + border-color: #e5a000 !important; +} + +html[data-theme="winxp"] #authSubmit { + background: linear-gradient(180deg, #3c9c37 0%, #46bd41 12%, #389e34 75%, #257820 100%) !important; + border: 1px solid #1a5715 !important; + border-radius: 4px !important; + color: #ffffff !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; + font-weight: 700 !important; + text-shadow: 1px 1px 1px #0f3d0c !important; + box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3) !important; +} + +html[data-theme="winxp"] #authSubmit:hover { + background: linear-gradient(180deg, #4ed348 0%, #54d84f 12%, #42b23d 75%, #2d9226 100%) !important; + box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6), 0 0 8px rgba(70, 189, 65, 0.6) !important; +} + +html[data-theme="winxp"] #authPasskeyDivider span { + color: #49546a !important; + font-family: 'Tahoma', sans-serif !important; + font-size: 11px !important; +} + +html[data-theme="winxp"] #authPasskeyDivider div { + background: #7f9db9 !important; +} + +html[data-theme="winxp"] #btnAuthPasskey { + background: linear-gradient(180deg, #ffffff 0%, #ecebe5 15%, #d8d6c7 85%, #b4b2a3 100%) !important; + border: 1px solid #003c74 !important; + border-radius: 4px !important; + color: #003399 !important; + font-family: 'Tahoma', 'Segoe UI', sans-serif !important; + font-weight: 700 !important; + box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #d8d6c7, 0 1px 2px rgba(0, 0, 0, 0.15) !important; +} + +html[data-theme="winxp"] #btnAuthPasskey:hover { + background: linear-gradient(180deg, #fff2be 0%, #ffdf79 12%, #ffcf45 75%, #f6b509 100%) !important; + border-color: #e5a000 !important; + color: #000000 !important; + box-shadow: inset 0 1px 0 #ffffff, 0 0 6px rgba(246, 181, 9, 0.5) !important; +} + +html[data-theme="winxp"] #authPasskeyInfo { + color: #49546a !important; + font-family: 'Tahoma', sans-serif !important; +} + +html[data-theme="winxp"] .settings-nav-btn { + background: linear-gradient(180deg, #ffffff 0%, #ecebe5 15%, #d8d6c7 85%, #b4b2a3 100%) !important; + color: #000000 !important; + border: 1px solid #7f9db9 !important; +} + +html[data-theme="winxp"] .settings-nav-btn.active { + background: linear-gradient(180deg, #3c9c37 0%, #46bd41 12%, #389e34 75%, #257820 100%) !important; + color: #ffffff !important; + border: 1px solid #1a5715 !important; + text-shadow: 1px 1px 1px #0f3d0c !important; +} + +html[data-theme="winxp"] .notice { + background: #ffffdf !important; + border: 1px solid #dcd9a0 !important; + color: #333300 !important; + border-radius: 4px !important; +} + +html[data-theme="winxp"] .pill, +html[data-theme="winxp"] .badge { + border: 1px solid #7f9db9 !important; + font-family: 'Tahoma', sans-serif !important; +} + +html[data-theme="winxp"] #updated, +html[data-theme="winxp"] #topoUpdated, +html[data-theme="winxp"] #statsChartUpdated, +html[data-theme="winxp"] #statsTrafficUpdated, +html[data-theme="winxp"] #statsHistoryUpdated, +html[data-theme="winxp"] #captureUpdated, +html[data-theme="winxp"] #logsUpdated, +html[data-theme="winxp"] #blockedUpdated, +html[data-theme="winxp"] .pill-updated, +html[data-theme="winxp"] .pill-green { + background: #d4f0d0 !important; + color: #1a5715 !important; + border: 1px solid #388a1b !important; +} + +html[data-theme="winxp"] .lang-card { + background: #ffffff !important; + border: 1px solid #7f9db9 !important; + color: #000000 !important; +} + +html[data-theme="winxp"] .lang-card.active { + border: 2px solid #0055ea !important; + background: #eef3ff !important; + box-shadow: 0 0 8px rgba(0, 85, 234, 0.3) !important; +} + +html[data-theme="winxp"] .topo-map-card, +html[data-theme="winxp"] .topo-client-body { + background: #ffffff !important; + color: #000000 !important; + border-color: #7f9db9 !important; +} + +html[data-theme="winxp"] ::-webkit-scrollbar { + width: 16px; + height: 16px; +} + +html[data-theme="winxp"] ::-webkit-scrollbar-track { + background: #ece9d8; + border: 1px solid #d4d0c8; +} + +html[data-theme="winxp"] ::-webkit-scrollbar-thumb { + background: linear-gradient(180deg, #ffffff 0%, #ecebe5 15%, #d8d6c7 85%, #b4b2a3 100%); + border: 1px solid #7f9db9; + border-radius: 2px; + box-shadow: inset 1px 1px 0 #ffffff; +} + +html[data-theme="winxp"] ::-webkit-scrollbar-thumb:hover { + background: linear-gradient(180deg, #fff7d8 0%, #fedc84 50%, #fec85a 51%, #ffbe43 100%); + border-color: #e59700; +}