/* 
 * Consolidated Navbar Styling
 * This file combines all navbar overrides in one place
 */

/* 
  Main rule for the navbar background. Using the ID provides high specificity 
  without needing dozens of class combinations. This ensures a consistent appearance.
*/
#SpiritBoxNavbar {
    background: rgba(76, 29, 149, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 4px 15px rgba(30, 20, 60, 0.5);
}

/*
  This rule makes all child elements of the navbar transparent.
  This is crucial for the backdrop-filter (blur) effect to work correctly, 
  as it prevents child elements from having their own backgrounds that would obscure the blur.
*/
#SpiritBoxNavbar * {
    background-image: none !important;
    background-color: transparent !important;
}

/* Target navbar-collapse */
.navbar-collapse {
    background-color: transparent !important;
}

/* Fixed position navbar for sticky header */
.fixed-top.chat-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--chat-bg);
    border-bottom: 1px solid var(--border-color);
}

/* Enhance navbar items — compact, no-wrap */
.navbar-dark .navbar-nav {
    flex-wrap: nowrap;
    gap: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.2s ease;
    white-space: nowrap;
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.navbar-dark .navbar-nav .nav-link i {
    font-size: 0.9rem;
}

/* Prevent logo from shrinking */
#SpiritBoxNavbar .navbar-brand {
    flex-shrink: 0;
}

