.user-menu {
    position: relative;
    z-index: 30;
}

.user-avatar {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.user-avatar:hover {
    opacity: 0.8;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    padding: 1rem;
}

.user-info {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.user-name {
    display: block;
    font-weight: bold;
    color: #2d3748;
}

.user-email {
    display: block;
    font-size: 0.875rem;
    color: #718096;
}

.sign-in-button, .sign-out-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sign-in-button {
    background-color: #4285f4;
    color: white;
}

.sign-in-button:hover {
    background-color: #3367d6;
}

.sign-out-button {
    width: 100%;
    color: #e53e3e;
    background-color: transparent;
}

.sign-out-button:hover {
    background-color: #fff5f5;
}

.auth-error {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        border-radius: 1rem 1rem 0 0;
    }

    .auth-error {
        position: fixed;
        bottom: 1rem;
        top: auto;
        left: 1rem;
        right: 1rem;
        margin: 0;
        text-align: center;
    }
}
