From 219d9b73b67fff04db490d963e6bebebc268a5e5 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Mon, 27 Jul 2026 20:11:31 +0000 Subject: [PATCH] =?UTF-8?q?feat(ui):=20polish=20visuel=20global=20?= =?UTF-8?q?=E2=80=94=20Font=20Awesome,=20composants=20partag=C3=A9s,=20fix?= =?UTF-8?q?=20MudMenu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-07-27-monochrome-theme-design.md | 71 +++ src/Heimdall.Web/Components/App.razor | 5 +- .../Components/Layout/MainLayout.razor | 189 ++++-- .../Components/Layout/MudBlazorLayout.razor | 75 ++- .../Layout/ReconnectModal.razor.css | 115 ++-- .../Pages/Admin/AllAgentsPage.razor | 2 +- .../Components/Pages/Admin/ClaimsPage.razor | 2 +- .../Components/Pages/Admin/GroupsPage.razor | 2 +- .../Components/Pages/Admin/RolesPage.razor | 2 +- .../Components/Pages/AuditLogsPage.razor | 2 +- .../Components/Pages/CameraDetail.razor | 2 +- .../Components/Pages/CamerasPage.razor | 2 +- .../Components/Pages/EventsPage.razor | 2 +- src/Heimdall.Web/Components/Pages/Login.razor | 2 +- .../Components/Pages/NotFound.razor | 14 +- .../Components/Pages/Profile.razor | 2 +- .../Components/Pages/Register.razor | 2 +- .../Components/Pages/SettingsPage.razor | 2 +- .../Components/Pages/SiteDetail.razor | 2 +- .../Components/Pages/SitesPage.razor | 2 +- .../Components/Pages/SnapshotsPage.razor | 2 +- .../Components/Pages/UsersPage.razor | 2 +- .../Components/Shared/EmptyState.razor | 19 +- .../Components/Shared/LoadingSkeleton.razor | 16 +- .../Components/Shared/SectionCard.razor | 18 +- src/Heimdall.Web/wwwroot/app.css | 572 +++++++++++++++--- 26 files changed, 889 insertions(+), 237 deletions(-) create mode 100644 docs/superpowers/specs/2026-07-27-monochrome-theme-design.md diff --git a/docs/superpowers/specs/2026-07-27-monochrome-theme-design.md b/docs/superpowers/specs/2026-07-27-monochrome-theme-design.md new file mode 100644 index 0000000..debbcd2 --- /dev/null +++ b/docs/superpowers/specs/2026-07-27-monochrome-theme-design.md @@ -0,0 +1,71 @@ +# Monochrome Theme Redesign — Heimdall + +**Date**: 2026-07-27 +**Status**: Draft + +## Objectif + +Refondre le thème Heimdall (dashboard surveillance MudBlazor) en noir & blanc pur, +avec ajout de Font Awesome pour les icônes, en conservant les couleurs de statut +(vert/rouge/orange) pour les indicateurs fonctionnels. + +## Palette + +### Light Mode + +| Rôle | Couleur | +|------|---------| +| Background | `#FAFAFA` | +| Surface (cards) | `#FFFFFF` | +| Appbar | `#000000` | +| Drawer | `#FFFFFF` | +| Text Primary | `#111111` | +| Text Secondary | `#555555` | +| Lines/Inputs | `#E5E5E5` | +| Success | `#16A34A` | +| Error | `#DC2626` | +| Warning | `#EA580C` | + +### Dark Mode + +| Rôle | Couleur | +|------|---------| +| Background | `#0A0A0A` | +| Surface | `#1A1A1A` | +| Appbar | `#000000` | +| Drawer | `#1A1A1A` | +| Text Primary | `#F5F5F5` | +| Text Secondary | `#A3A3A3` | +| Lines/Inputs | `#333333` | +| Success | `#22C55E` | +| Error | `#EF4444` | +| Warning | `#F97316` | + +## Typos + +- Police existante : **Inter** (Google Fonts) — weights 300/400/500/600/700 +- Police code : **Fira Code** (déjà présente) +- Hiérarchie renforcée : titres en 600/700, body en 400, labels en 500 + +## Icônes + +- **Font Awesome 6 Free** ajouté via CDN +- Matériel Icons MudBlazor conservés pour la navigation +- Font Awesome utilisé pour : statuts, badges, auth page, empty states + +## Pages impactées + +1. **MainLayout.razor** — Palette MudTheme noir/blanc +2. **App.razor** — Ajout CDN Font Awesome +3. **app.css** — Refonte globale, auth pages monochrome, transitions +4. **ReconnectModal.razor.css** — Dark mode +5. **MudBlazorLayout.razor** — Ajout thème (layout fallback) + +## Principes de lisibilité + +- Contrastes élevés (ratio WCAG AA+) +- Ombres douces sur les cards +- Bordures fines (1px) pour les surfaces +- États de survol clairs (darken/lighten) +- Transitions smooth sur dark/light switch +- Statuts couleur qui ressortent sur fond neutre diff --git a/src/Heimdall.Web/Components/App.razor b/src/Heimdall.Web/Components/App.razor index 27b1f2c..b34ffff 100644 --- a/src/Heimdall.Web/Components/App.razor +++ b/src/Heimdall.Web/Components/App.razor @@ -1,4 +1,4 @@ - + @@ -6,6 +6,7 @@ + @@ -23,7 +24,7 @@
- +

Une erreur est survenue

L'application a rencontré une erreur. Recharger la page pour réessayer.

