/* ═══════════════════════════════════════════════════════════
   Shared top navigation header (wo-*)
   Used by both _ReceptionLayout.cshtml and the public layouts.
   Supplies the 52px sticky glass bar with logo, mode tabs,
   language dropdown, theme toggle, and user/login buttons.
   Dark mode is default; body.wo-light flips to the light variant.
   ═══════════════════════════════════════════════════════════ */

:root {
    --wo-primary: #6366f1;
    --wo-primary-hover: #4f46e5;
    --wo-bg: #0f172a;
    --wo-bg2: #1e293b;
    --wo-bg3: #334155;
    --wo-bg-deep: #0b1120;
    --wo-text: #e2e8f0;
    --wo-text-muted: #64748b;
    --wo-text-dim: #94a3b8;
    --wo-border: #334155;
    --wo-red: #ef4444;
}

/* ─── Header (translucent glass) ─── */
.wo-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 16px;
    background: rgba(11, 17, 32, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.30);
    height: 52px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.wo-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--wo-primary);
    white-space: nowrap;
    text-decoration: none;
}
.wo-logo:hover { color: var(--wo-primary); }
.wo-logo span {
    color: var(--wo-text-dim);
    font-weight: 400;
    font-size: 13px;
    margin-inline-start: 6px;
}

/* Logged-in user's full name (same value as the profile), shown right after the
   role label. Rendered as a subtle indigo pill with a person icon. */
.wo-user-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--wo-text);
    white-space: nowrap;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.wo-user-name i { font-size: 14px; color: var(--wo-primary); }
@media (max-width: 820px) { .wo-user-name { display: none; } }

.wo-mode-tabs {
    display: flex;
    gap: 3px;
    margin-inline-start: 16px;
    background: rgba(30, 41, 59, 0.55);
    border-radius: 8px;
    padding: 3px;
}
.wo-mode-tab {
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--wo-text-dim);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wo-mode-tab:hover { color: #e2e8f0; }
.wo-mode-tab.active {
    background: var(--wo-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.wo-mode-tab .bi { font-size: 14px; }

/* "More" dropdown in the mode-tab strip — dark theme default, light overrides. */
.wo-more-menu {
    background: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 10px;
    padding: 6px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.wo-more-menu .dropdown-item {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wo-more-menu .dropdown-item .bi { font-size: 14px; color: #a5b4fc; }
.wo-more-menu .dropdown-item:hover { background: rgba(99, 102, 241, 0.18); color: #f1f5f9; }
.wo-more-menu .dropdown-item.active { background: var(--wo-primary); color: #fff; }
.wo-more-menu .dropdown-item.active .bi { color: #fff; }
body.wo-light .wo-more-menu { background: #ffffff; border-color: #c7d2fe; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15); }
body.wo-light .wo-more-menu .dropdown-item { color: #334155; }
body.wo-light .wo-more-menu .dropdown-item .bi { color: #4f46e5; }
body.wo-light .wo-more-menu .dropdown-item:hover { background: #eef2ff; color: #0f172a; }
body.wo-light .wo-more-menu .dropdown-item.active { background: var(--wo-primary); color: #fff; }
.wo-mode-tab .badge {
    display: inline-block;
    background: var(--wo-red);
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    margin-inline-start: 5px;
}

.wo-spacer { flex: 1; }

.wo-hdr-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.30);
    background: rgba(30, 41, 59, 0.55);
    color: var(--wo-text-dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.wo-hdr-btn:hover {
    border-color: var(--wo-primary);
    color: #fff;
    background: rgba(99, 102, 241, 0.18);
}
.wo-hdr-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: #6366f1;
    color: #fff;
}
.wo-hdr-btn.primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
}

/* Lang menu */
.wo-lang-wrap { position: relative; }
.wo-lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    z-index: 200;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    min-width: 140px;
    padding: 6px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    direction: ltr;
}
[dir="rtl"] .wo-lang-menu { right: auto; left: 0; }
/* Header itself is locked to dir="ltr" to keep controls on the right in both
   directions. The rule above still matches because <html dir="rtl"> is an
   ancestor, so re-pin menus to the right edge when inside the LTR header. */
.wo-header[dir="ltr"] .wo-lang-menu { right: 0; left: auto; }
.wo-lang-menu.show { display: block; }
.wo-lang-menu a {
    display: block;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--wo-text-dim);
    text-decoration: none;
    transition: all 0.15s;
}
.wo-lang-menu a:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

/* User menu */
.wo-user-wrap { position: relative; }
.wo-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    z-index: 200;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    min-width: 200px;
    padding: 6px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
[dir="rtl"] .wo-user-menu { right: auto; left: 0; }
.wo-header[dir="ltr"] .wo-user-menu { right: 0; left: auto; }
/* Header is dir="ltr" so controls stay on the right in both page directions,
   but the profile menu's own items should read RTL when the page is RTL. */
[dir="rtl"] .wo-header .wo-user-menu { direction: rtl; text-align: right; }
.wo-user-menu.show { display: block; }
.wo-user-menu-name {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wo-text);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    margin-bottom: 4px;
}
.wo-user-menu-divider { border-top: 1px solid rgba(99, 102, 241, 0.25); margin: 4px 0; }
.wo-user-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--wo-text-dim);
    text-decoration: none;
    transition: all 0.15s;
}
.wo-user-menu a:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}
.wo-logout-link:hover { color: var(--wo-red) !important; }

/* Navbar keeps its dark-mode look in both themes — only the .wo-view content
   re-colors when body.wo-light is set. (Old light-mode header overrides
   removed per product decision.) */
