/*
    layout.css — SmartWebTools
    wwwroot/css/layout.css
    Reference in index.html / _Host.cshtml after app.css:
        <link rel="stylesheet" href="css/layout.css" />
*/

/* ═══════════════════════════════════════
   THEME VARIABLES
   ═══════════════════════════════════════ */
:root {
    /* Light mode colors */
    --bg-primary: #eef2ff;
    --bg-secondary: rgba(255, 255, 255, 0.75);
    --bg-tertiary: rgba(255, 255, 255, 0.65);
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-input: rgba(255, 255, 255, 0.85);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;

    --border-primary: rgba(99, 102, 241, 0.12);
    --border-secondary: rgba(226, 232, 240, 0.7);
    --border-light: #e2e8f0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(99, 102, 241, 0.07);
    --shadow-lg: 0 10px 36px rgba(99, 102, 241, 0.12);

    /* Accent colors (remain consistent) */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-darker: #4338ca;
    --color-blue: #3b82f6;
    --color-blue-dark: #2563eb;
    --color-green: #10b981;
    --color-green-dark: #059669;
    --color-amber: #f59e0b;
}

:root.dark-mode {
    /* Dark mode colors */
    --bg-primary: #0f1419;
    --bg-secondary: rgba(30, 41, 59, 0.9);
    --bg-tertiary: rgba(51, 65, 85, 0.7);
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-input: rgba(51, 65, 85, 0.6);

    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-primary: rgba(99, 102, 241, 0.2);
    --border-secondary: rgba(71, 85, 105, 0.5);
    --border-light: rgba(71, 85, 105, 0.6);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 36px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════
   BASE RESET
   ═══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Kill default Blazor chrome */
.page, .sidebar, .top-row,
.top-row.navbar-dark, .top-row.ps-3,
main article.content {
    all: unset;
    display: revert;
}

/* ═══════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════ */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.app-sidebar {
    width: 242px;
    min-width: 242px;
    max-width: 242px;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background: #0f172a;
    overflow: hidden;
    z-index: 200;
    box-shadow: 3px 0 30px rgba(0,0,0,0.25);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

:root.dark-mode .app-sidebar {
    background: #0a0f18;
    box-shadow: 3px 0 30px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════
   RIGHT COLUMN
   ═══════════════════════════════════════ */
.app-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(160deg, #eef2ff 0%, #f0fdf4 50%, #fdf4ff 100%);
    position: relative;
    transition: background 0.3s ease;
}

:root.dark-mode .app-content {
    background: linear-gradient(160deg, #0f1419 0%, #1a2332 50%, #1a1f2e 100%);
}

/* ─── TOPBAR ─── */
.app-topbar {
    height: 52px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 150;
    box-shadow: 0 1px 0 rgba(99,102,241,0.06), 0 4px 20px rgba(99,102,241,0.05);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Left */
.topbar-left {
    display: flex;
    align-items: center;
    min-width: 160px;
}

.topbar-page-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.04));
    border: 1px solid rgba(16,185,129,0.22);
    padding: 4px 12px 4px 9px;
    border-radius: 20px;
}

.topbar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(16,185,129,0.55);
    }

    55% {
        box-shadow: 0 0 0 6px rgba(16,185,129,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16,185,129,0);
    }
}

.topbar-live-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #047857;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Center search */
.topbar-center {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.topbar-search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(241,245,249,0.9);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.18s;
}

:root.dark-mode .topbar-search-pill {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(71, 85, 105, 0.5);
}

    .topbar-search-pill:hover {
        background: #fff;
        border-color: #a5b4fc;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    }

    :root.dark-mode .topbar-search-pill:hover {
        background: rgba(71, 85, 105, 0.8);
        border-color: rgba(99, 102, 241, 0.4);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

.topbar-search-icon {
    color: #94a3b8;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

:root.dark-mode .topbar-search-icon {
    color: #64748b;
}

.topbar-search-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    flex: 1;
    user-select: none;
    transition: color 0.3s ease;
}

:root.dark-mode .topbar-search-hint {
    color: #64748b;
}

.topbar-kbd {
    font-size: 0.6rem;
    font-weight: 600;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

:root.dark-mode .topbar-kbd {
    color: #64748b;
    background: rgba(51, 65, 85, 0.7);
    border-color: rgba(71, 85, 105, 0.5);
}

/* Right */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 200px;
    justify-content: flex-end;
}

.topbar-stat-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    color: #4f46e5;
    transition: all 0.15s;
}

.topbar-stat-chip--privacy {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.18);
    color: #047857;
}