diff --git a/src/Heimdall.Web/Components/Layout/MainLayout.razor b/src/Heimdall.Web/Components/Layout/MainLayout.razor index b4ddc2a..0822abb 100644 --- a/src/Heimdall.Web/Components/Layout/MainLayout.razor +++ b/src/Heimdall.Web/Components/Layout/MainLayout.razor @@ -1,4 +1,4 @@ -@inherits LayoutComponentBase +@inherits LayoutComponentBase @inject AuthState Auth @inject NavigationManager Navigation @inject HeimdallAuthStateProvider AuthStateProvider @@ -12,7 +12,9 @@ - Heimdall + + Heimdall + @* Global Search *@ - + @@ -48,44 +50,44 @@ @if (Auth.IsLoggedIn) { - Navigation + Navigation - - Dashboard + + Dashboard - - Sites & Caméras + + Sites & Caméras @if (Auth.HasPermission("Admin.Users") || Auth.HasPermission("Admin.Manage")) { - Administration - - Utilisateurs + Administration + + Utilisateurs - - Agents + + Agents - - Rôles & Permissions + + Rôles & Permissions - - Groupes + + Groupes - - Matrice des permissions + + Matrice des permissions - - Événements + + Événements - - Snapshots + + Snapshots - - Journal d'audit + + Journal d'audit - - Configuration + + Configuration } @@ -114,45 +116,114 @@ { PaletteLight = new PaletteLight { - Primary = "#1976D2", - Secondary = "#9E9E9E", - Tertiary = "#009688", - AppbarBackground = "#1565C0", + // ─── Noir & Blanc — mode clair ───────────────────────── + Black = "#000000", + White = "#FFFFFF", + + Primary = "#111111", + PrimaryContrastText = "#FFFFFF", + Secondary = "#555555", + SecondaryContrastText = "#FFFFFF", + Tertiary = "#333333", + TertiaryContrastText = "#FFFFFF", + + // Appbar — noir pur + AppbarBackground = "#000000", AppbarText = "#FFFFFF", - Background = "#F5F5F5", + + // Fond général + Background = "#FAFAFA", Surface = "#FFFFFF", + + // Navigation DrawerBackground = "#FFFFFF", - DrawerText = "#424242", - TextPrimary = "#212121", - TextSecondary = "#616161", - TextDisabled = "#BDBDBD", - Dark = "#0D47A1", - DarkLighten = "#1976D2", - Info = "#42A5F5", - Warning = "#FF9800", - Error = "#F44336", - Success = "#4CAF50", + DrawerText = "#111111", + DrawerIcon = "#555555", + + // Typographie + TextPrimary = "#111111", + TextSecondary = "#555555", + TextDisabled = "#A3A3A3", + + // Bordures & lignes + LinesDefault = "#E5E5E5", + LinesInputs = "#D4D4D4", + + // Ombres & profondeur + Dark = "#000000", + DarkLighten = "#1A1A1A", + + // Couleurs de statut (volontairement vives sur fond clair) + Info = "#2563EB", + Warning = "#EA580C", + Error = "#DC2626", + Success = "#16A34A", + + // Tableaux + TableLines = "#E5E5E5", + TableStriped = "#FAFAFA", + + // Séparateurs + Divider = "#E5E5E5", + DividerLight = "#F0F0F0", + + // Overlays & interactions }, + PaletteDark = new PaletteDark { - Primary = "#64B5F6", - Secondary = "#BDBDBD", - Tertiary = "#80CBC4", - AppbarBackground = "#212121", + // ─── Noir & Blanc — mode sombre ──────────────────────── + Black = "#000000", + White = "#FFFFFF", + + Primary = "#FFFFFF", + PrimaryContrastText = "#000000", + Secondary = "#A3A3A3", + SecondaryContrastText = "#000000", + Tertiary = "#CCCCCC", + TertiaryContrastText = "#000000", + + // Appbar — noir (identique au light) + AppbarBackground = "#000000", AppbarText = "#FFFFFF", - Background = "#121212", - Surface = "#424242", - DrawerBackground = "#424242", - DrawerText = "#BDBDBD", - TextPrimary = "#E0E0E0", - TextSecondary = "#BDBDBD", - TextDisabled = "#757575", - Dark = "#1A237E", - DarkLighten = "#1976D2", - Info = "#42A5F5", - Warning = "#FFA726", - Error = "#EF5350", - Success = "#66BB6A", + + // Fond général — presque noir + Background = "#0A0A0A", + Surface = "#1A1A1A", + + // Navigation + DrawerBackground = "#1A1A1A", + DrawerText = "#F5F5F5", + DrawerIcon = "#A3A3A3", + + // Typographie + TextPrimary = "#F5F5F5", + TextSecondary = "#A3A3A3", + TextDisabled = "#555555", + + // Bordures & lignes + LinesDefault = "#333333", + LinesInputs = "#444444", + + // Ombres & profondeur + Dark = "#000000", + DarkLighten = "#0A0A0A", + + // Couleurs de statut (légèrement adoucies pour dark) + Info = "#60A5FA", + Warning = "#F97316", + Error = "#EF4444", + Success = "#22C55E", + + // Tableaux + TableLines = "#333333", + TableStriped = "#222222", + + // Séparateurs + Divider = "#333333", + DividerLight = "#2A2A2A", + + // Overlays & interactions } }; diff --git a/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor b/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor index b821904..f22e477 100644 --- a/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor +++ b/src/Heimdall.Web/Components/Layout/MudBlazorLayout.razor @@ -1,6 +1,6 @@ @inherits LayoutComponentBase - + @@ -9,3 +9,76 @@ @Body + +@code { + // Thème monochrome noir & blanc — partagé avec MainLayout + private readonly MudTheme _theme = new() + { + PaletteLight = new PaletteLight + { + Black = "#000000", + White = "#FFFFFF", + Primary = "#111111", + PrimaryContrastText = "#FFFFFF", + Secondary = "#555555", + SecondaryContrastText = "#FFFFFF", + Tertiary = "#333333", + TertiaryContrastText = "#FFFFFF", + AppbarBackground = "#000000", + AppbarText = "#FFFFFF", + Background = "#FAFAFA", + Surface = "#FFFFFF", + DrawerBackground = "#FFFFFF", + DrawerText = "#111111", + DrawerIcon = "#555555", + TextPrimary = "#111111", + TextSecondary = "#555555", + TextDisabled = "#A3A3A3", + LinesDefault = "#E5E5E5", + LinesInputs = "#D4D4D4", + Dark = "#000000", + DarkLighten = "#1A1A1A", + Info = "#2563EB", + Warning = "#EA580C", + Error = "#DC2626", + Success = "#16A34A", + TableLines = "#E5E5E5", + TableStriped = "#FAFAFA", + Divider = "#E5E5E5", + DividerLight = "#F0F0F0", + }, + PaletteDark = new PaletteDark + { + Black = "#000000", + White = "#FFFFFF", + Primary = "#FFFFFF", + PrimaryContrastText = "#000000", + Secondary = "#A3A3A3", + SecondaryContrastText = "#000000", + Tertiary = "#CCCCCC", + TertiaryContrastText = "#000000", + AppbarBackground = "#000000", + AppbarText = "#FFFFFF", + Background = "#0A0A0A", + Surface = "#1A1A1A", + DrawerBackground = "#1A1A1A", + DrawerText = "#F5F5F5", + DrawerIcon = "#A3A3A3", + TextPrimary = "#F5F5F5", + TextSecondary = "#A3A3A3", + TextDisabled = "#555555", + LinesDefault = "#333333", + LinesInputs = "#444444", + Dark = "#000000", + DarkLighten = "#0A0A0A", + Info = "#60A5FA", + Warning = "#F97316", + Error = "#EF4444", + Success = "#22C55E", + TableLines = "#333333", + TableStriped = "#222222", + Divider = "#333333", + DividerLight = "#2A2A2A", + } + }; +} diff --git a/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css b/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css index d8beb8f..ab033fb 100644 --- a/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css +++ b/src/Heimdall.Web/Components/Layout/ReconnectModal.razor.css @@ -1,3 +1,5 @@ +/* ─── Reconnect Modal — Dark/Light compatible ───────────────── */ + .components-reconnect-first-attempt-visible, .components-reconnect-repeated-attempt-visible, .components-reconnect-failed-visible, @@ -19,27 +21,29 @@ display: block; } - #components-reconnect-modal { - background-color: white; - width: 20rem; + background-color: var(--bg-card, #FFFFFF); + color: var(--text-primary, #111111); + width: 22rem; + max-width: 90vw; margin: 20vh auto; padding: 2rem; - border: 0; - border-radius: 0.5rem; - box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3); + border: 1px solid var(--border-color, #E5E5E5); + border-radius: 16px; + box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25)); opacity: 0; transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete; animation: components-reconnect-modal-fadeOutOpacity 0.5s both; } #components-reconnect-modal[open] { - animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s; + animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, + components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s; animation-fill-mode: both; } #components-reconnect-modal::backdrop { - background-color: rgba(0, 0, 0, 0.4); + background-color: rgba(0, 0, 0, 0.5); animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out; opacity: 1; } @@ -48,30 +52,19 @@ 0% { transform: translateY(30px) scale(0.95); } - 100% { transform: translateY(0); } } @keyframes components-reconnect-modal-fadeInOpacity { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } + 0% { opacity: 0; } + 100% { opacity: 1; } } @keyframes components-reconnect-modal-fadeOutOpacity { - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } + 0% { opacity: 1; } + 100% { opacity: 0; } } .components-reconnect-container { @@ -79,77 +72,79 @@ flex-direction: column; align-items: center; gap: 1rem; + text-align: center; } #components-reconnect-modal p { margin: 0; - text-align: center; } #components-reconnect-modal button { - border: 0; - background-color: #6b9ed2; - color: white; - padding: 4px 24px; - border-radius: 4px; + border: 1.5px solid var(--border-color, #E5E5E5); + background: var(--bg-surface, #FFFFFF); + color: var(--text-primary, #111111); + padding: 8px 28px; + border-radius: 8px; + font-weight: 500; + cursor: pointer; + transition: background 0.2s ease, border-color 0.2s ease; } - #components-reconnect-modal button:hover { - background-color: #3b6ea2; - } +#components-reconnect-modal button:hover { + background: var(--bg-hover, rgba(0, 0, 0, 0.04)); + border-color: var(--text-secondary, #555555); +} - #components-reconnect-modal button:active { - background-color: #6b9ed2; - } +#components-reconnect-modal button:active { + background: var(--bg-active, rgba(0, 0, 0, 0.06)); +} +/* Rejoining animation ring */ .components-rejoining-animation { position: relative; - width: 80px; - height: 80px; + width: 72px; + height: 72px; } - .components-rejoining-animation div { - position: absolute; - border: 3px solid #0087ff; - opacity: 1; - border-radius: 50%; - animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite; - } +.components-rejoining-animation div { + position: absolute; + border: 3px solid #555555; + opacity: 1; + border-radius: 50%; + animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite; +} - .components-rejoining-animation div:nth-child(2) { - animation-delay: -0.5s; - } +.components-rejoining-animation div:nth-child(2) { + animation-delay: -0.5s; +} @keyframes components-rejoining-animation { 0% { - top: 40px; - left: 40px; + top: 36px; + left: 36px; width: 0; height: 0; opacity: 0; } - 4.9% { - top: 40px; - left: 40px; + top: 36px; + left: 36px; width: 0; height: 0; opacity: 0; } - 5% { - top: 40px; - left: 40px; + top: 36px; + left: 36px; width: 0; height: 0; opacity: 1; } - 100% { - top: 0px; - left: 0px; - width: 80px; - height: 80px; + top: 0; + left: 0; + width: 72px; + height: 72px; opacity: 0; } } diff --git a/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor b/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor index 620b488..bbc970c 100644 --- a/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor +++ b/src/Heimdall.Web/Components/Pages/Admin/AllAgentsPage.razor @@ -5,7 +5,7 @@ @inject ISnackbar Snackbar - + Agents diff --git a/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor b/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor index 7d1e827..7674648 100644 --- a/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor +++ b/src/Heimdall.Web/Components/Pages/Admin/ClaimsPage.razor @@ -5,7 +5,7 @@ @inject ISnackbar Snackbar - + Matrice des permissions diff --git a/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor b/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor index 3f99353..d19d7e1 100644 --- a/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor +++ b/src/Heimdall.Web/Components/Pages/Admin/GroupsPage.razor @@ -5,7 +5,7 @@ @inject ISnackbar Snackbar - + Groupes diff --git a/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor b/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor index f69f387..f196a23 100644 --- a/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor +++ b/src/Heimdall.Web/Components/Pages/Admin/RolesPage.razor @@ -5,7 +5,7 @@ @inject ISnackbar Snackbar - + Rôles & Permissions diff --git a/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor b/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor index 333cc0f..ce5a249 100644 --- a/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor +++ b/src/Heimdall.Web/Components/Pages/AuditLogsPage.razor @@ -5,7 +5,7 @@ @inject ISnackbar Snackbar - + Journal d'audit diff --git a/src/Heimdall.Web/Components/Pages/CameraDetail.razor b/src/Heimdall.Web/Components/Pages/CameraDetail.razor index 03bb11b..328e1a1 100644 --- a/src/Heimdall.Web/Components/Pages/CameraDetail.razor +++ b/src/Heimdall.Web/Components/Pages/CameraDetail.razor @@ -6,7 +6,7 @@ @inject NavigationManager Nav - + Caméra : @_camera?.Name diff --git a/src/Heimdall.Web/Components/Pages/CamerasPage.razor b/src/Heimdall.Web/Components/Pages/CamerasPage.razor index cd348f6..7537bc3 100644 --- a/src/Heimdall.Web/Components/Pages/CamerasPage.razor +++ b/src/Heimdall.Web/Components/Pages/CamerasPage.razor @@ -6,7 +6,7 @@ @inject NavigationManager Nav - + Caméras du site diff --git a/src/Heimdall.Web/Components/Pages/EventsPage.razor b/src/Heimdall.Web/Components/Pages/EventsPage.razor index e7dfcad..839d376 100644 --- a/src/Heimdall.Web/Components/Pages/EventsPage.razor +++ b/src/Heimdall.Web/Components/Pages/EventsPage.razor @@ -6,7 +6,7 @@ @inject NavigationManager Nav - + Événements diff --git a/src/Heimdall.Web/Components/Pages/Login.razor b/src/Heimdall.Web/Components/Pages/Login.razor index fe4ff4f..8ba3abe 100644 --- a/src/Heimdall.Web/Components/Pages/Login.razor +++ b/src/Heimdall.Web/Components/Pages/Login.razor @@ -13,7 +13,7 @@
- +

Heimdall

Plateforme de surveillance vidéo

diff --git a/src/Heimdall.Web/Components/Pages/NotFound.razor b/src/Heimdall.Web/Components/Pages/NotFound.razor index 917ada1..0b44842 100644 --- a/src/Heimdall.Web/Components/Pages/NotFound.razor +++ b/src/Heimdall.Web/Components/Pages/NotFound.razor @@ -1,5 +1,13 @@ -@page "/not-found" +@page "/not-found" @layout MainLayout -

Not Found

-

Sorry, the content you are looking for does not exist.

\ No newline at end of file +
+ + Page introuvable + + Désolé, la page que vous cherchez n'existe pas ou a été déplacée. + + + Retour au Dashboard + +
diff --git a/src/Heimdall.Web/Components/Pages/Profile.razor b/src/Heimdall.Web/Components/Pages/Profile.razor index 843c8c4..1fb9f34 100644 --- a/src/Heimdall.Web/Components/Pages/Profile.razor +++ b/src/Heimdall.Web/Components/Pages/Profile.razor @@ -7,7 +7,7 @@ @inject HeimdallAuthStateProvider AuthProvider - + Mon profil diff --git a/src/Heimdall.Web/Components/Pages/Register.razor b/src/Heimdall.Web/Components/Pages/Register.razor index a9094cb..944c6ca 100644 --- a/src/Heimdall.Web/Components/Pages/Register.razor +++ b/src/Heimdall.Web/Components/Pages/Register.razor @@ -11,7 +11,7 @@
- +

Créer un compte

Rejoignez la plateforme Heimdall

diff --git a/src/Heimdall.Web/Components/Pages/SettingsPage.razor b/src/Heimdall.Web/Components/Pages/SettingsPage.razor index 661ef97..7636b3d 100644 --- a/src/Heimdall.Web/Components/Pages/SettingsPage.razor +++ b/src/Heimdall.Web/Components/Pages/SettingsPage.razor @@ -6,7 +6,7 @@
- + Configuration diff --git a/src/Heimdall.Web/Components/Pages/SiteDetail.razor b/src/Heimdall.Web/Components/Pages/SiteDetail.razor index 7fc37ad..2d45132 100644 --- a/src/Heimdall.Web/Components/Pages/SiteDetail.razor +++ b/src/Heimdall.Web/Components/Pages/SiteDetail.razor @@ -7,7 +7,7 @@ @inject IJSRuntime Js - + Site : @_site?.Name diff --git a/src/Heimdall.Web/Components/Pages/SitesPage.razor b/src/Heimdall.Web/Components/Pages/SitesPage.razor index 52220eb..17918df 100644 --- a/src/Heimdall.Web/Components/Pages/SitesPage.razor +++ b/src/Heimdall.Web/Components/Pages/SitesPage.razor @@ -5,7 +5,7 @@ @inject ISnackbar Snackbar - + Sites diff --git a/src/Heimdall.Web/Components/Pages/SnapshotsPage.razor b/src/Heimdall.Web/Components/Pages/SnapshotsPage.razor index 3265484..dbe7cba 100644 --- a/src/Heimdall.Web/Components/Pages/SnapshotsPage.razor +++ b/src/Heimdall.Web/Components/Pages/SnapshotsPage.razor @@ -6,7 +6,7 @@ @inject NavigationManager Nav - + Galerie de snapshots diff --git a/src/Heimdall.Web/Components/Pages/UsersPage.razor b/src/Heimdall.Web/Components/Pages/UsersPage.razor index bb5765d..906c1e2 100644 --- a/src/Heimdall.Web/Components/Pages/UsersPage.razor +++ b/src/Heimdall.Web/Components/Pages/UsersPage.razor @@ -5,7 +5,7 @@ @inject ISnackbar Snackbar - + Utilisateurs diff --git a/src/Heimdall.Web/Components/Shared/EmptyState.razor b/src/Heimdall.Web/Components/Shared/EmptyState.razor index 28c3440..611b419 100644 --- a/src/Heimdall.Web/Components/Shared/EmptyState.razor +++ b/src/Heimdall.Web/Components/Shared/EmptyState.razor @@ -1,11 +1,18 @@ @* Empty state placeholder shown when a list or section has no data. *@ - - + + @if (!string.IsNullOrEmpty(FaIcon)) + { + + } + else + { + + } @Title @if (!string.IsNullOrEmpty(Description)) { - @Description + @Description } @ActionContent @@ -18,6 +25,12 @@ [Parameter] public string Icon { get; set; } = Icons.Material.Filled.Business; + /// + /// Optional Font Awesome icon (e.g. "fas fa-video"). Takes precedence over Icon. + /// + [Parameter] + public string FaIcon { get; set; } = string.Empty; + /// /// Main heading text. /// diff --git a/src/Heimdall.Web/Components/Shared/LoadingSkeleton.razor b/src/Heimdall.Web/Components/Shared/LoadingSkeleton.razor index 59676e0..b051ec7 100644 --- a/src/Heimdall.Web/Components/Shared/LoadingSkeleton.razor +++ b/src/Heimdall.Web/Components/Shared/LoadingSkeleton.razor @@ -1,14 +1,15 @@ @* Skeleton loading placeholder for cards and content areas. *@ - + @if (ShowTitle) { - + } @for (int i = 0; i < LineCount; i++) { - + } @@ -32,4 +33,11 @@ [Parameter] public string Class { get; set; } = string.Empty; + private string GetWidth(int index) => (index % 3) switch + { + 0 => "100%", + 1 => "85%", + _ => "92%" + }; + } diff --git a/src/Heimdall.Web/Components/Shared/SectionCard.razor b/src/Heimdall.Web/Components/Shared/SectionCard.razor index 48baa62..1afbf79 100644 --- a/src/Heimdall.Web/Components/Shared/SectionCard.razor +++ b/src/Heimdall.Web/Components/Shared/SectionCard.razor @@ -1,10 +1,14 @@ -@* Reusable section card with title, icon, optional help tooltip and action area. *@ +@* Reusable section card with title, icon (MudBlazor or Font Awesome), optional help tooltip and action area. *@ - + @if (!string.IsNullOrEmpty(Title)) {
- @if (!string.IsNullOrEmpty(Icon)) + @if (!string.IsNullOrEmpty(FaIcon)) + { + + } + else if (!string.IsNullOrEmpty(Icon)) { } @@ -13,7 +17,7 @@ @if (!string.IsNullOrEmpty(HelpText)) { - + }
@@ -35,6 +39,12 @@ [Parameter] public string Icon { get; set; } = string.Empty; + /// + /// Optional Font Awesome icon (e.g. "fas fa-camera"). Takes precedence over Icon. + /// + [Parameter] + public string FaIcon { get; set; } = string.Empty; + /// /// Color of the title icon. Defaults to . /// diff --git a/src/Heimdall.Web/wwwroot/app.css b/src/Heimdall.Web/wwwroot/app.css index e234cec..cfaf707 100644 --- a/src/Heimdall.Web/wwwroot/app.css +++ b/src/Heimdall.Web/wwwroot/app.css @@ -1,14 +1,141 @@ /* ─── Heimdall — Global Styles ────────────────────────────────── */ +/* Monochrome theme · Dark/Light · Font Awesome */ + +/* ═══════════════════════════════════════════════════════════════════ + CSS Custom Properties — switched by .mud-theme-dark on + ═══════════════════════════════════════════════════════════════════ */ + +html { + /* ── Surfaces & backgrounds ── */ + --bg-app: #FAFAFA; + --bg-surface: #FFFFFF; + --bg-card: #FFFFFF; + --bg-input: #F8F8F8; + --bg-hover: rgba(0, 0, 0, 0.04); + --bg-active: rgba(0, 0, 0, 0.06); + + /* ── Text ── */ + --text-primary: #111111; + --text-secondary: #555555; + --text-tertiary: #888888; + --text-disabled: #A3A3A3; + --text-inverse: #FFFFFF; + + /* ── Borders ── */ + --border-color: #E5E5E5; + --border-light: #F0F0F0; + --border-input: #D4D4D4; + + /* ── Shadows ── */ + --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05); + --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05); + --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04); + --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15); + + /* ── Scrollbar ── */ + --scrollbar-thumb: #C4C4C4; + --scrollbar-thumb-hover: #A0A0A0; + --scrollbar-track: transparent; + + /* ── Auth page (light defaults) ── */ + --auth-bg-start: #0A0A0A; + --auth-bg-mid: #1A1A1A; + --auth-bg-end: #0A0A0A; + --auth-primary: #111111; + --auth-primary-rgb: 17, 17, 17; + --auth-primary-hover: #000000; + --auth-accent: #333333; + --auth-bg-card: rgba(255, 255, 255, 0.98); + --auth-text-heading: #111111; + --auth-text-body: #555555; + --auth-text-link: #111111; + --auth-text-link-hover: #000000; + --auth-border: #E5E5E5; + --auth-bg-input: #F8F8F8; + --auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25); + --auth-border-card: rgba(0, 0, 0, 0.06); + --auth-accent-circle: rgba(17, 17, 17, 0.06); + + /* ── Blazor error ── */ + --error-bg: #FFF8E1; + --error-text: #8D6E00; +} + +/* ═══════════════════════════════════════════════════════════════════ + Dark mode — MudBlazor adds .mud-theme-dark to + ═══════════════════════════════════════════════════════════════════ */ + +html.mud-theme-dark { + --bg-app: #0A0A0A; + --bg-surface: #1A1A1A; + --bg-card: #1A1A1A; + --bg-input: #222222; + --bg-hover: rgba(255, 255, 255, 0.04); + --bg-active: rgba(255, 255, 255, 0.06); + + --text-primary: #F5F5F5; + --text-secondary: #A3A3A3; + --text-tertiary: #777777; + --text-disabled: #555555; + --text-inverse: #000000; + + --border-color: #333333; + --border-light: #2A2A2A; + --border-input: #444444; + + --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); + --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3); + --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3); + --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5); + + --scrollbar-thumb: #555555; + --scrollbar-thumb-hover: #777777; + --scrollbar-track: transparent; + + --auth-primary: #FFFFFF; + --auth-primary-rgb: 255, 255, 255; + --auth-primary-hover: #E5E5E5; + --auth-accent: #CCCCCC; + --auth-bg-card: rgba(26, 26, 26, 0.98); + --auth-text-heading: #F5F5F5; + --auth-text-body: #A3A3A3; + --auth-text-link: #FFFFFF; + --auth-text-link-hover: #CCCCCC; + --auth-border: #333333; + --auth-bg-input: #222222; + --auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6); + --auth-border-card: rgba(255, 255, 255, 0.05); + --auth-accent-circle: rgba(255, 255, 255, 0.05); + + --error-bg: #3A2A00; + --error-text: #FFD966; +} + +/* ═══════════════════════════════════════════════════════════════════ + Base + ═══════════════════════════════════════════════════════════════════ */ + +html { + transition: background-color 0.3s ease, color 0.3s ease; +} + +html.mud-theme-dark { + transition: background-color 0.3s ease, color 0.3s ease; +} html, body { font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif; height: 100%; margin: 0; - background-color: #f5f5f5; - color-scheme: light dark; + background-color: var(--bg-app); + color: var(--text-primary); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } -/* ─── Scrollbar ───────────────────────────────────────────────── */ +/* ═══════════════════════════════════════════════════════════════════ + Scrollbar + ═══════════════════════════════════════════════════════════════════ */ ::-webkit-scrollbar { width: 8px; @@ -16,60 +143,125 @@ html, body { } ::-webkit-scrollbar-track { - background: transparent; + background: var(--scrollbar-track); } ::-webkit-scrollbar-thumb { - background: #c4c4c4; + background: var(--scrollbar-thumb); border-radius: 4px; + transition: background 0.2s ease; } ::-webkit-scrollbar-thumb:hover { - background: #a6a6a6; + background: var(--scrollbar-thumb-hover); } * { - scrollbar-color: #c4c4c4 transparent; + scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); scrollbar-width: thin; } -/* ─── MudBlazor overrides ─────────────────────────────────────── */ +/* ═══════════════════════════════════════════════════════════════════ + MudBlazor overrides + ═══════════════════════════════════════════════════════════════════ */ +/* Cards arrondis propres */ .mud-dialog { - border-radius: 12px !important; + border-radius: 14px !important; } .mud-table { border-radius: 12px !important; } -/* Code blocks in tokens */ +.mud-paper { + transition: box-shadow 0.2s ease, border-color 0.2s ease; +} + +/* Papier avec bordure subtile plutôt qu'ombre portée */ +.mud-paper.mud-elevation-1 { + box-shadow: var(--shadow-sm); +} +.mud-paper.mud-elevation-2 { + box-shadow: var(--shadow-md); +} +.mud-paper.mud-elevation-3 { + box-shadow: var(--shadow-lg); +} + +/* Boutons outline propres */ +.mud-button-outlined { + border-width: 1.5px !important; +} + +/* Chips de statut */ +.mud-chip { + font-weight: 500 !important; +} + +/* Navigation — espacement */ +.mud-nav-item { + border-radius: 8px !important; + margin: 2px 8px !important; +} + +.mud-nav-link { + border-radius: 8px !important; + padding: 8px 12px !important; +} + +/* Drawer — fond propre */ +.mud-drawer { + border-right: 1px solid var(--border-color) !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Font Awesome fallback helper + ═══════════════════════════════════════════════════════════════════ */ + +.fa, .fas, .far, .fab { + font-family: 'Font Awesome 6 Free' !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Code blocks + ═══════════════════════════════════════════════════════════════════ */ + code { font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: 0.9em; + background: var(--bg-hover); + padding: 2px 6px; + border-radius: 4px; } -/* ─── Validation ───────────────────────────────────────────────── */ +/* ═══════════════════════════════════════════════════════════════════ + Validation + ═══════════════════════════════════════════════════════════════════ */ .valid.modified:not([type=checkbox]) { - outline: 1px solid #26b050; + outline: 1px solid #22C55E; } .invalid { - outline: 1px solid #e50000; + outline: 1px solid #EF4444; } .validation-message { - color: #e50000; + color: #EF4444; + font-size: 0.8rem; + margin-top: 2px; } -/* ─── Blazor error UI ─────────────────────────────────────────── */ +/* ═══════════════════════════════════════════════════════════════════ + Blazor error UI + ═══════════════════════════════════════════════════════════════════ */ #blazor-error-ui { - color-scheme: light only; - background: lightyellow; + background: var(--error-bg); + color: var(--error-text); bottom: 0; - box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); + box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); box-sizing: border-box; display: none; left: 0; @@ -77,6 +269,7 @@ code { position: fixed; width: 100%; z-index: 1000; + font-size: 0.875rem; } #blazor-error-ui .dismiss { @@ -86,44 +279,66 @@ code { top: 0.5rem; } -/* ─── User management ──────────────────────────────────────────── */ - -.user-section-card { - background: var(--mud-palette-surface); - border: 1px solid var(--mud-palette-lines-inputs); - border-radius: 8px; +#blazor-error-ui .reconnect { + font-weight: 600; + text-decoration: underline; } -/* ─── Settings page ────────────────────────────────────────────── */ +/* ═══════════════════════════════════════════════════════════════════ + User management cards + ═══════════════════════════════════════════════════════════════════ */ + +.user-section-card { + background: var(--bg-surface); + border: 1px solid var(--border-color); + border-radius: 12px; + transition: border-color 0.2s ease; +} + +/* ═══════════════════════════════════════════════════════════════════ + Settings page + ═══════════════════════════════════════════════════════════════════ */ .settings-type-chip { padding: 2px 8px !important; border-radius: 12px !important; display: inline-block !important; - color: #fff !important; + font-weight: 500 !important; } -/* ─── Auth pages (Login / Register) ─────────────────────────────── */ +/* ═══════════════════════════════════════════════════════════════════ + Empty states + ═══════════════════════════════════════════════════════════════════ */ + +.empty-state { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 3rem 1rem; + text-align: center; + color: var(--text-secondary); +} + +.empty-state i { + font-size: 3rem; + margin-bottom: 1rem; + color: var(--text-disabled); +} + +/* ═══════════════════════════════════════════════════════════════════ + Loading skeletons spacing + ═══════════════════════════════════════════════════════════════════ */ + +.mud-skeleton { + border-radius: 6px !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Auth pages (Login / Register) — Monochrome + ═══════════════════════════════════════════════════════════════════ */ .auth-page { - /* Theme variables — override in dark mode media query */ - --auth-bg-start: #0f172a; - --auth-bg-mid: #1e293b; - --auth-bg-end: #0f172a; - --auth-primary: #6366f1; - --auth-primary-rgb: 99, 102, 241; - --auth-primary-hover: #4f46e5; - --auth-accent: #8b5cf6; - --auth-bg-card: rgba(255, 255, 255, 0.98); - --auth-text-heading: #1e293b; - --auth-text-body: #475569; - --auth-text-link: #6366f1; - --auth-text-link-hover: #4f46e5; - --auth-border: #e2e8f0; - --auth-bg-input: #f8fafc; - --auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25); - --auth-border-card: rgba(255, 255, 255, 0.05); - display: flex; align-items: center; justify-content: center; @@ -138,24 +353,24 @@ code { .auth-page::before { content: ''; position: absolute; - top: -25%; + top: -30%; right: -15%; - width: 500px; - height: 500px; + width: 600px; + height: 600px; border-radius: 50%; - background: radial-gradient(circle, rgba(var(--auth-primary-rgb), 0.15) 0%, transparent 70%); + background: radial-gradient(circle, var(--auth-accent-circle) 0%, transparent 70%); pointer-events: none; } .auth-page::after { content: ''; position: absolute; - bottom: -20%; + bottom: -25%; left: -10%; - width: 400px; - height: 400px; + width: 500px; + height: 500px; border-radius: 50%; - background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%); + background: radial-gradient(circle, var(--auth-accent-circle) 0%, transparent 70%); pointer-events: none; } @@ -171,6 +386,7 @@ code { position: relative; z-index: 1; animation: auth-card-enter 0.4s ease-out; + backdrop-filter: blur(4px); } @keyframes auth-card-enter { @@ -193,13 +409,14 @@ code { display: inline-flex; align-items: center; justify-content: center; - width: 56px; - height: 56px; + width: 60px; + height: 60px; border-radius: 16px; background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent)); - color: #fff; - margin-bottom: 1rem; - box-shadow: 0 8px 24px rgba(var(--auth-primary-rgb), 0.3); + color: var(--text-inverse); + margin-bottom: 1.25rem; + font-size: 1.5rem; + box-shadow: 0 8px 24px rgba(var(--auth-primary-rgb), 0.2); } .auth-header h1 { @@ -214,6 +431,7 @@ code { font-size: 0.875rem; color: var(--auth-text-body); margin: 0; + line-height: 1.5; } .auth-form { @@ -224,6 +442,7 @@ code { .auth-form .mud-input-outlined { background: var(--auth-bg-input); + border-radius: 10px; } .auth-form .auth-submit-btn { @@ -233,11 +452,12 @@ code { border-radius: 12px; text-transform: none; letter-spacing: 0.01em; - margin-top: 0.25rem; + margin-top: 0.5rem; } .auth-error { margin-bottom: 0.5rem; + font-size: 0.85rem; } .auth-footer { @@ -257,7 +477,7 @@ code { color: var(--auth-text-link); font-weight: 600; text-decoration: none; - transition: color 0.2s; + transition: color 0.2s ease; } .auth-footer a:hover { @@ -265,40 +485,222 @@ code { text-decoration: underline; } -/* ─── Accessibility ─────────────────────────────────────────────── */ +/* ─── Auth divider with "ou" text ─── */ +.auth-divider { + display: flex; + align-items: center; + gap: 1rem; + margin: 0.5rem 0; + color: var(--text-tertiary); + font-size: 0.8rem; +} + +.auth-divider::before, +.auth-divider::after { + content: ''; + flex: 1; + height: 1px; + background: var(--auth-border); +} + +/* ═══════════════════════════════════════════════════════════════════ + Accessibility — reduced motion + ═══════════════════════════════════════════════════════════════════ */ @media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } + html, html.mud-theme-dark { + transition: none !important; + } + .auth-footer a { transition: none; } -} -/* ─── Dark mode ─────────────────────────────────────────────────── */ - -@media (prefers-color-scheme: dark) { - html, body { - background-color: #0f172a; - } - - #blazor-error-ui { - background: #3a2a00; - color: #ffd966; - } - - /* Auth pages — only override variables, no selector duplication */ - .auth-page { - --auth-bg-card: rgba(30, 41, 59, 0.98); - --auth-text-heading: #f1f5f9; - --auth-text-body: #cbd5e1; - --auth-text-link: #818cf8; - --auth-text-link-hover: #a5b4fc; - --auth-border: #334155; - --auth-bg-input: #1e293b; - --auth-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5); - --auth-border-card: rgba(255, 255, 255, 0.05); + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + transition-duration: 0.01ms !important; } } + +/* ═══════════════════════════════════════════════════════════════════ + Utility — gap helper (for flex gap where MudBlazor doesn't apply) + ═══════════════════════════════════════════════════════════════════ */ + +.gap-1 { gap: 0.25rem; } +.gap-2 { gap: 0.5rem; } +.gap-3 { gap: 0.75rem; } +.gap-4 { gap: 1rem; } + +/* ═══════════════════════════════════════════════════════════════════ + Transitions globales pour le changement de thème + ═══════════════════════════════════════════════════════════════════ */ + +.mud-theme-provider { + transition: background-color 0.3s ease; +} + +.mud-main-content { + transition: background-color 0.3s ease; +} + +/* ═══════════════════════════════════════════════════════════════════ + Page transitions + ═══════════════════════════════════════════════════════════════════ */ + +.mud-main-content { + animation: page-enter 0.25s ease-out; +} + +@keyframes page-enter { + from { + opacity: 0; + transform: translateY(6px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +/* ═══════════════════════════════════════════════════════════════════ + KPI Stat Cards (Dashboard, AllAgents) + ═══════════════════════════════════════════════════════════════════ */ + +.mud-paper.kpi-card, +.mud-paper:has(> .d-flex > .mud-typography-h4) { + transition: transform 0.2s ease, box-shadow 0.2s ease; + cursor: default; +} + +.mud-paper:has(> .d-flex > .mud-typography-h4):hover { + transform: translateY(-2px); + box-shadow: var(--shadow-md); +} + +/* ═══════════════════════════════════════════════════════════════════ + Tables — consistent look + ═══════════════════════════════════════════════════════════════════ */ + +.mud-table-container { + border-radius: 12px; +} + +.mud-table-head { + font-weight: 600; + text-transform: none !important; + font-size: 0.8rem; + letter-spacing: 0.03em; + color: var(--mud-palette-text-secondary); +} + +.mud-table-row { + transition: background-color 0.15s ease; +} + +/* ═══════════════════════════════════════════════════════════════════ + Dialogs — cleaner look + ═══════════════════════════════════════════════════════════════════ */ + +.mud-dialog-content { + padding: 20px 24px !important; +} + +.mud-dialog-title { + padding: 16px 24px 8px !important; + font-weight: 600 !important; +} + +.mud-dialog-actions { + padding: 8px 24px 16px !important; + gap: 8px; +} + +/* ═══════════════════════════════════════════════════════════════════ + Buttons — clean hover states + ═══════════════════════════════════════════════════════════════════ */ + +.mud-button-filled { + transition: opacity 0.2s ease, box-shadow 0.2s ease !important; +} + +.mud-button-filled:hover { + opacity: 0.92; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; +} + +html.mud-theme-dark .mud-button-filled:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important; +} + +.mud-button-outlined { + transition: background-color 0.2s ease, border-color 0.2s ease !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Navigation — active state bold + ═══════════════════════════════════════════════════════════════════ */ + +.mud-nav-link.active { + font-weight: 600 !important; +} + +.mud-nav-link.active .mud-icon-root { + color: var(--mud-palette-primary) !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + MudChip in tables (status, type badges) + ═══════════════════════════════════════════════════════════════════ */ + +.mud-chip-filled { + font-weight: 500 !important; + border-radius: 20px !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Links — clean underline on hover + ═══════════════════════════════════════════════════════════════════ */ + +a.mud-link { + text-decoration: none !important; + transition: opacity 0.2s ease; +} + +a.mud-link:hover { + opacity: 0.75; + text-decoration: underline !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Progress indicators + ═══════════════════════════════════════════════════════════════════ */ + +.mud-progress-linear { + border-radius: 4px !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Alerts — consistent border radius + ═══════════════════════════════════════════════════════════════════ */ + +.mud-alert { + border-radius: 10px !important; +} + +/* ═══════════════════════════════════════════════════════════════════ + Inputs — clean focus states + ═══════════════════════════════════════════════════════════════════ */ + +.mud-input-outlined-border { + transition: border-color 0.15s ease !important; +} + +.mud-input:focus-within .mud-input-outlined-border { + border-width: 1.5px !important; +}