/* Style for the currently active navbar link */
.navbar-nav .nav-item .nav-link.active {
    color: #22C55E; /* A bright color to stand out */
    font-weight: 600; /* Make the text bolder */
    border-bottom: 2px solid #ffffff; /* Add an underline effect */
}

/* Optional: Add a subtle transition for a smooth hover effect on all links */
.navbar-nav .nav-item .nav-link {
    transition: color 0.3s ease-in-out, transform 0.2s ease;
}

/* Optional: A nice hover effect for non-active links */
.navbar-nav .nav-item .nav-link:not(.active):hover {
    color: #3ae926; /* Slightly lighter color on hover */
    transform: scale(1.05); /* Slightly enlarge the link on hover */
}
/* Replace the search-filter styles with these updated ones: */

/* Search and Filter Section */
.search-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.search-filter {
    position: relative;
    flex: 1;
    max-width: 450px; /* Increased to accommodate button */
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #6b7280;
    font-size: 14px;
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 12px 60px 12px 40px; /* Adjusted right padding for button */
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    background: transparent;
    color: #374151;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: #6b7280;
    opacity: 1;
    font-style: normal;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
}

.search-input:focus::placeholder {
    color: #9ca3af;
}

.search-button {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 48px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 3;
}

.search-button:hover {
    background: #2563eb;
    transform: scale(1.02);
}

.search-button:active {
    transform: scale(0.98);
}

/* Rest of your existing CSS remains the same... */

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        background: #0F172A;
        padding: 12px 16px;
        border-top: 1px solid #374151;
        margin-top: 10px;
        border-radius: 8px;
    }

    .main-navbar .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #374151;
        color: #ffffff;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .main-navbar .navbar-nav .nav-link:hover {
        color: #3ae926;
    }

    .main-navbar .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .main-navbar .btn.btn-dashboard {
        width: 100%;
        background-color: #ffc107;
        color: #212529;
        font-weight: bold;
        border-radius: 8px;
        padding: 12px 16px;
        text-decoration: none;
        margin-top: 10px;
        text-align: center;
    }

    .main-navbar .btn.btn-dashboard:hover {
        background-color: #e0a800;
    }

    .profile-popup {
        position: static;
        width: 100%;
        transform: none !important;
        box-shadow: none;
        border: 1px solid #374151;
        margin-top: 8px;
        background: #1f2937;
    }

    /* Hamburger button styling */
    .main-navbar .navbar-toggler {
        border-color: #374151;
        padding: 4px 8px;
    }

    .main-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    }

    .main-navbar .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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}