/* Modern Navbar Styles */
.modern-navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
}

.modern-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    transform: scale(1.05);
    color: #64b5f6 !important;
}

.brand-highlight {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.modern-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
    position: relative;
}

.modern-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    transform: translateY(-1px);
}

.modern-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #64b5f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-link:hover::after {
    width: 80%;
}

.team-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.rank-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: #333;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modern-dropdown {
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999 !important;
    position: relative;
}

.modern-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.modern-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.analysis-link {
    background: linear-gradient(45deg, #4caf50, #45a049);
}

.chase-link {
    background: linear-gradient(45deg, #ff9800, #f57c00);
}

.admin-link {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.user-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Fix dropdown z-index issues */
.navbar .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
}

.navbar .dropdown {
    z-index: 9998 !important;
    position: relative;
}

/* Ensure dropdowns appear over all content */
.dropdown-menu.show {
    z-index: 9999 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Navbar toggler (hamburger menu) styling */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 0.25rem 0.5rem !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Force white text for all navbar elements */
.navbar * {
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-brand {
    color: white !important;
}

.navbar-text {
    color: white !important;
}

.login-btn {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    border-radius: 20px;
    padding: 0.5rem 1.2rem !important;
}

.modern-toggler {
    border: none;
    padding: 0.4rem;
}

.modern-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(100, 181, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .team-badge {
        margin-top: 1rem;
    }
    
    .modern-link {
        margin: 0.2rem 0;
    }
}