/* Dark Navbar */
.navbar.navbar-expand-lg {
    background-color: #003366;
    padding: 3px 20px;
    margin: 0;
    width: 100vw;
    box-sizing: border-box;
    border-radius: 0px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    margin-bottom: 15px;
    transition: top 0.3s ease;
}

.navbar.hidden {
    top: -100px;
}

.navbar.navbar-expand-lg .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar.navbar-expand-lg .nav-item .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    font-size: 20px;
    margin-left: 10px;
    text-align: right;
}

.navbar .nav-item .nav-link:hover {
    background-color: #5e68c1;
}

/* Light Navbar */
.navbar.navbar-light {
    background-color: #e0e3f1;
    padding: 20px 5px 5px;
    margin: 0;
    width: 100vw;
    box-sizing: border-box;
    border-radius: 0px;
    position: fixed;
    left: 0;
    top: 40px;
    z-index: 999;
    margin-bottom: 10px;
    transition: top 0.3s ease;
}

.navbar.show-light {
    top: 0;
}

.navbar.navbar-light .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.navbar.navbar-light .nav-item .nav-link {
    color: black;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.4em;
    margin-left: 5px;
    text-align: right;
    white-space: nowrap;
}

.navbar.navbar-light .nav-item:first-child .nav-link {
    margin-left: 0px;
}

.navbar .navbar-brand .text-black {
    color: #000000;
    font-size: 25px;
    text-decoration: none;
    font-weight: 400;
    margin-left: 10px;
}

.navbar .nav-item .nav-link:hover {
    background-color: #d1d8e2;
}

.navbar .navbar-brand img {
    margin-top: -3px;  /* Adjust as needed */
    margin-bottom: -15px;  /* Adjust as needed */
}


.promotional-message a {
    color: white;
    text-decoration: none;
    margin-left: 1px;
}

.btn-get-started {
    background-color: #707eef;
    color: #fff;
    border: 2px solid #707eef;
    white-space: nowrap;
    margin-left: 10px;
}

.btn-get-started:hover {
    background-color: #5c6adc;
    border-color: #5c6adc;
}

.btn-login {
    background-color: rgb(244, 246, 249);
    color: #000;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.btn-login:hover {
    background-color: #e0e3e7;
    border-color: #bbb;
}

/* For Mobile and Small Screens */
@media (max-width: 767px) {
    .btn-auth {
        font-size: 16px;
        padding: 8px 16px;
    }

    .navbar.navbar-expand-lg:not(.navbar-light) {
        display: none !important;
    }
}

/* Adjustments for small screens */
@media (max-width: 768px) {
    .navbar.navbar-expand-lg,
    .navbar.navbar-light {
        padding: 30px 30px;
        margin-top: 0;
    }

    .navbar.navbar-light {
        top: 0px !important;
        margin-top: 0px !important;
    }
}

/* Show/Hide Navbar on Scroll */
@keyframes showNavbar {
    0% {
        top: -100px;
    }
    100% {
        top: 0;
    }
}

.navbar.navbar-light.show-light {
    animation: showNavbar 0.3s ease-out forwards;
}

.navbar.navbar-expand-lg {
    animation: slideDown 0.3s ease-out;
}

/* Mobile/Tablet view Navbar adjustments */
@media (max-width: 1024px) {
    .navbar .navbar-nav {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .navbar .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
        padding: 10px 0;
    }

    .navbar .navbar-nav .nav-item .nav-link {
        font-size: 18px;
        width: 100%;
        padding: 10px 0;
        display: block;
        text-align: left;
    }

    .navbar .navbar-nav .nav-item .dropdown-menu {
        position: absolute;
        left: 0;
        width: auto;
        padding: 0;
        margin-left: 0;
    }

    .navbar .navbar-nav .nav-item .nav-link:hover,
    .navbar .navbar-nav .nav-item.dropdown .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
    }
}

/* Styling for the cart link */
.cart-link {
    background-color: #e0e3f1;
    color: #040000; /* Button color */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Set font size */
    font-weight: 600; /* Bold text */
    display: inline-flex; /* Align icon and text on the same line */
    align-items: center; /* Vertically center the icon and text */
    gap: 5px; /* Space between icon and text */
    padding: 5px 10px; /* Add some padding */
    border: 2px solid #e0e3f1; /* Border around the link */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 10px;
}

/* Hover effect */
.cart-link:hover {
    background-color: #5e68c1; /* Hover background */
    color: white; /* Change text color on hover */
    border-color: #5e68c1; /* Border color on hover */
}

/* Icon size */
.cart-link i {
    font-size: 18px; /* Adjust icon size */
}


.navbar .nav-item .dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1001;
    white-space: nowrap;
}

.navbar .nav-item:hover .dropdown-menu {
    display: block; 
}

.navbar .dropdown-item {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: left;
    min-width: 120px;
    font-size: 1.2em;
    font-weight: 500;
}

.navbar .dropdown-item a {
    display: flex; 
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
}

.navbar .dropdown-item i {
    margin-right: 5px;
}

.navbar .dropdown-item:hover {
    background-color: #e9ecef;
    color: #007bff;
}

a.dropdown-item svg {
  width: 20px;  /* Adjust icon size */
  height: 20px;
  margin-right: 10px; /* Add space between icon and text */
  fill: #3365d8; /* Change icon color */
  transition: fill 0.3s ease-in-out;
}

a.dropdown-item:hover svg {
  fill: #0056b3; /* Change color on hover */
}
