/* Modern & Balanced Header Design */
.navbar {
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: none !important;
}

/* Logo & Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    width: 55px !important;
    height: 55px !important;
    border-radius: 12px;
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-brand span {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Navigation Menu */
.navbar-nav {
    width: auto !important;
    justify-content: center !important;
}

.navbar-nav .nav-link {
    font-size: 0.95rem !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.6rem 1.1rem !important;
    margin: 0 0.3rem !important;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    border-radius: 7px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s;
}

.navbar-nav .dropdown-item:hover {
    background-color: #2a5298;
    color: #ffffff !important;
}

/* Auth Buttons */
.auth-buttons {
    margin-left: auto !important;
    display: flex;
    gap: 0.7rem;
}

.auth-buttons .btn {
    font-weight: 500 !important;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem !important;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid !important;
}

.auth-buttons .btn-outline-primary {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background-color: transparent;
}

.auth-buttons .btn-outline-primary:hover {
    background-color: #ffffff !important;
    color: #2a5298 !important;
}

.auth-buttons .btn-outline-danger {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Mobile Menu Button */
.filter {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.filter svg {
    height: 18px;
    width: 18px;
    fill: #ffffff;
}

.filter:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Mobile View */
@media (max-width: 991px) {
    .navbar {
        padding: 1rem 1.5rem !important;
    }

    .navbar-brand span {
        font-size: 1.15rem;
    }

    .navbar-brand img {
        width: 48px !important;
        height: 48px !important;
    }

    .navbar-collapse {
        margin-top: 1rem;
        background-color: #ffffff;
        border-radius: 10px;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }

    .navbar-nav {
        width: 100% !important;
    }

    .navbar-nav .nav-link {
        color: #333 !important;
        padding: 0.75rem 1rem !important;
        margin: 0.2rem 0 !important;
    }

    .navbar-nav .nav-link:hover {
        background-color: #f0f4ff !important;
        color: #2a5298 !important;
    }

    .navbar-nav .dropdown-menu {
        background-color: #f8f9fa;
        box-shadow: none;
        margin-left: 1rem;
    }

    .navbar-nav .dropdown-item {
        font-size: 0.85rem;
    }

    .auth-buttons {
        margin-left: 0 !important;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e0e0e0;
        width: 100%;
        flex-direction: column;
        gap: 0.6rem;
    }

    .auth-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem !important;
    }

    .auth-buttons .btn-outline-primary {
        border-color: #2a5298 !important;
        color: #2a5298 !important;
    }

    .auth-buttons .btn-outline-primary:hover {
        background-color: #2a5298 !important;
        color: #ffffff !important;
    }

    .auth-buttons .btn-outline-danger {
        border-color: #dc3545 !important;
        color: #dc3545 !important;
        background-color: transparent;
    }

    .auth-buttons .btn-outline-danger:hover {
        background-color: #dc3545 !important;
        color: #ffffff !important;
    }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 1rem 2rem !important;
    }
}

/* Desktop View */
@media (min-width: 992px) {
    .filter {
        display: none;
    }

    .navbar-nav {
        flex-grow: 1;
    }
}