/* Enhanced navbar styling */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 0 0.15rem;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: #007bff;
}

.nav-link.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.08);
}

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

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

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.08);
    color: #007bff;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    border-radius: 6px;
    padding: 0.375rem 1rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* Better solution for fixed navbar spacing */
body {
    padding-top: 76px; /* This replaces the separate div for spacing */
}

@media (max-width: 992px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .nav-item {
        margin-bottom: 0.25rem;
    }
}

/* Custom navbar hover styles */
.navbar .nav-item .nav-link:hover,
.navbar .dropdown-item:hover {
    color: #212529 !important;
    background-color: rgba(33, 37, 41, 0.1);
    transition: all 0.2s ease-in-out;
}

.navbar .dropdown-item:active,
.navbar .dropdown-item:focus {
    background-color: #212529;
    color: #fff !important;
}

/* Active state */
.navbar .nav-link.active {
    color: #212529 !important;
    font-weight: 500;
}

/* Darker color for hovering over dropdown menu items */
.dropdown-menu .dropdown-item:hover {
    background-color: rgba(33, 37, 41, 0.1);
    color: #212529 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25);
}