.topbar-stat-chip:hover {
    transform: translateY(-1px);
}

.topbar-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.15s;
}

:root.dark-mode .topbar-icon-btn {
    color: #94a3b8;
}

    .topbar-icon-btn:hover {
        background: rgba(99,102,241,0.08);
        color: #4f46e5;
        transform: translateY(-1px);
    }

    :root.dark-mode .topbar-icon-btn:hover {
        background: rgba(99, 102, 241, 0.2);
        color: #a5b4fc;
        transform: translateY(-1px);
    }

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(99,102,241,0.4);
    cursor: default;
    transition: transform 0.15s;
}

    .topbar-avatar:hover {
        transform: scale(1.06);
    }

/* ─── Theme toggle button ─── */
.topbar-theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.08);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

:root.dark-mode .topbar-theme-toggle {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.15);
    color: #94a3b8;
}

.topbar-theme-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.08);
}

:root.dark-mode .topbar-theme-toggle:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.5);
}

/* ─── Animated rainbow strip ─── */
.topbar-accent-strip {
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #3b82f6 20%, #10b981 40%, #f59e0b 60%, #ef4444 80%, #6366f1 100%);
    background-size: 200% 100%;
    animation: strip-flow 5s linear infinite;
    flex-shrink: 0;
}

@keyframes strip-flow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.trust-bar {
    background: var(--bg-tertiary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
    padding: 0 20px;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 38px;
    overflow: hidden;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #475569;
    padding: 0 16px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

:root.dark-mode .trust-item {
    color: var(--text-secondary);
}

    .trust-item strong {
        color: #1e293b;
        transition: color 0.3s ease;
    }

    :root.dark-mode .trust-item strong {
        color: var(--text-primary);
    }

.trust-icon {
    font-size: 0.78rem;
    flex-shrink: 0;
}

.trust-sep {
    width: 1px;
    height: 18px;
    background: var(--border-primary);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

/* ═══════════════════════════════════════
   MAIN + AMBIENT
   ═══════════════════════════════════════ */
.app-main {
    flex: 1;
    position: relative;
    overflow-x: hidden;
    min-height: 0;
}

.ambient-bg {
    position: fixed;
    top: 0;
    left: 242px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    animation: blob-drift 20s ease-in-out infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: -120px;
    right: -80px;
    animation-duration: 22s;
}

.blob-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    bottom: 5%;
    left: 2%;
    animation-duration: 18s;
    animation-delay: -7s;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #10b981, transparent 70%);
    top: 38%;
    right: 18%;
    animation-duration: 24s;
    animation-delay: -12s;
}

.blob-4 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
    top: 65%;
    right: 40%;
    animation-duration: 19s;
    animation-delay: -4s;
}

@keyframes blob-drift {
    0% {
        transform: translate(0,0) scale(1);
    }

    33% {
        transform: translate(28px,-18px) scale(1.05);
    }

    66% {
        transform: translate(-18px,26px) scale(0.96);
    }

    100% {
        transform: translate(12px,8px) scale(1.02);
    }
}

/* ─── Content wrapper ─── */
.page-content-wrapper {
    position: relative;
    z-index: 1;
    padding: 24px 24px 48px;
    min-height: calc(100vh - 52px - 3px - 38px - 58px);
}

/* ─── Scrollbar ─── */
.app-main::-webkit-scrollbar {
    width: 5px;
}

.app-main::-webkit-scrollbar-track {
    background: transparent;
}

.app-main::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.18);
    border-radius: 3px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.app-footer {
    background: var(--bg-tertiary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-primary);
    flex-shrink: 0;
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
    transition: color 0.3s ease;
}

:root.dark-mode .footer-brand {
    color: var(--text-primary);
}

.footer-brand-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
}

