/* Modern Navbar Styles */
.navbar-dark {
    background-color: #1e1f21;
    border-bottom: 1px solid #282a2d;
}

.navbar-dark .navbar-nav .nav-link {
    color: #b0b3b8;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #e4e6eb;
}

.navbar-nav .dropdown {
    position: static;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    margin-top: 0.5rem;
    z-index: 1050;
    min-width: 10rem;
    border: 1px solid #3a3b3d;
    background-color: #282a2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-bottom: 0.5rem solid #282a2d;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    color: #b0b3b8;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: #3a3b3d;
    color: #e4e6eb;
}

.navbar-dark .navbar-nav .nav-item .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

.navbar-dark .navbar-nav .nav-item .badge.bg-success {
    background-color: #4caf50;
}

.navbar-dark .navbar-nav .nav-item .badge.bg-danger {
    background-color: #f44336;
}

.navbar-dark .navbar-nav .dropdown-toggle::after {
    display: none;
}

.navbar-dark .navbar-nav .nav-item img.rounded-circle {
    border: 2px solid #3a3b3d;
    transition: border-color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-item img.rounded-circle:hover {
    border-color: #e4e6eb;
}

.btn-outline-light {
    border-color: #3a3b3d;
    color: #b0b3b8;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #3a3b3d;
    color: #e4e6eb;
}

/* Ensure dropdown items are visible */
.navbar-dark .navbar-nav .dropdown-menu .dropdown-item {
    white-space: nowrap;
}

/* Improve visibility of active dropdown items */
.navbar-dark .navbar-nav .dropdown-menu .dropdown-item.active,
.navbar-dark .navbar-nav .dropdown-menu .dropdown-item:active {
    background-color: #3a3b3d;
    color: #e4e6eb;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-dark .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-dark .navbar-nav .nav-item {
        padding-right: 0.5rem;
    }

    .navbar-nav .dropdown-menu {
        position: fixed;
        top: auto;
        right: 1rem;
        left: auto;
        width: auto;
    }
}