/* ============================================
   Header Component Styles
   Shared styles for the header component across all pages
   ============================================ */

/* User Profile Section */
.user-profile {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.9rem;
}

.user-menu-btn:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.user-dropdown a:hover {
    background-color: var(--light-gray);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .user-menu-btn {
        padding: 0.5rem;
    }

    .user-menu-btn span {
        display: none;
    }
}
