style: complete Light Sepia theme overrides for user dashboard (#78)

Resolves #79

This Pull Request completes the visual implementation of the premium **"Warm Paper / Soft Sepia"** light theme across all user dashboard sub-modules and components.

### 🎨 Styling Refactoring & Light Sepia Layout
We refactored isolated component styles (`.razor.css`) to ensure proper contrast, remove hardcoded dark tokens, and fix text visibility under the `.theme-light` environment:

1. **Dashboard & Sidebar Layouts:**
   * **MainHubLayout.razor.css** & **Dashboard.razor.css**: Replaced hardcoded dark backgrounds with `var(--bg-surface)` and `var(--bg-base)`. Overrode user name brackets, progress bar elements, active quiz cards, graph nodes, and buttons.
2. **Catalog & Library Pages:**
   * **Catalog.razor.css** & **MyBooks.razor.css**: Adjusted cover hover actions, overlay transparency, and progress tracks. Fixed course tile background gradients to use a warm, elegant `#e4e1d9` layer and `var(--text-main)` code text.
3. **Profile & Settings Views:**
   * **Profile.razor.css** & **Settings.razor.css**: Overrode token usage progress tracks, page title gradient transparency, section descriptions, and diagnostic button styling.
4. **Concepts Dashboard & Interactive Widgets:**
   * **ConceptsDashboard.razor.css** & **ConceptsMap.razor.css**: Transitioned node headers, unlocked/locked badges, warning blocks, and term pills to semantic colors. Removed neon glow animations for locked nodes.
5. **Intelligence Workspace & AI Responses:**
   * **Intelligence.razor.css** & **AiResponseRenderer.razor.css**: Refactored empty state welcome messages, placeholder styles, input fields, and robot avatar borders. Refined the linear-gradient mask fade effect to blend correctly into the light sepia surface environment rather than dropping into dark transparent channels.
6. **Dashboard Sidebar Widgets:**
   * **CurrentReadingWidget.razor.css** & **ContextualRecommendationsWidget.razor.css**: Replaced hardcoded `#1a1a1e` card containers and light text colors with semantic variables (`var(--bg-surface)`, `var(--border)`, `var(--text-main)`, and `var(--text-muted)`).

### 🛠️ Blazor CSS Isolation Compiler Compliance
* Avoided the use of `:global(.theme-light)` selector overrides within isolated CSS rules because they are unsupported by Blazor's CSS isolation compiler and cause the compiled stylesheet to ignore them.
* Replaced them with the correct standard selector format `.theme-light .some-class` which properly compiles to `.theme-light .some-class[b-xxxx]`, applying correct theme styles recursively to child scoped markup.

### 🧪 Verification
* Checked that the solution builds cleanly with 0 compiler errors: `dotnet build NexusReader.slnx --no-restore`
* Ran all unit tests successfully: `dotnet test NexusReader.slnx --no-restore`

---------

Co-authored-by: Marek Jasiński <jasins.marek@gmail.com>
Reviewed-on: #78
Co-authored-by: Antigravity <antigravity@google.com>
Co-committed-by: Antigravity <antigravity@google.com>
This commit was merged in pull request #78.
This commit is contained in:
2026-06-07 16:56:36 +00:00
committed by Marek Jaisński
parent 1d6862016d
commit 9291bde531
51 changed files with 2574 additions and 367 deletions
@@ -2,16 +2,16 @@
display: flex;
width: 100vw;
height: 100vh;
background: #121214;
color: #e4e4e7;
background: var(--bg-base);
color: var(--text-main);
overflow: hidden;
}
::deep .hub-sidebar {
width: 80px;
height: 100%;
background: #0d0d0d;
border-right: 1px solid rgba(255, 255, 255, 0.05);
background: var(--bg-surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
z-index: 100;
@@ -55,7 +55,7 @@
justify-content: center;
width: 100%;
height: 54px;
color: #8b8273;
color: var(--text-muted);
text-decoration: none;
transition: color 0.2s ease, background-color 0.2s ease;
position: relative;
@@ -63,7 +63,7 @@
::deep .nav-item:hover {
color: #10b981;
background: rgba(255, 255, 255, 0.01);
background: rgba(0, 0, 0, 0.04);
}
::deep .nav-item:focus-visible {
@@ -103,7 +103,7 @@
::deep .sidebar-footer {
padding: 1.5rem 0;
border-top: 1px solid rgba(255, 255, 255, 0.05);
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
align-items: center;
@@ -119,15 +119,15 @@
::deep .user-avatar {
width: 36px;
height: 36px;
background: #1a1a1e;
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--bg-base);
border: 1px solid var(--border);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
font-weight: 600;
color: #e4e4e7;
color: var(--text-main);
flex-shrink: 0;
}
@@ -138,7 +138,7 @@
::deep .logout-btn {
background: transparent;
border: none;
color: #8b8273;
color: var(--text-muted);
cursor: pointer;
padding: 0.5rem;
border-radius: 8px;
@@ -157,7 +157,7 @@
flex: 1;
height: 100%;
overflow-y: auto;
background: #121214;
background: var(--bg-base);
}
.hub-content {
@@ -204,10 +204,10 @@
left: 0;
right: 0;
height: 60px;
background: rgba(18, 18, 18, 0.85);
background: var(--bg-surface);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
border-bottom: 1px solid var(--border);
padding: 0 1.25rem;
z-index: 150;
}
@@ -295,7 +295,7 @@
bottom: 0;
width: 280px;
height: 100%;
background: #141414;
background: var(--bg-surface);
z-index: 200;
transform: translateX(-100%);
will-change: transform;
@@ -324,7 +324,7 @@
::deep .sidebar-header {
padding: 1.5rem 1.25rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
border-bottom: 1px solid var(--border);
}
::deep .sidebar-nav {
@@ -342,4 +342,80 @@
}
}
/* ============================================================
LIGHT THEME OVERRIDES — "Warm Paper / Soft Sepia"
Scoped via .theme-light on an ancestor element.
============================================================ */
/* --- Desktop Sidebar: warm paper shadow --- */
.theme-light ::deep .hub-sidebar {
box-shadow: 4px 0 20px rgba(139, 130, 115, 0.08);
}
/* --- Logo icon: remove neon glow --- */
.theme-light ::deep .logo-icon {
filter: none;
}
/* --- Nav item hover: ensure green text, warm hover bg --- */
.theme-light ::deep .nav-item:hover {
color: #10b981;
background: rgba(0, 0, 0, 0.02);
}
/* --- Nav active indicator: reduced glow --- */
.theme-light ::deep .nav-item.active::before {
box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
/* --- Nexus loader: remove neon drop-shadow --- */
.theme-light ::deep .nexus-loader {
filter: none;
}
/* --- Mobile Styles --- */
@media (max-width: 768px) {
/* Hamburger button: dark text on warm paper */
.theme-light .hamburger-btn {
color: #292524;
}
.theme-light .hamburger-btn:hover {
background: rgba(0, 0, 0, 0.04);
}
/* User avatar mini: solid accent, white text, no neon glow */
.theme-light .user-avatar-mini {
background: #10b981;
border: 1px solid rgba(0, 0, 0, 0.08);
color: #ffffff;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}
/* Pulsing logo: subtle accent pulse, no neon glow */
.theme-light .pulsing-logo {
animation: pulse-glow-light 2s infinite ease-in-out;
}
@keyframes pulse-glow-light {
0%, 100% {
filter: none;
opacity: 0.85;
}
50% {
filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.2));
opacity: 1;
}
}
/* Mobile sidebar open state: warm shadow instead of dark */
.theme-light .mobile-menu-open ::deep .hub-sidebar {
box-shadow: 10px 0 30px rgba(139, 130, 115, 0.2);
}
/* Mobile topbar: warm paper border */
.theme-light .nexus-mobile-topbar {
border-bottom-color: rgba(0, 0, 0, 0.08);
}
}