/* NAVBAR — fixed at top, no layout interference */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 64px;
    background: var(--matte-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    z-index: 999; /* Always above content */
}

/* Make space so content does not hide under navbar */
body {
    padding-top: 64px;
}

/* LEFT GROUP */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGO */
.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

/* TITLE */
.nav-title {
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
}

/* RIGHT NAV LINKS */
.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-right a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;

    transition: background 0.2s ease, color 0.2s ease;
}

.nav-right a:hover {
    background: var(--hover);
}

/* Highlighted Docs button */
.docs-btn {
    background: var(--soft-blue);
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.docs-btn:hover {
    background: var(--hover);
}

/* BACK BUTTON */
.back-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text);
    font-size: 20px;
    border-radius: 10px;

    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}


/* Perfect circle + centered vertically */
.user-avatar {
    display: flex;
    align-items: center;     /* vertical centering */
    justify-content: center; /* perfect centering */
    width: 46px;             /* increased size */
    height: 46px;            /* same as width → perfect circle */
    background: #0b2a52;     /* dark blue circle */
    border-radius: 50% !important;
    margin-left: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

/* Icon tint + adjusted size */
.user-avatar img {
    width: 26px;             /* increased icon size */
    height: 26px;
    object-fit: contain;

    /* Blue tint */
    filter: invert(33%) sepia(91%) saturate(7481%) 
            hue-rotate(202deg) brightness(95%) contrast(98%);
}
/* --- DARK THEME DROPDOWN --- */
.avatar-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: #0d1117;              /* dark background */
    padding: 8px 0;
    width: 170px;
    border-radius: 10px;
    border: 1px solid #1f2937;        /* dark subtle border */
    box-shadow: 0 4px 25px rgba(0,0,0,0.45);
    display: none;
    z-index: 2000;
}

/* Dropdown items */
.avatar-dropdown a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #d1d5db;                   /* light gray text */
    font-size: 14px;
    transition: 0.2s;
}

/* On hover */
.avatar-dropdown a:hover {
    background: #1e293b;              /* dark slate */
    color: #60a5fa;                   /* soft blue */
}


.hidden{
    display: none;
}
.user-avatar.logged-out {
    background: #2a2a2a !important; /* neutral grey */
}

.user-avatar.logged-out img {
    /* Pure grey look — NO yellow tint */
    filter: grayscale(100%) brightness(80%) contrast(90%) !important;
}



