/* navmenu.css — global sidebar + topbar overrides
   Layout-critical rules live here so they load before scoped CSS. */

/* All sidebar/topbar positioning rules are in app.css via:
   .tc-sidebar, .tc-topbar, .tc-main
   This file handles component-level overrides only. */

/* ── Sign-in button in topbar ───────────────────────────────────── */
.tc-nav-signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 0.38rem 0.85rem;
    white-space: nowrap;
    text-decoration: none;
}

/* ── Dropdown (user) — global fallback ──────────────────────────── */
.tc-user-dropdown {
    position: relative;
    display: inline-block;
}

.tc-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

.tc-user-display-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

/* Dropdown content */
.tc-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--gray-100);
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    z-index: 9000;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    padding: 4px 0;
    animation: dd-in 100ms ease;
}

.tc-user-dropdown:hover .tc-dropdown-content { display: block; }

@keyframes dd-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tc-dropdown-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 4px;
}

.tc-dropdown-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-800);
}

.tc-dropdown-subtext {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.tc-dropdown-divider {
    border: 0;
    border-top: 1px solid var(--gray-300);
    margin: 4px 0;
}

.tc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.tc-dropdown-item:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    text-decoration: none;
}

.tc-dropdown-item-danger { color: var(--danger); }

.tc-dropdown-item-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
    text-decoration: none;
}

/* ── Spacer util ────────────────────────────────────────────────── */
.tc-spacer { flex: 1; }