.footer-tagline {
    font-size: 0.71rem;
    color: #94a3b8;
    border-left: 1px solid #e2e8f0;
    padding-left: 12px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

:root.dark-mode .footer-tagline {
    color: var(--text-muted);
    border-color: rgba(71, 85, 105, 0.5);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-copy {
    font-size: 0.71rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

:root.dark-mode .footer-copy {
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 6px;
}

.footer-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.footer-badge--green {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: #047857;
    transition: all 0.3s ease;
}

:root.dark-mode .footer-badge--green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.footer-badge--blue {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    color: #1d4ed8;
    transition: all 0.3s ease;
}

:root.dark-mode .footer-badge--blue {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ═══════════════════════════════════════
   GLOBAL CARD / UI UPGRADES
   Auto-applies to all tool pages
   ═══════════════════════════════════════ */

/* Glass cards */
.page-content-wrapper .card {
    border: 1px solid rgba(255,255,255,0.85) !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm), var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.9) !important;
    border-radius: 14px !important;
    transition: box-shadow 0.2s, transform 0.2s, background 0.3s ease, border-color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .card {
    border-color: rgba(99, 102, 241, 0.15) !important;
    box-shadow: var(--shadow-sm), var(--shadow-md), inset 0 1px 0 rgba(99, 102, 241, 0.1) !important;
}

    .page-content-wrapper .card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.06), var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.9) !important;
        transform: translateY(-2px);
    }

    :root.dark-mode .page-content-wrapper .card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), var(--shadow-lg), inset 0 1px 0 rgba(99, 102, 241, 0.15) !important;
    }

/* Editor / section blocks inherit glass too */
.page-content-wrapper .editor-card {
    background: rgba(255,255,255,0.85) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(99,102,241,0.06) !important;
}

.page-content-wrapper .section-editor-block {
    background: rgba(255,255,255,0.82) !important;
    border: 1px solid rgba(226,232,240,0.7) !important;
}

/* ─── Gradient primary button ─── */
.page-content-wrapper .btn-primary,
.page-content-wrapper .btn-primary:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(79,70,229,0.35) !important;
    transition: all 0.18s !important;
    letter-spacing: 0.2px !important;
    color: #fff !important;
}

    .page-content-wrapper .btn-primary:hover {
        background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(79,70,229,0.45) !important;
    }

:root.dark-mode .page-content-wrapper .btn-primary,
:root.dark-mode .page-content-wrapper .btn-primary:not(:disabled) {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%) !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4) !important;
}

    :root.dark-mode .page-content-wrapper .btn-primary:hover {
        background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
    }

/* ─── Gradient success button ─── */
.page-content-wrapper .btn-success,
.page-content-wrapper .btn-success:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(16,185,129,0.3) !important;
    transition: all 0.18s !important;
    color: #fff !important;
}

    .page-content-wrapper .btn-success:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(16,185,129,0.4) !important;
    }

:root.dark-mode .page-content-wrapper .btn-success,
:root.dark-mode .page-content-wrapper .btn-success:not(:disabled) {
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4) !important;
}

/* ─── Inputs ─── */
.page-content-wrapper .form-control,
.page-content-wrapper .form-select {
    background: var(--bg-input) !important;
    border: 1.5px solid #e2e8f0 !important;
    color: var(--text-primary) !important;
    border-radius: 9px !important;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s !important;
}

:root.dark-mode .page-content-wrapper .form-control,
:root.dark-mode .page-content-wrapper .form-select {
    border-color: rgba(71, 85, 105, 0.5) !important;
}

