/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 24px;

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    background: var(--bg);

    backdrop-filter: blur(10px);

    z-index: 100;
}

/* Brand (Atlas Toolkit) */
.nav-brand {
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    letter-spacing: -0.5px;
}

/* Right side container */
.nav-right {
    display: flex;
    gap: 18px;
    align-items: center;
}

/* =====================================================
   CLICK DROPDOWN (APP STYLE)
===================================================== */

.dropdown {
    position: relative;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}

/* button */
.dropdown-title {
    display: flex;
    align-items: center;
    gap: 4px;

    user-select: none;
}

/* menu hidden by default */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;

    margin-top: 8px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 8px;

    min-width: 180px;

    box-shadow: var(--shadow);

    z-index: 999;

    /* hidden */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    transition: 
    opacity 0.18s ease,
    transform 0.18s ease;
}

/* ACTIVE STATE (JS controls this) */
.dropdown.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* items */
.dropdown-item {
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    color: var(--text);
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: var(--surface-2);
}

/* =====================================================
   ACTIVE NAV STATE
===================================================== */

.nav-active {
    color: var(--text);
    font-weight: 600;
}

/* subtle underline indicator */
/* =====================================================
   ACTIVE NAV (CLEAN — NO LAYOUT SHIFT)
===================================================== */

.nav-active {
    color: var(--text);
    font-weight: 600;
    position: relative;
}

/* thin underline that DOES NOT affect layout */
.nav-active::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 100%;
    height: 2px;

    background: var(--accent);
    border-radius: 2px;
}