/* Brandor Primary Navigation Header Styles */
.h-primary-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0c121e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.h-primary-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1.25rem;
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Nav Lead (Left Workspace Switcher & Layout Toggle) */
.h-nav-lead {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.ws-switcher {
    position: relative;
}

.ws-trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px 10px;
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.ws-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.ws-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.72rem;
    color: #0f172a;
    flex-shrink: 0;
}

.ws-trigger-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ws-org-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-ws-name {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
}

.ws-chevron {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    margin-left: 2px;
}

.h-layout-toggle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.h-layout-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.h-layout-toggle-icon {
    width: 18px;
    height: 18px;
}

/* Main Navigation Middle Links */
.h-main-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    justify-content: center;
    padding: 0 0.5rem;
}

.h-main-nav::-webkit-scrollbar {
    display: none;
}

.h-nav-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.7rem;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.h-nav-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.h-nav-link.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    font-weight: 700;
}

.h-nav-link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Right Nav Actions */
.h-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.h-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.h-search:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}

.h-search-icon {
    width: 15px;
    height: 15px;
}

.h-search-placeholder {
    font-size: 0.78rem;
    color: #64748b;
}

.h-search-kbd {
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1px 5px;
    color: #cbd5e1;
    font-family: monospace;
}

.lang-switcher .lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-switcher .lang-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.h-notif-dropdown {
    position: relative;
}

.h-notif-trigger {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.h-notif-trigger:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

.h-notif-trigger .icon-sm {
    width: 17px;
    height: 17px;
}

.h-notif-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.header-finance-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.header-finance-chip:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.header-plan-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-balance {
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
}

.header-balance-symbol {
    color: #34d399;
    margin-right: 2px;
}

.profile-dropdown {
    position: relative;
}

.profile-dropdown-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.h-mobile-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.h-mobile-toggle .icon-sm {
    width: 18px;
    height: 18px;
}

/* Responsive Rules */
@media (max-width: 1200px) {
    .h-search {
        display: none;
    }
}

@media (max-width: 1024px) {
    .h-main-nav {
        display: none;
    }
    .h-lang-desktop {
        display: none;
    }
    .header-finance-chip {
        display: none;
    }
    .h-mobile-toggle {
        display: flex;
    }
}
