﻿header {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #bcc8d4;
    box-shadow: 0 2px 8px #71809580;
    height: 64px;
}

.header-container {
    background-color: #f4f7fa;
    padding-bottom: 7px;
}

.header-left {
    display: flex;
    flex: 1 0 0%;
    padding-left: 16px;
    width: auto;
}

.header-center {
    display: flex;
    flex: 1 0 auto;
    width: auto;
    justify-content: center;
}

.header-right {
    display: flex;
    padding-right: 16px;
    flex: 1 0 0%;
    width: auto;
    flex-flow: row-reverse;
}

.logo-link {
    display: flex;
}

.logo-image{
    width: 120px;
    padding-right: 15px;
}

.user-image {
    width: 40px;
}

.user-menu-container {
    position:relative;
    display:inline-block;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0; /* align dropdown to the right edge */
    top: 100%; /* position below the button */
    background-color: #fff; /* or your preferred bg */
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 120px; /* optional minimum width */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

.show-dropdown {
    display: block;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons button {
    padding: 10px 16px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-buttons button.sign-up {
    background-color: #28a745 ;
}

.header-buttons button.sign-up:hover {
    background-color: #218838;
}

/* Responsive */
.hamburger {
    display: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
    color: #333;
}

.hamburger:hover {
    background-color: #fff;
}

.mobile-btns {
    display: none;
}

.mobile-btns button.sign-up {
    background-color: #28a745 ;
} 

@media (max-width: 800px) {
    .header-container header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-btns {
        display: inline;
    }

    .header-center {
        display: none;
    }

    .header-right {
        display: none;
    }

    .header-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
    }

    .navigationbar {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 999;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .navigationbar.show {
        display: flex;
    }

    .nav {
        flex-direction: column;
        width: 100%;
    }

    .nav li {
        padding: 12px 16px;
        border-top: 1px solid #ddd;
        justify-content: flex-start;
    }

    .nav li a {
        font-size: 16px;
        gap: 8px;
    }

    .nav li img {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }
}
