* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Navbar Styles */
.navbar {
    background: #333;
    color: white;
    display: flex;
    /* justify-content: space-between; */
    /* arranges menus at far right */
    justify-content: flex-start;
    /* <-- changed from space-between */
    align-items: center;
    padding: 12px 8px;
    /* gap: 20px;*/
    /* optional: controls space between logo and menu */
    position: relative;
    z-index: 1; /*old value: 9999*//*to be just under overlay-login form div*/
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 36px;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin: 2px;
    position: relative;
}

.menu li:hover {
    background-color: dimgray;
    /* Change to any color you prefer */
}

.menu a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    display: block;
}

/* Dropdown for Desktop */
.submenu {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    min-width: 180px;
}

.submenu.force-hide {
    display: none !important;
}

.submenu a {
    padding: 10px;
}

.menu li:hover>.submenu {
    display: block;
}

.menu-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    /* ✅ This pushes both icons to the right together */
}

.profile {
    background: none;
    /* ✅ force no background */
    width: 36px;
    height: 36px;
    cursor: pointer;
    user-select: none;
    margin-left: auto;
    /* <- this makes it stick to the right */
}

.login-link {
    color: gold;
    text-decoration: none;
    font-size: large;
    opacity: 0.8;
}

#signInUp {
    display: block;
}



/* Mobile Styles */
.hamburger {
    background: none;
    /* ✅ force no background */
    /* border: #444 solid 1px; */
    width: 40px;
    height: 34px;
    cursor: pointer;
    user-select: none;
    margin-left: auto;
    /* <- this makes it stick to the right */
}

.hamburger-old-icon-text {
    /*old style for using burgur icon unicode text*/
    display: none;
    /* font-size: 24px; */
    cursor: pointer;
    margin-left: auto;
    /* <- this makes it stick to the right */
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
}

.mobile-menu a {
    padding: 15px;
    border-top: 1px solid #555;
    text-decoration: none;
    color: white;
    /* Default color */
}

.submenu-mobile {
    display: none;
    flex-direction: column;
    background: #444;
    transition: transform 0.3s ease-in-out;
}

.submenu-mobile a {
    padding-left: 30px;
}

/* Mobile Mode */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }

    /* Mobile: Show profile with sign-in/up and logout next to it */
    .mobile-auth {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
    }

    .mobile-auth .profile {
        display: block;
        width: 34px;
        height: 34px;
    }

    .auth-links a {
        margin-right: 10px;
        font-size: 14px;
        text-decoration: none;
        color: white;
    }

    /* Show profile in the top nav in mobile mode */
    .profile {
        display: block;
    }
}

/* Desktop Mode */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    /* Show profile in the top nav for desktop */
    .profile {
        display: block;
    }

    /* Optional: Adjust desktop profile image size if needed */
    .profile {
        width: 40px;
        height: 40px;
    }
}
