.navbar-custom {
    background-color: #000000;
    padding: 0.75rem 1rem;
}

.navbar-custom .navbar-brand .brand-icon {
    background-color: rgb(0, 0, 0);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: right;
    justify-content: right;
}

.navbar-custom .brand-text {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: #fff;
}

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

.navbar-custom .nav-link:hover:after {
    width: 50%;
}

.navbar-custom .navbar-toggler {
    border-color: rgb(255, 255, 255);
}

.navbar-custom .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(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.user-dropdown {
    display: flex;
    align-items: center;
}

.user-avatar {
    background-color: white;
    color: #3f37c9;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #495057;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color:#3f37c9;
    color: #3f37c9;
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-color: #e9ecef;
}

/* Bootstrap 5 compatibility classes */
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.dropdown-menu-end { right: 0; left: auto !important; }