.custom-navbar {
    background-color: rgba(7, 17, 31, 0.85);
    border-bottom: 2px solid rgba(0, 174, 239, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1050 !important;
}

.custom-navbar .navbar-brand {
    color: #00AEEF;
    font-weight: bold;
    font-size: 1.3rem;
    transition: opacity 0.2s ease;
}

.custom-navbar .navbar-brand:hover {
    opacity: 0.9;
    color: #00AEEF;
}

.custom-navbar .nav-link {
    color: #D9E2EC;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color: #43D6FF;
    text-decoration: none;
}

.custom-navbar .nav-cart-link {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-navbar .nav-cart-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: #43D6FF;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.custom-navbar .nav-cart-link:hover .nav-cart-icon,
.custom-navbar .nav-cart-link:focus .nav-cart-icon {
    stroke: #EAF8FF;
}

/* Dropdown Menu styling for dark mode */
.custom-navbar .dropdown-menu {
    background-color: #07111F;
    border: 1px solid rgba(0, 174, 239, 0.22);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000 !important;
}

.custom-navbar .dropdown-menu a.dropdown-item {
    color: #D9E2EC;
    transition: all 0.2s ease;
}

.custom-navbar .dropdown-menu a.dropdown-item:hover {
    background-color: #0B1B2E;
    color: #43D6FF;
}

/* Vertical Separator */
.navbar-nav .nav-item-separator {
    height: 20px;
    width: 1px;
    background-color: rgba(0, 174, 239, 0.3);
    margin: auto 10px;
    display: flex;
    align-items: center;
}

.custom-navbar .navbar-toggler {
    border: 1px solid rgba(0, 174, 239, 0.35);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    box-shadow: none;
}

.custom-navbar .navbar-toggler:focus {
    border-color: #00AEEF;
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.18);
}

.custom-navbar .navbar-toggler-icon {
    background-image: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
}

.custom-navbar .navbar-toggler-icon::before,
.custom-navbar .navbar-toggler-icon::after,
.custom-navbar .navbar-toggler-icon {
    border-top: 2px solid #43D6FF;
}

.custom-navbar .navbar-toggler-icon::before,
.custom-navbar .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
}

.custom-navbar .navbar-toggler-icon::before {
    top: 3px;
}

.custom-navbar .navbar-toggler-icon::after {
    bottom: 3px;
}

@media (max-width: 767.98px) {
    .custom-navbar .navbar-collapse {
        margin-top: 0.85rem;
        padding: 0.75rem;
        border: 1px solid rgba(0, 174, 239, 0.18);
        border-radius: 12px;
        background-color: rgba(5, 11, 20, 0.98);
    }

    .custom-navbar .navbar-nav {
        gap: 0.25rem;
    }

    .custom-navbar .nav-link {
        padding: 0.75rem 0.9rem;
        border-radius: 8px;
    }

    .custom-navbar .nav-link:hover,
    .custom-navbar .nav-link:focus {
        background-color: rgba(0, 174, 239, 0.08);
    }

    .custom-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin: 0.25rem 0 0.5rem;
        width: 100%;
        box-shadow: none;
    }

    .custom-navbar .dropdown-menu .dropdown-item {
        white-space: normal;
        padding: 0.7rem 0.9rem;
    }

    .navbar-nav .nav-item-separator {
        display: none;
    }
}
