
/* --- Redesigned Navigation (Task 650) --- */

.topbar-redesign {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(15, 23, 42, 0.85); /* Dark glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px; /* Fixed height for consistency */
}

/* Brand */
.brand-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
.brand-wrapper:hover { opacity: 0.8; }
.brand-logo {
    height: 32px;
    width: auto;
}

/* Central Dock Navigation */
.nav-dock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 99px; /* Pill shape container */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-dock__item {
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dock__item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-dock__item.active {
    background: var(--drive); /* Use the new gradient brand color */
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Right Side Actions */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* New Project Button - Glass Accent */
.button--glass-accent {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1); /* Subtle blue tint */
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8; /* Sky 400 */
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.button--glass-accent:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
    color: white;
    border-color: rgba(56, 189, 248, 0.4);
}

/* Vertical Divider */
.divider-vertical {
    width: 1px;
    height: 24px;
    background: rgba(148, 163, 184, 0.2);
}

/* Secondary Admin Nav */
.nav-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-secondary .nav-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-secondary .nav-link:hover {
    color: var(--text-primary);
}

.nav-secondary .nav-link.active {
    color: var(--accent); /* Highlight active admin page */
    font-weight: 600;
}
.nav-secondary .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mist), var(--shade));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

.logout-icon {
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 4px;
    border-radius: 6px;
}

.logout-icon:hover {
    color: var(--error, #ef4444);
    background: rgba(239, 68, 68, 0.1);
}
