/* Header */

.header {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin: 16px 0;
}
  
.header .logo {
    height: 36px;
    width: auto;
    margin: 0;
}

#logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-green);
}
#logo-wrapper h1 {
    background-color: var(--grey-100);
    border-radius: 6px;
    margin: 0 8px;
    height: 36px;
    padding: 3px 12px;
    font-weight: 450;
    color: var(--blue-midnight);
    font-size: 20px;
    white-space: nowrap;
}
#logo-wrapper h1 strong {
    font-weight: 700;
    color: var(--brand-green);
}

header nav {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto; /* this ensures the nav is always on the right */
}

header nav .user-profile {
    height: 36px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.user-profile a {
    text-decoration: none
}
.user-profile a:link,
.user-profile a:visited,
.user-profile a:hover,
.user-profile a:active {
    color: inherit;
} 

.user-profile-img {
    height: 36px;
    width: 36px;
    border-radius: 20px;
    line-height: 36px;
    text-align: center;
    font-weight: 700;
    background: var(--grey-300);
}
.user-profile-img img {
    height: 100%;
    width: 100%;
    border-radius: 20px;
}
.user-profile-img img.profile-icon {
    height: 70%;
    width: 70%;
    margin: 15%;
    border-radius: 20px;
}

/* Dropdown styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 4px;
}

.dropdown-item {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: var(--blue-midnight);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--grey-100);
    color: var(--brand-green);
}

/* Ensure the dropdown container has proper positioning */
#header-profile-menu {
    position: relative;
}