.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0056b3 !important;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    width: 40px;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    color: #333 !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #0056b3 !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #0056b3 !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: #0056b3;
}

.nav-item:last-child .nav-link {
    background-color: #0056b3;
    color: white !important;
    border-radius: 20px;
    padding: 8px 20px !important;
    margin-left: 10px;
    border: 2px solid #0056b3;
}

.nav-item:last-child .nav-link:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-2px);
}

/* New styles for login active state */
.nav-item:last-child .nav-link.active {
    background-color: transparent;
    color: #0056b3 !important;
    border: 2px solid #0056b3;
}

.nav-item:last-child .nav-link.active:hover {
    background-color: rgba(0, 86, 179, 0.1);
    color: #0056b3 !important;
}

/* Remove the underline for login active state */
.nav-item:last-child .nav-link.active::after {
    display: none;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        text-align: center;
    }

    .nav-link.active::after {
        width: 100%;
        bottom: -5px;
    }

    .nav-item:last-child .nav-link {
        margin: 10px auto;
        max-width: 200px;
        text-align: center;
    }

    .navbar-nav {
        align-items: center;
    }
}