.page-content-wrapper .form-control::placeholder {
    color: #94a3b8;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .form-control::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

    .page-content-wrapper .form-control:focus,
    .page-content-wrapper .form-select:focus {
        border-color: #6366f1 !important;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
        background: #fff !important;
    }

    :root.dark-mode .page-content-wrapper .form-control:focus,
    :root.dark-mode .page-content-wrapper .form-select:focus {
        border-color: rgba(99, 102, 241, 0.6) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
        background: rgba(51, 65, 85, 0.8) !important;
    }

/* ─── Form labels ─── */
.page-content-wrapper label,
.page-content-wrapper .form-label {
    color: #1e293b;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper label,
:root.dark-mode .page-content-wrapper .form-label {
    color: var(--text-primary);
}

/* ─── Textarea ─── */
.page-content-wrapper textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ─── Page headings — gradient text ─── */
.page-content-wrapper h1,
.page-content-wrapper .h1 {
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

:root.dark-mode .page-content-wrapper h1,
:root.dark-mode .page-content-wrapper .h1 {
    background: linear-gradient(135deg, #f1f5f9 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content-wrapper h2,
.page-content-wrapper .h2 {
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

:root.dark-mode .page-content-wrapper h2,
:root.dark-mode .page-content-wrapper .h2 {
    background: linear-gradient(135deg, #e2e8f0 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Nav workspace tabs ─── */
.page-content-wrapper .nav-workspace {
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(99,102,241,0.12) !important;
    box-shadow: 0 1px 8px rgba(99,102,241,0.07) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

:root.dark-mode .page-content-wrapper .nav-workspace {
    background: rgba(51, 65, 85, 0.5) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2) !important;
}

.page-content-wrapper .nav-workspace .nav-link {
    color: #64748b;
    transition: all 0.3s ease;
}

:root.dark-mode .page-content-wrapper .nav-workspace .nav-link {
    color: var(--text-tertiary);
}

.page-content-wrapper .nav-workspace .nav-link.active {
    color: #fff !important;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

:root.dark-mode .page-content-wrapper .nav-workspace .nav-link.active {
    color: #93c5fd !important;
    background: rgba(99, 102, 241, 0.2);
}

/* ─── Alert boxes ─── */
.page-content-wrapper .alert-info {
    background: rgba(239,246,255,0.85) !important;
    border-color: rgba(147,197,253,0.5) !important;
    backdrop-filter: blur(8px);
    border-radius: 10px !important;
    color: #1e40af;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .alert-info {
    background: rgba(30, 58, 138, 0.4) !important;
    border-color: rgba(147, 197, 253, 0.3) !important;
    color: #93c5fd;
}

/* ─── Ad slot styling ─── */
.page-content-wrapper [id*="adsterra"],
.page-content-wrapper .ad-slot {
    background: linear-gradient(135deg, rgba(248,250,252,0.9), rgba(239,246,255,0.9)) !important;
    border: 1.5px dashed rgba(99,102,241,0.2) !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

:root.dark-mode .page-content-wrapper [id*="adsterra"],
:root.dark-mode .page-content-wrapper .ad-slot {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.8)) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

    .page-content-wrapper [id*="adsterra"]::before {
        content: 'SPONSORED';
        position: absolute;
        top: 6px;
        right: 10px;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: rgba(99,102,241,0.35);
        pointer-events: none;
        transition: color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper [id*="adsterra"]::before {
        color: rgba(99, 102, 241, 0.5);
    }

/* ─── Breadcrumb links ─── */
.page-content-wrapper a[href] {
    color: #4f46e5;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper a[href] {
    color: #93c5fd;
}

    .page-content-wrapper a[href]:hover {
        color: #4338ca;
        transition: color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper a[href]:hover {
        color: #60a5fa;
    }

/* ─── Section dividers ─── */
.page-content-wrapper hr {
    border: none;
    border-top: 1px solid rgba(99,102,241,0.1);
    margin: 24px 0;
    transition: border-color 0.3s ease;
}

:root.dark-mode .page-content-wrapper hr {
    border-top-color: rgba(99, 102, 241, 0.2);
}

/* ═══════════════════════════════════════
   HEADINGS h3, h4, h5
   ═══════════════════════════════════════ */
.page-content-wrapper h3,
.page-content-wrapper .h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper h3,
:root.dark-mode .page-content-wrapper .h3 {
    color: var(--text-primary);
}

    .page-content-wrapper h3::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 1em;
        background: linear-gradient(180deg, #6366f1, #3b82f6);
        border-radius: 2px;
        flex-shrink: 0;
    }

.page-content-wrapper h4,
.page-content-wrapper .h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper h4,
:root.dark-mode .page-content-wrapper .h4 {
    color: var(--text-secondary);
}

.page-content-wrapper h5,
.page-content-wrapper .h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper h5,
:root.dark-mode .page-content-wrapper .h5 {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   PROSE / BODY TEXT
   ═══════════════════════════════════════ */
.page-content-wrapper p {
    color: #475569;
    line-height: 1.72;
    font-size: 0.9rem;
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper p {
    color: var(--text-secondary);
}

    .page-content-wrapper p strong {
        color: #1e293b;
        font-weight: 700;
        transition: color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper p strong {
        color: var(--text-primary);
    }

/* Inline code / highlighted terms */
.page-content-wrapper code,
.page-content-wrapper .code-token {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(59,130,246,0.08));
    color: #4f46e5;
    border: 1px solid rgba(99,102,241,0.15);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.83em;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

:root.dark-mode .page-content-wrapper code,
:root.dark-mode .page-content-wrapper .code-token {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

/* ═══════════════════════════════════════
   TABLES
   ═══════════════════════════════════════ */
.page-content-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm), var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(226,232,240,0.7);
    margin-bottom: 20px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root.dark-mode .page-content-wrapper table {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: var(--shadow-sm), var(--shadow-md), inset 0 1px 0 rgba(99, 102, 241, 0.1);
}

.page-content-wrapper thead {
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(59,130,246,0.06) 100%);
    transition: background 0.3s ease;
}

:root.dark-mode .page-content-wrapper thead {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(59, 130, 246, 0.1) 100%);
}

    .page-content-wrapper thead th {
        padding: 12px 18px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        color: #4f46e5;
        border-bottom: 1.5px solid rgba(99,102,241,0.15);
        white-space: nowrap;
        transition: color 0.3s ease, border-color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper thead th {
        color: #a5b4fc;
        border-color: rgba(99, 102, 241, 0.25);
    }

.page-content-wrapper tbody tr {
    transition: background 0.12s;
}

    .page-content-wrapper tbody tr:hover {
        background: rgba(99,102,241,0.04);
    }

    :root.dark-mode .page-content-wrapper tbody tr:hover {
        background: rgba(99, 102, 241, 0.1);
    }

.page-content-wrapper tbody td {
    padding: 11px 18px;
    font-size: 0.84rem;
    color: #374151;
    border-bottom: 1px solid rgba(226,232,240,0.6);
    line-height: 1.55;
    vertical-align: top;
    transition: color 0.3s ease, border-color 0.3s ease;
}

:root.dark-mode .page-content-wrapper tbody td {
    color: var(--text-secondary);
    border-color: rgba(71, 85, 105, 0.5);
}

.page-content-wrapper tbody tr:last-child td {
    border-bottom: none;
}

.page-content-wrapper tbody td:first-child {
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper tbody td:first-child {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════
   INFO / FEATURE CARDS  (.card with icon)
   The cards that appear in the bottom half
   of tool pages with shield icons etc.
   ═══════════════════════════════════════ */

/* Icon inside a card heading */
.page-content-wrapper .card .bi,
.page-content-wrapper .card i[class*="bi-"] {
    color: #6366f1;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .card .bi,
:root.dark-mode .page-content-wrapper .card i[class*="bi-"] {
    color: #a5b4fc;
}

/* Card heading that has both icon + text */
.page-content-wrapper .card h3,
.page-content-wrapper .card h4,
.page-content-wrapper .card .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-weight: 700;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .card h3,
:root.dark-mode .page-content-wrapper .card h4,
:root.dark-mode .page-content-wrapper .card .card-title {
    color: var(--text-primary);
}

    /* Remove the gradient bar ::before inside cards — looks odd there */
    .page-content-wrapper .card h3::before {
        display: none;
    }

/* Card icon badge — auto-wrap lone <i> tags in card headings */
.page-content-wrapper .card-header {
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(59,130,246,0.04)) !important;
    border-bottom: 1px solid rgba(99,102,241,0.1) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 14px 20px !important;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.88rem;
    letter-spacing: 0.2px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.08)) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════
   FEATURE HIGHLIGHT SECTIONS
   (the big prose sections below the tool)
   ═══════════════════════════════════════ */

/* Wrap each feature section in a subtle card automatically */
.page-content-wrapper > div > h2 + p,
.page-content-wrapper > div > h2 + div,
.page-content-wrapper .feature-section {
    padding: 20px 24px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(99,102,241,0.06);
    margin-bottom: 16px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root.dark-mode .page-content-wrapper > div > h2 + p,
:root.dark-mode .page-content-wrapper > div > h2 + div,
:root.dark-mode .page-content-wrapper .feature-section {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */
.page-content-wrapper nav[aria-label="breadcrumb"],
.page-content-wrapper .breadcrumb-wrap {
    margin-bottom: 10px;
}

.page-content-wrapper .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px 12px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 20px;
    display: inline-flex;
    margin: 0;
    list-style: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .breadcrumb {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(99, 102, 241, 0.2);
}

.page-content-wrapper .breadcrumb-item {
    font-size: 0.74rem;
    font-weight: 500;
    color: #64748b;
    transition: color 0.3s ease;
}

:root.dark-mode .page-content-wrapper .breadcrumb-item {
    color: var(--text-tertiary);
}

    .page-content-wrapper .breadcrumb-item a {
        color: #6366f1 !important;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper .breadcrumb-item a {
        color: #93c5fd !important;
    }

        .page-content-wrapper .breadcrumb-item a:hover {
            color: #4338ca !important;
        }

        :root.dark-mode .page-content-wrapper .breadcrumb-item a:hover {
            color: #60a5fa !important;
        }

    .page-content-wrapper .breadcrumb-item.active {
        color: #1e293b;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper .breadcrumb-item.active {
        color: var(--text-primary);
    }

    .page-content-wrapper .breadcrumb-item + .breadcrumb-item::before {
        content: '/';
        color: rgba(99,102,241,0.3);
        padding-right: 6px;
        transition: color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(99, 102, 241, 0.4);
    }

/* ═══════════════════════════════════════
   PLAIN SECTION TEXT (outside cards)
   styled as elegant prose blocks
   ═══════════════════════════════════════ */
.page-content-wrapper > .container-fluid > h2,
.page-content-wrapper > div > h2 {
    margin-top: 32px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(99,102,241,0.12);
    transition: border-color 0.3s ease;
}

:root.dark-mode .page-content-wrapper > .container-fluid > h2,
:root.dark-mode .page-content-wrapper > div > h2 {
    border-color: rgba(99, 102, 241, 0.2);
}

    /* Description text directly under h2 */
    .page-content-wrapper > div > h2 ~ p {
        background: rgba(255,255,255,0.62);
        border-left: 3px solid rgba(99,102,241,0.3);
        border-radius: 0 10px 10px 0;
        padding: 12px 16px;
        backdrop-filter: blur(8px);
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper > div > h2 ~ p {
        background: rgba(51, 65, 85, 0.5);
        border-color: rgba(99, 102, 241, 0.3);
    }

/* ═══════════════════════════════════════
   LISTS (ul/ol outside cards)
   ═══════════════════════════════════════ */
.page-content-wrapper ul:not(.nav):not(.breadcrumb):not(.custom-resume-list),
.page-content-wrapper ol {
    padding-left: 0;
    list-style: none;
    margin-bottom: 14px;
}

    .page-content-wrapper ul:not(.nav):not(.breadcrumb):not(.custom-resume-list) li,
    .page-content-wrapper ol li {
        position: relative;
        padding: 5px 0 5px 22px;
        font-size: 0.88rem;
        color: #374151;
        line-height: 1.6;
        transition: color 0.3s ease;
    }

    :root.dark-mode .page-content-wrapper ul:not(.nav):not(.breadcrumb):not(.custom-resume-list) li,
    :root.dark-mode .page-content-wrapper ol li {
        color: var(--text-secondary);
    }

        .page-content-wrapper ul:not(.nav):not(.breadcrumb):not(.custom-resume-list) li::before {
            content: '';
            position: absolute;
            left: 4px;
            top: 13px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6366f1, #3b82f6);
        }

/* ═══════════════════════════════════════
   BADGES / TAGS
   ═══════════════════════════════════════ */
.page-content-wrapper .badge,
.page-content-wrapper .tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.page-content-wrapper .badge-primary,
.page-content-wrapper .bg-primary {
    background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
    border: none !important;
    color: #fff !important;
}

.page-content-wrapper .badge-secondary {
    background: rgba(226, 232, 240, 0.8) !important;
    color: #334155 !important;
    transition: all 0.3s ease;
}

:root.dark-mode .page-content-wrapper .badge-secondary {
    background: rgba(71, 85, 105, 0.6) !important;
    color: var(--text-secondary) !important;
}

.page-content-wrapper .badge-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease;
}

:root.dark-mode .page-content-wrapper .badge-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.page-content-wrapper .badge-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease;
}

:root.dark-mode .page-content-wrapper .badge-info {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

/* ═══════════════════════════════════════
   OUTLINE / SECONDARY BUTTONS
   ═══════════════════════════════════════ */
.page-content-wrapper .btn-outline-primary {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    transition: all 0.18s !important;
}

    .page-content-wrapper .btn-outline-primary:hover {
        background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
        color: #fff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 14px rgba(99,102,241,0.35) !important;
        border-color: transparent !important;
    }

:root.dark-mode .page-content-wrapper .btn-outline-primary {
    border-color: #a5b4fc !important;
    color: #a5b4fc !important;
}

    :root.dark-mode .page-content-wrapper .btn-outline-primary:hover {
        background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
        color: #fff !important;
        border-color: transparent !important;
        box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45) !important;
    }

.page-content-wrapper .btn-outline-secondary {
    border-color: #e2e8f0 !important;
    color: #64748b !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    background: rgba(255,255,255,0.7) !important;
    transition: all 0.18s !important;
}

    .page-content-wrapper .btn-outline-secondary:hover {
        border-color: #cbd5e1 !important;
        background: rgba(255,255,255,0.95) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
    }

:root.dark-mode .page-content-wrapper .btn-outline-secondary {
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: var(--text-secondary) !important;
    background: rgba(51, 65, 85, 0.5) !important;
}

    :root.dark-mode .page-content-wrapper .btn-outline-secondary:hover {
        border-color: rgba(99, 102, 241, 0.5) !important;
        background: rgba(51, 65, 85, 0.8) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    }

.page-content-wrapper .btn-outline-danger {
    border-radius: 9px !important;
    font-weight: 600 !important;
    transition: all 0.18s !important;
}

:root.dark-mode .page-content-wrapper .btn-outline-danger {
    color: #fca5a5 !important;
    border-color: #fca5a5 !important;
}

    :root.dark-mode .page-content-wrapper .btn-outline-danger:hover {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        color: #fff !important;
        border-color: transparent !important;
    }

.page-content-wrapper .btn-lg {
    border-radius: 12px !important;
    font-size: 0.95rem !important;
}

/* ═══════════════════════════════════════
   TOOL PAGE HEADER BLOCK
   (h1 + description at the top of each tool)
   ═══════════════════════════════════════ */
.page-content-wrapper .tool-header,
.page-content-wrapper > .container-fluid > .mb-4:first-child,
.page-content-wrapper > .workspace-wrapper > .header-meta-area {
    padding: 20px 24px 20px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 6px 24px rgba(99,102,241,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
    margin-bottom: 20px !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root.dark-mode .page-content-wrapper .tool-header,
:root.dark-mode .page-content-wrapper > .container-fluid > .mb-4:first-child,
:root.dark-mode .page-content-wrapper > .workspace-wrapper > .header-meta-area {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 6px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(99, 102, 241, 0.1);
}

/* ═══════════════════════════════════════
   COPY/SUCCESS STATES
   ═══════════════════════════════════════ */
.page-content-wrapper .btn-outline-success {
    border-color: #10b981 !important;
    color: #059669 !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    transition: all 0.18s !important;
}

    .page-content-wrapper .btn-outline-success:hover {
        background: linear-gradient(135deg, #059669, #10b981) !important;
        color: #fff !important;
        border-color: transparent !important;
        transform: translateY(-1px) !important;
    }

:root.dark-mode .page-content-wrapper .btn-outline-success {
    border-color: #6ee7b7 !important;
    color: #6ee7b7 !important;
}

    :root.dark-mode .page-content-wrapper .btn-outline-success:hover {
        background: linear-gradient(135deg, #059669, #10b981) !important;
        color: #fff !important;
        border-color: transparent !important;
        transform: translateY(-1px) !important;
    }

/* ═══════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    }

        .app-sidebar .nav-scrollable {
            max-height: 55vh;
        }

    .ambient-bg {
        left: 0;
        top: 0;
    }

    .topbar-center {
        display: none;
    }

    .topbar-stat-chip {
        display: none;
    }

    .topbar-left {
        min-width: auto;
    }

    .topbar-right {
        min-width: auto;
    }

    .page-content-wrapper {
        padding: 16px 14px 36px;
    }

    .trust-sep--mobile-hide,
    .trust-item--mobile-hide {
        display: none;
    }

    .footer-tagline,
    .footer-badges {
        display: none;
    }

    .footer-inner {
        justify-content: space-between;
    }
}

/* ═══════════════════════════════════════
   BLAZOR ERROR UI
   ═══════════════════════════════════════ */
#blazor-error-ui {
    background: #fef2f2;
    border-top: 2px solid #ef4444;
    color: #991b1b;
    display: none;
    font-size: 0.82rem;
    padding: 10px 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        font-weight: 700;
        float: right;
        color: #991b1b;
    }
