.app-header {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.app-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Fira Sans', sans-serif;
}

.header.scrolled {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-family: 'Fira Sans', sans-serif;
}

.logo span {
    color: #00A499;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #00A499;
}

.nav-link.active {
    color: #00A499;
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav .nav-link {
    margin-right: 2rem; /* Add space between each nav link */
}

.header-nav .nav-link:last-child {
    margin-right: 0; /* Remove margin from last item */
}

.header-cta {
    display: inline-block;
    background-color: #00A499;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-cta:hover {
    background-color: #008276;
}

/* Helper class for content that appears below sticky headers */
.header-offset {
    margin-top: 1rem; /* Provides spacing between header and content */
}

/* User avatar and dropdown styles - add to header.css */

.user-avatar-wrapper {
    margin-left: auto; /* This is the key property that pushes it to the right */
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #00A499;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-avatar:hover {
    background-color: #008276;
}

.avatar-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 0.5rem;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 150;
    overflow: hidden;
}

.avatar-dropdown.visible {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item i {
    color: #666;
    width: 16px;
    text-align: center;
}

/* Mobile navigation controls */
.mobile-nav-controls {
    display: none; /* Hidden by default on desktop */
    align-items: center;
    gap: 1rem;
}

.mobile-signin-btn {
    display: inline-block;
    background-color: #00A499;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mobile-signin-btn:hover {
    background-color: #008276;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu-close {
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #00A499;
}

.mobile-nav-cta {
    display: inline-block;
    background-color: #00A499;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    text-align: center;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
}

.mobile-nav-cta:hover {
    background-color: #008276;
}

/* Update mobile styles */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .mobile-nav-controls {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}


/* Mobile styles */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    /* Keep only the mobile menu button visible */
    .mobile-menu-btn {
        display: block;
    }
    
    .header-nav .nav-link {
        display: none; /* Hide regular nav links on mobile */
    }
    
    /* But keep the avatar visible */
    .user-avatar-wrapper {
        display: flex;
        margin-left: 0; /* Don't need auto margin on mobile */
    }
    
    .header-nav {
        display: none; /* Hide the entire nav on mobile */
    }
    
    /* Keep only the mobile menu button visible */
    .mobile-menu-btn {
        display: block;
    }
    
    /* But keep the avatar visible if authenticated */
    .user-authenticated .user-avatar-wrapper {
        display: flex;
        margin-left: 0;
    }
}